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)
set set set set set set set macro pixldst1 abits if abits op else op endif endm macro pixldst2 abits if abits op else op endif endm macro pixldst4 abits if abits op else op endif endm macro pixldst0 abits op endm macro pixldst3 mem_operand op endm macro pixldst30 mem_operand op endm macro pixldst abits if abits elseif abits elseif abits elseif abits elseif abits pixldst0 abits else pixldst0 abits pixldst0 abits pixldst0 abits pixldst0 abits endif elseif abits else pixldst0 abits pixldst0 abits endif elseif abits else error unsupported bpp *numpix else pixst endif endm macro pixld1_s mem_operand if asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl elseif asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl else error unsupported endif endm macro pixld2_s mem_operand if mov asr add asl add asl mov asr sub UNIT_X add asl mov asr add asl add asl mov asr add UNIT_X add asl else pixld1_s mem_operand pixld1_s mem_operand endif endm macro pixld0_s mem_operand if asr adds SRC_WIDTH_FIXED bpl add asl elseif asr adds SRC_WIDTH_FIXED bpl add asl endif endm macro pixld_s_internal mem_operand if mem_operand pixld2_s mem_operand pixdeinterleave basereg elseif mem_operand elseif mem_operand elseif mem_operand elseif mem_operand pixld0_s mem_operand else pixld0_s mem_operand pixld0_s mem_operand pixld0_s mem_operand pixld0_s mem_operand endif elseif mem_operand else pixld0_s mem_operand pixld0_s mem_operand endif elseif mem_operand else error unsupported mem_operand if bpp mem_operand endif endm macro vuzp8 reg2 vuzp d d ®2 endm macro vzip8 reg2 vzip d d ®2 endm macro pixdeinterleave basereg basereg basereg basereg basereg endif endm macro pixinterleave basereg basereg basereg basereg basereg endif endm macro PF boost_increment endif if endif PF tst PF addne PF subne PF cmp ORIG_W if endif if endif if endif PF subge ORIG_W PF subges if endif if endif if endif endif endm macro cache_preload_simple endif if dst_r_bpp pld[DST_R, #(PREFETCH_DISTANCE_SIMPLE *dst_r_bpp/8)] endif if mask_bpp pld if[MASK, #(PREFETCH_DISTANCE_SIMPLE *mask_bpp/8)] endif endif endm macro fetch_mask_pixblock pixld mask_basereg pixblock_size MASK endm macro ensure_destination_ptr_alignment process_pixblock_tail_head if beq irp skip1(dst_w_bpp<=(lowbit *8)) &&((lowbit *8)<(pixblock_size *dst_w_bpp)) .if lowbit< 16 tst DST_R
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