Expose events

Hi

I’m writing a SDL/opneGL program and have been carefull
to make sure it doesn’t hog all my cpu cycles when
it isn’t rendering to the window by waiting rather than
polling for events.

If this window now gets partially covered by another it
obviously doesn’t redraw so how do I check for "expose"
events??

Thanks in advance
Roy Pluschke

Roy Pluschke wrote:

Hi

I’m writing a SDL/opneGL program and have been carefull
to make sure it doesn’t hog all my cpu cycles when
it isn’t rendering to the window by waiting rather than
polling for events.

If this window now gets partially covered by another it
obviously doesn’t redraw so how do I check for "expose"
events??

Thanks in advance
Roy Pluschke


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

the SDL_VIDEOEXPOSE is used for this…
although I’m not sure it it applies to OpenGL.–
-==-
Jon Atkins
http://jonatkins.org/

the SDL_VIDEOEXPOSE is used for this…
although I’m not sure it it applies to OpenGL.

Works like a charm!! -not in the docs I have so next time
I’ll be sure to check the header files first :slight_smile:

Thanks,
Roy PluschkeOn Tue, 15 Jan 2002 00:22:16 -0500 Jonathan Atkins wrote:

There is an entry in the online docs, even though it looks like much
copy&paste:
http://sdldoc.csn.ul.ie/sdlexposeevent.phpOn Tuesday 15 January 2002 07:52, Roy Pluschke wrote:

On Tue, 15 Jan 2002 00:22:16 -0500 Jonathan Atkins wrote:

the SDL_VIDEOEXPOSE is used for this…
although I’m not sure it it applies to OpenGL.

Works like a charm!! -not in the docs I have so next time
I’ll be sure to check the header files first :slight_smile:


Johannes Schmidt

< http://libufo.sourceforge.net > Your widget set for OpenGL