Re: draw using pycairo on glut interface
Alejandro Segovia <[email protected]>
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <CAAXrc9PkzE50Fp9cH3=zJs=1+O-sBmo8K4F-FPxFZxsYrHGj8g@mail.gmail.com> |
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 <[email protected]> > 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 > [email protected] > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > > -- http://alejandrosegovia.net ------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/pyopengl-users