|
SDL
2.0
|
Include dependency graph for sdl_qnx.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | window_impl_t |
Functions | |
| void | handleKeyboardEvent (screen_event_t event) |
| int | glGetConfig (EGLConfig *pconf, int *pformat) |
| int | glLoadLibrary (_THIS, const char *name) |
| void * | glGetProcAddress (_THIS, const char *proc) |
| SDL_GLContext | glCreateContext (_THIS, SDL_Window *window) |
| int | glSetSwapInterval (_THIS, int interval) |
| int | glSwapWindow (_THIS, SDL_Window *window) |
| int | glMakeCurrent (_THIS, SDL_Window *window, SDL_GLContext context) |
| void | glDeleteContext (_THIS, SDL_GLContext context) |
| void | glUnloadLibrary (_THIS) |
| SDL_GLContext glCreateContext | ( | _THIS | , |
| SDL_Window * | window | ||
| ) |
Associates the given window with the necessary EGL structures for drawing and displaying content.
| _THIS | |
| window | The SDL window to create the context for |
Definition at line 171 of file gl.c.
References context.
Referenced by createDevice().
| void glDeleteContext | ( | _THIS | , |
| SDL_GLContext | context | ||
| ) |
Destroys a context.
| _THIS | |
| context | The context to destroy |
Definition at line 272 of file gl.c.
References context, egl_disp, and eglDestroyContext().
Referenced by createDevice().
| int glGetConfig | ( | EGLConfig * | pconf, |
| int * | pformat | ||
| ) |
Enumerates the supported EGL configurations and chooses a suitable one.
| [out] | pconf | The chosen configuration |
| [out] | pformat | The chosen pixel format |
Definition at line 68 of file gl.c.
References chooseFormat(), EGL_DEPTH_SIZE, egl_disp, EGL_OPENGL_ES2_BIT, EGL_RENDERABLE_TYPE, EGL_SURFACE_TYPE, EGL_TRUE, EGL_WINDOW_BIT, eglGetConfigAttrib(), eglGetConfigs(), free, i, malloc, and NULL.
Referenced by createWindow().
Finds the address of an EGL extension function.
| proc | Function name |
Definition at line 158 of file gl.c.
References eglGetProcAddress().
Referenced by createDevice().
| int glLoadLibrary | ( | _THIS | , |
| const char * | name | ||
| ) |
Initializes the EGL library.
| _THIS | |
| name | unused |
Definition at line 136 of file gl.c.
References EGL_DEFAULT_DISPLAY, egl_disp, EGL_FALSE, EGL_NO_DISPLAY, eglGetDisplay(), eglInitialize(), and NULL.
Referenced by createDevice().
| int glMakeCurrent | ( | _THIS | , |
| SDL_Window * | window, | ||
| SDL_GLContext | context | ||
| ) |
Makes the given context the current one for drawing operations.
| _THIS | |
| window | SDL window associated with the context (maybe NULL) |
| context | The context to activate |
Definition at line 249 of file gl.c.
References context, egl_disp, EGL_TRUE, eglMakeCurrent(), NULL, and window_impl_t::surface.
Referenced by createDevice().
| int glSetSwapInterval | ( | _THIS | , |
| int | interval | ||
| ) |
Sets a new value for the number of frames to display before swapping buffers.
| _THIS | |
| interval | New interval value |
Definition at line 218 of file gl.c.
References egl_disp, EGL_TRUE, and eglSwapInterval().
Referenced by createDevice().
| int glSwapWindow | ( | _THIS | , |
| SDL_Window * | window | ||
| ) |
Swaps the EGL buffers associated with the given window
| _THIS | |
| window | Window to swap buffers for |
Definition at line 234 of file gl.c.
References egl_disp, EGL_TRUE, eglSwapBuffers(), and window_impl_t::surface.
Referenced by createDevice().
Terminates access to the EGL library.
| _THIS |
Definition at line 282 of file gl.c.
References egl_disp, and eglTerminate().
Referenced by createDevice().
| void handleKeyboardEvent | ( | screen_event_t | event | ) |
Called from the event dispatcher when a keyboard event is encountered. Translates the event such that it can be handled by SDL.
| event | Screen keyboard event |
Definition at line 99 of file keyboard.c.
References key_to_sdl, SDL_PRESSED, SDL_RELEASED, SDL_SendKeyboardKey(), and SDL_TABLESIZE.
Referenced by pumpEvents().