rendering in arbitrary memory
hi all,
does anyone have some sample code or pointers on how to render with opengl into an arbitrary piece of memory. I would like to render completely without the window, is this possible?
I''m sure most of the software-only OpenGL dists will do it. I know the MS OpenGL generic mode can render to a bitmap in memory, but of course you wont get hardware acceleration. Mesa3d can probably do it too. The SGI OpenGL might too.
-Brannon
-Brannon
Thanks Brannon,
I have tried some code that simply gets a pixmap and does a glXCreateGLPixmap. Problem is that here also a window context is nescasary, screwing up my other glwindow. (threads and more then one opengl context/window) Furthermore with the window it is slower due to monitor sync, drawing etc. And when I open the GLpixmap, I usually get an error. Something about bad drawable, but I''m pretty sure the pixmap I created is a good one, and if I create the window for real everything seems to function fine.
Any pointers to some good code?
I have tried some code that simply gets a pixmap and does a glXCreateGLPixmap. Problem is that here also a window context is nescasary, screwing up my other glwindow. (threads and more then one opengl context/window) Furthermore with the window it is slower due to monitor sync, drawing etc. And when I open the GLpixmap, I usually get an error. Something about bad drawable, but I''m pretty sure the pixmap I created is a good one, and if I create the window for real everything seems to function fine.
Any pointers to some good code?
PS also, I can't seem to find any pbuffer code.......
Edited by - robertb on December 31, 2001 5:41:48 AM
Edited by - robertb on December 31, 2001 5:41:48 AM
Hmm, I haven''t done anything with GL on X. I was mostly talking about GL on Win32.
Anyone else have experience with this under X?
-Brannon
Anyone else have experience with this under X?
-Brannon
quote:Original post by robertb
PS also, I can''t seem to find any pbuffer code.......
Try this, a nice C++ pixel buffer class:
http://www.cfxweb.net/~delphigl/files/PixelBufferC.zip
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement