Re: [PyOpenGL-Users] draw using pycairo on glut interface
Brought to you by:
mcfletch
From: Alejandro S. <as...@gm...> - 2012-04-22 14:41:08
|
Dear Prashant, I don't have experience with Cairo, but either if it's a software or GPU-based renderer, there might be a way to capture its output and use it as a texture. If Cairo is software based, check to see if you can have it render to a byte array or color matrix, then (after proper formatting) use that to create a 2D texture. If Cairo is GPU-based, and it uses OpenGL, you should be able to have it render to a FBO (with a texture color attachment) or Pbuffer. Once you have a texture, you can map it on a quad or a triangle fan aligned to the screen. Results will be better if you use an Orthographic projection. I hope these ideas help. If anyone knows about Cairo, please do weight in :) Best, Alejandro.- 2012/4/21 Prashant Saxena <ani...@ya...> > Hi, > > Is it possible to draw using pycairo on glut interface? For example, > drawing a cairo gradient surface. > I would appreciate if some one can show some light on this topic. > > Cheers > > Prashant > > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > > -- http://alejandrosegovia.net |