Back to index

Index

Video

Exceptions

SurfacesLostException

Events

ResizeEvent

 size

ActiveEvent

 gain  state

QuitEvent

Constants

SDL constants: OpenGL constants:

Video

General stuff used by the rest of the video classes.

Exceptions

SurfacesLostException

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.

Events

ResizeEvent

ResizeEvent#size

This is [w, h] the new size of the window.

ActiveEvent

ActiveEvent#gain
ActiveEvent#state

QuitEvent

This event signals that the user or the program itself has requested to be terminated.

Constants

SDL constants:

SWSURFACE, HWSURFACE, RESIZABLE, ASYNCBLIT, OPENGL, ANYFORMAT, HWPALETTE, DOUBLEBUF, FULLSCREEN, HWACCEL, SRCCOLORKEY, RLEACCELOK, RLEACCEL, SRCALPHA, PREALLOC, NOFRAME

OpenGL constants:

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