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) {
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,
201 screen_post_window(impl->
window, buffer, numrects, (
int *)rects, 0);
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);
326 if (device ==
NULL) {
static int updateWindowFramebuffer(_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects)
int glGetConfig(EGLConfig *pconf, int *pformat)
static int videoInit(_THIS)
SDL_GLContext glCreateContext(_THIS, SDL_Window *window)
void glUnloadLibrary(_THIS)
int(* GL_SetSwapInterval)(_THIS, int interval)
void(* ShowWindow)(_THIS, SDL_Window *window)
static screen_context_t context
int glLoadLibrary(_THIS, const char *name)
void(* SetWindowSize)(_THIS, SDL_Window *window)
static void setWindowSize(_THIS, SDL_Window *window)
static void hideWindow(_THIS, SDL_Window *window)
int SDL_AddVideoDisplay(const SDL_VideoDisplay *display)
int(* GL_LoadLibrary)(_THIS, const char *path)
void glDeleteContext(_THIS, SDL_GLContext context)
static void pumpEvents(_THIS)
int glSetSwapInterval(_THIS, int interval)
static SDL_VideoDevice * _this
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
void(* HideWindow)(_THIS, SDL_Window *window)
static SDL_AudioDeviceID device
GLsizeiptr const void GLenum usage
static SDL_VideoDevice * createDevice(int devindex)
SDL_GLContext(* GL_CreateContext)(_THIS, SDL_Window *window)
int(* GL_MakeCurrent)(_THIS, SDL_Window *window, SDL_GLContext context)
static int createWindow(_THIS, SDL_Window *window)
VideoBootStrap QNX_bootstrap
void(* DestroyWindow)(_THIS, SDL_Window *window)
static void showWindow(_THIS, SDL_Window *window)
static int createWindowFramebuffer(_THIS, SDL_Window *window, Uint32 *format, void **pixels, int *pitch)
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
void(* GL_UnloadLibrary)(_THIS)
int(* CreateSDLWindow)(_THIS, SDL_Window *window)
EGLSurface EGLNativeWindowType * window
static screen_event_t event
int(* GL_SwapWindow)(_THIS, SDL_Window *window)
The type used to identify a window.
static void destroyWindow(_THIS, SDL_Window *window)
void * glGetProcAddress(_THIS, const char *proc)
GLuint GLuint GLsizei GLenum type
int(* UpdateWindowFramebuffer)(_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects)
void(* GL_DeleteContext)(_THIS, SDL_GLContext context)
void handleKeyboardEvent(screen_event_t event)
static void videoQuit(_THIS)
EGLSurface EGLint * rects
int glMakeCurrent(_THIS, SDL_Window *window, SDL_GLContext context)
int glSwapWindow(_THIS, SDL_Window *window)
int(* CreateWindowFramebuffer)(_THIS, SDL_Window *window, Uint32 *format, void **pixels, int *pitch)
void *(* GL_GetProcAddress)(_THIS, const char *proc)
static void deleteDevice(SDL_VideoDevice *device)
A rectangle, with the origin at the upper left.
void(* PumpEvents)(_THIS)