SDL2CommonVideo

Video implementation for SDL2.

Members

Functions

doneMain
void doneMain()

Main thread finalization.

doneVary
void doneVary()

Main/render thread finalization (depends on InitializeVideoInRenderThread).

getRendererFlags
SDL_RendererFlags getRendererFlags()
Undocumented in source. Be warned that the author may not have intended to support it.
getSDLFlags
uint getSDLFlags()
Undocumented in source. Be warned that the author may not have intended to support it.
getScreenSize
void getScreenSize(uint width, uint height)
Undocumented in source. Be warned that the author may not have intended to support it.
initMain
void initMain(Application application)

Main thread initialization.

initVary
void initVary()

Main/render thread initialization (depends on InitializeVideoInRenderThread).

prepare
void prepare()
Undocumented in source. Be warned that the author may not have intended to support it.
shutdown
void shutdown()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

initializeVideoInRenderThread
bool initializeVideoInRenderThread [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

renderer
SDL_Renderer* renderer;

SDL renderer object.

screenHeight
uint screenHeight;
Undocumented in source.
screenWidth
uint screenWidth;
Undocumented in source.
window
SDL_Window* window;

SDL window object.

Inherited Members

From ThreadedVideo

shutdown
void shutdown()
Undocumented in source. Be warned that the author may not have intended to support it.
start
void start(Application application)
Undocumented in source. Be warned that the author may not have intended to support it.
stop
void stop()
Undocumented in source. Be warned that the author may not have intended to support it.
stopAsync
void stopAsync(AppCallback callback)
Undocumented in source. Be warned that the author may not have intended to support it.
initializeVideoInRenderThread
bool initializeVideoInRenderThread [@property getter]

Allows varying the thread from which initVary gets called.

initializeVideoSynchronously
bool initializeVideoSynchronously [@property getter]

When initializing video in the render thread, block main thread while video is initializing? Some renderers may require the main thread to be responsive during graphics initialization, to pump events - thus, initialization must be asynchronous.

getRenderer
Renderer getRenderer()
Undocumented in source.
initMain
void initMain(Application application)

Main thread initialization.

initVary
void initVary()

Main/render thread initialization (depends on initializeVideoInRenderThread).

doneMain
void doneMain()

Main thread finalization.

doneVary
void doneVary()

Main/render thread finalization (depends on initializeVideoInRenderThread).

Meta