Go to the documentation of this file.
21 #include "../../SDL_internal.h"
22 #include "../SDL_sysvideo.h"
40 if (screen_create_context(&
context, 0) < 0) {
44 if (screen_create_event(&
event) < 0) {
93 if (screen_set_window_property_iv(impl->
window, SCREEN_PROPERTY_SIZE,
98 if (screen_set_window_property_iv(impl->
window, SCREEN_PROPERTY_SOURCE_SIZE,
110 usage = SCREEN_USAGE_OPENGL_ES2;
111 if (screen_set_window_property_iv(impl->
window, SCREEN_PROPERTY_USAGE,
116 format = SCREEN_FORMAT_RGBX8888;
121 if (screen_set_window_property_iv(impl->
window, SCREEN_PROPERTY_FORMAT,
127 if (screen_create_window_buffers(impl->
window, numbufs) < 0) {
131 window->driverdata = impl;
136 screen_destroy_window(impl->
window);
155 void **
pixels,
int *pitch)
161 if (screen_get_window_property_pv(impl->
window, SCREEN_PROPERTY_BUFFERS,
166 if (screen_get_buffer_property_pv(
buffer, SCREEN_PROPERTY_POINTER,
172 if (screen_get_buffer_property_iv(
buffer, SCREEN_PROPERTY_STRIDE,
196 if (screen_get_window_property_pv(impl->
window, SCREEN_PROPERTY_BUFFERS,
202 screen_flush_context(
context, 0);
220 if (screen_get_event_property_iv(
event, SCREEN_PROPERTY_TYPE, &
type)
225 if (
type == SCREEN_EVENT_NONE) {
230 case SCREEN_EVENT_KEYBOARD:
254 screen_set_window_property_iv(impl->
window, SCREEN_PROPERTY_SIZE,
size);
255 screen_set_window_property_iv(impl->
window, SCREEN_PROPERTY_SOURCE_SIZE,
268 const int visible = 1;
270 screen_set_window_property_iv(impl->
window, SCREEN_PROPERTY_VISIBLE,
283 const int visible = 0;
285 screen_set_window_property_iv(impl->
window, SCREEN_PROPERTY_VISIBLE,
300 screen_destroy_window(impl->
window);
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
int glLoadLibrary(_THIS, const char *name)
static void showWindow(_THIS, SDL_Window *window)
int glSetSwapInterval(_THIS, int interval)
static void setWindowSize(_THIS, SDL_Window *window)
static void pumpEvents(_THIS)
void handleKeyboardEvent(screen_event_t event)
int glGetConfig(EGLConfig *pconf, int *pformat)
The type used to identify a window.
static screen_event_t event
int glMakeCurrent(_THIS, SDL_Window *window, SDL_GLContext context)
static SDL_VideoDevice * createDevice(int devindex)
static screen_context_t context
GLsizeiptr const void GLenum usage
static void videoQuit(_THIS)
static SDL_VideoDevice * _this
EGLSurface EGLNativeWindowType * window
static int createWindowFramebuffer(_THIS, SDL_Window *window, Uint32 *format, void **pixels, int *pitch)
void glDeleteContext(_THIS, SDL_GLContext context)
static int updateWindowFramebuffer(_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects)
int SDL_AddVideoDisplay(const SDL_VideoDisplay *display)
SDL_GLContext glCreateContext(_THIS, SDL_Window *window)
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
static void destroyWindow(_THIS, SDL_Window *window)
void * glGetProcAddress(_THIS, const char *proc)
void glUnloadLibrary(_THIS)
static int createWindow(_THIS, SDL_Window *window)
int glSwapWindow(_THIS, SDL_Window *window)
A rectangle, with the origin at the upper left (integer).
static int videoInit(_THIS)
static void hideWindow(_THIS, SDL_Window *window)
static void deleteDevice(SDL_VideoDevice *device)
VideoBootStrap QNX_bootstrap
static SDL_AudioDeviceID device
EGLSurface EGLint * rects
GLuint GLuint GLsizei GLenum type