SDL constants: OpenGL constants:
General stuff used by the rest of the video classes.
This gruesome thing is thrown bij Surface#blit when Windows manages to destroy all your surfaces. This might happen when switching to another application, for example. The only thing to rescue your application is by waiting for blit to stop throwing exceptions, then reloading all your surfaces.
ResizeEvent#size
This is [w, h] the new size of the window.
ActiveEvent#gain
ActiveEvent#state
This event signals that the user or the program itself has requested to be terminated.
SWSURFACE, HWSURFACE, RESIZABLE, ASYNCBLIT, OPENGL, ANYFORMAT, HWPALETTE, DOUBLEBUF, FULLSCREEN, HWACCEL, SRCCOLORKEY, RLEACCELOK, RLEACCEL, SRCALPHA, PREALLOC, NOFRAME
GL_RED_SIZE, GL_GREEN_SIZE, GL_BLUE_SIZE, GL_ALPHA_SIZE, GL_BUFFER_SIZE, GL_DOUBLEBUFFER, GL_DEPTH_SIZE, GL_STENCIL_SIZE, GL_ACCUM_RED_SIZE, GL_ACCUM_GREEN_SIZE, GL_ACCUM_BLUE_SIZE, GL_ACCUM_ALPHA_SIZE
Back to index