SDL
2.0
|
Go to the source code of this file.
Functions | |
static int | videoInit (_THIS) |
static void | videoQuit (_THIS) |
static int | createWindow (_THIS, SDL_Window *window) |
static int | createWindowFramebuffer (_THIS, SDL_Window *window, Uint32 *format, void **pixels, int *pitch) |
static int | updateWindowFramebuffer (_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects) |
static void | pumpEvents (_THIS) |
static void | setWindowSize (_THIS, SDL_Window *window) |
static void | showWindow (_THIS, SDL_Window *window) |
static void | hideWindow (_THIS, SDL_Window *window) |
static void | destroyWindow (_THIS, SDL_Window *window) |
static void | deleteDevice (SDL_VideoDevice *device) |
static SDL_VideoDevice * | createDevice (int devindex) |
static int | available () |
Variables | |
static screen_context_t | context |
static screen_event_t | event |
VideoBootStrap | QNX_bootstrap |
|
static |
|
static |
Creates the QNX video plugin used by SDL.
devindex | Unused |
Definition at line 321 of file video.c.
References SDL_VideoDevice::CreateSDLWindow, createWindow(), createWindowFramebuffer(), SDL_VideoDevice::CreateWindowFramebuffer, deleteDevice(), SDL_VideoDevice::DestroyWindow, destroyWindow(), device, SDL_VideoDevice::driverdata, SDL_VideoDevice::free, SDL_VideoDevice::GL_CreateContext, SDL_VideoDevice::GL_DeleteContext, SDL_VideoDevice::GL_GetProcAddress, SDL_VideoDevice::GL_LoadLibrary, SDL_VideoDevice::GL_MakeCurrent, SDL_VideoDevice::GL_SetSwapInterval, SDL_VideoDevice::GL_SwapWindow, SDL_VideoDevice::GL_UnloadLibrary, glCreateContext(), glDeleteContext(), glGetProcAddress(), glLoadLibrary(), glMakeCurrent(), glSetSwapInterval(), glSwapWindow(), glUnloadLibrary(), SDL_VideoDevice::HideWindow, hideWindow(), NULL, pumpEvents(), SDL_VideoDevice::PumpEvents, SDL_calloc, SDL_VideoDevice::SetWindowSize, setWindowSize(), SDL_VideoDevice::ShowWindow, showWindow(), updateWindowFramebuffer(), SDL_VideoDevice::UpdateWindowFramebuffer, videoInit(), SDL_VideoDevice::VideoInit, videoQuit(), and SDL_VideoDevice::VideoQuit.
|
static |
Creates a new native Screen window and associates it with the given SDL window.
_THIS | |
window | SDL window to initialize |
Definition at line 71 of file video.c.
References window_impl_t::conf, context, SDL_Window::driverdata, SDL_Window::flags, glGetConfig(), SDL_Window::h, NULL, SDL_calloc, SDL_free, SDL_WINDOW_OPENGL, SDL_Window::w, and window_impl_t::window.
Referenced by createDevice().
|
static |
Gets a pointer to the Screen buffer associated with the given window. Note that the buffer is actually created in createWindow().
_THIS | ||
window | SDL window to get the buffer for | |
[out] | pixles | Holds a pointer to the window's buffer |
[out] | format | Holds the pixel format for the buffer |
[out] | pitch | Holds the number of bytes per line |
Definition at line 154 of file video.c.
References SDL_Window::driverdata, SDL_PIXELFORMAT_RGB888, and window_impl_t::window.
Referenced by createDevice().
|
static |
Frees the plugin object created by createDevice().
device | Plugin object to free |
Definition at line 310 of file video.c.
References SDL_free.
Referenced by createDevice().
|
static |
Destroys the native window associated with the given SDL window.
_THIS | |
window | SDL window that is being destroyed |
Definition at line 295 of file video.c.
References SDL_Window::driverdata, NULL, and window_impl_t::window.
Referenced by createDevice().
|
static |
Makes the native window associated with the given SDL window invisible.
_THIS | |
window | SDL window to update |
Definition at line 280 of file video.c.
References SDL_Window::driverdata, and window_impl_t::window.
Referenced by createDevice().
Runs the main event loop.
_THIS |
Definition at line 211 of file video.c.
References context, and handleKeyboardEvent().
Referenced by createDevice().
|
static |
Updates the size of the native window using the geometry of the SDL window.
_THIS | |
window | SDL window to update |
Definition at line 246 of file video.c.
References SDL_Window::driverdata, SDL_Window::h, SDL_Window::w, and window_impl_t::window.
Referenced by createDevice().
|
static |
Makes the native window associated with the given SDL window visible.
_THIS | |
window | SDL window to update |
Definition at line 265 of file video.c.
References SDL_Window::driverdata, and window_impl_t::window.
Referenced by createDevice().
|
static |
Informs the window manager that the window needs to be updated.
_THIS | |
window | The window to update |
rects | An array of reectangular areas to update |
numrects | Rect array length |
Definition at line 190 of file video.c.
References context, SDL_Window::driverdata, and window_impl_t::window.
Referenced by createDevice().
|
static |
Initializes the QNX video plugin. Creates the Screen context and event handles used for all window operations by the plugin.
_THIS |
Definition at line 36 of file video.c.
References _this, context, SDL_VideoDevice::num_displays, SDL_AddVideoDisplay(), and SDL_zero.
Referenced by createDevice().
|
static |
Definition at line 25 of file video.c.
Referenced by createWindow(), glCreateContext(), pumpEvents(), SDL_TrackAllocation(), ShouldUseTextureFramebuffer(), updateWindowFramebuffer(), and videoInit().
VideoBootStrap QNX_bootstrap |