annotate src/video/qnxgf/SDL_qnxgf.h @ 4585:21600c6d6445

X11_RenderDrawLines and X11_RenderDrawPoints use XRender now.
author Sunny Sachanandani <sunnysachanandani@gmail.com>
date Tue, 15 Jun 2010 19:10:06 +0530
parents f7b03b6838cb
children be02be2ea897
rev   line source
3087
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
1 /*
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
2 SDL - Simple DirectMedia Layer
3697
f7b03b6838cb Fixed bug #926
Sam Lantinga <slouken@libsdl.org>
parents: 3139
diff changeset
3 Copyright (C) 1997-2010 Sam Lantinga
3087
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
4
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
5 This library is free software; you can redistribute it and/or
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
6 modify it under the terms of the GNU Lesser General Public
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
7 License as published by the Free Software Foundation; either
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
8 version 2.1 of the License, or (at your option) any later version.
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
9
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
10 This library is distributed in the hope that it will be useful,
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
13 Lesser General Public License for more details.
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
14
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
15 You should have received a copy of the GNU Lesser General Public
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
16 License along with this library; if not, write to the Free Software
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
18
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
19 Sam Lantinga
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
20 slouken@libsdl.org
3092
cad1aefa2ed9 Date: Thu, 12 Mar 2009 15:14:38 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3087
diff changeset
21
cad1aefa2ed9 Date: Thu, 12 Mar 2009 15:14:38 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3087
diff changeset
22 QNX Graphics Framework SDL driver
cad1aefa2ed9 Date: Thu, 12 Mar 2009 15:14:38 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3087
diff changeset
23 Copyright (C) 2009 Mike Gorchak
cad1aefa2ed9 Date: Thu, 12 Mar 2009 15:14:38 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3087
diff changeset
24 (mike@malva.ua, lestat@i.com.ua)
3087
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
25 */
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
26
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
27 #ifndef __SDL_QNXGF_H__
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
28 #define __SDL_QNXGF_H__
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
29
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
30 #include "../SDL_sysvideo.h"
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
31
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
32 #include <gf/gf.h>
3099
82e60908fab1 Date: Mon, 23 Mar 2009 09:17:24 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3092
diff changeset
33 #include <gf/gf3d.h>
82e60908fab1 Date: Mon, 23 Mar 2009 09:17:24 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3092
diff changeset
34
82e60908fab1 Date: Mon, 23 Mar 2009 09:17:24 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3092
diff changeset
35 #if defined(SDL_VIDEO_OPENGL_ES)
3139
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
36 #include <GLES/egl.h>
3099
82e60908fab1 Date: Mon, 23 Mar 2009 09:17:24 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3092
diff changeset
37 #endif /* SDL_VIDEO_OPENGL_ES */
3087
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
38
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
39 typedef struct SDL_VideoData
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
40 {
3139
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
41 gf_dev_t gfdev; /* GF device handle */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
42 gf_dev_info_t gfdev_info; /* GF device information */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
43 SDL_bool gfinitialized; /* GF device initialization status */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
44 #if defined(SDL_VIDEO_OPENGL_ES)
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
45 EGLDisplay egldisplay; /* OpenGL ES display connection */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
46 uint32_t egl_refcount; /* OpenGL ES reference count */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
47 uint32_t swapinterval; /* OpenGL ES default swap interval */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
48 #endif /* SDL_VIDEO_OPENGL_ES */
3087
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
49 } SDL_VideoData;
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
50
3109
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents: 3099
diff changeset
51 #define SDL_VIDEO_GF_DEVICENAME_MAX 257
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents: 3099
diff changeset
52 #define SDL_VIDEO_GF_MAX_CURSOR_SIZE 128
3092
cad1aefa2ed9 Date: Thu, 12 Mar 2009 15:14:38 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3087
diff changeset
53
3087
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
54 typedef struct SDL_DisplayData
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
55 {
3139
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
56 gf_display_info_t display_info; /* GF display information */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
57 gf_display_t display; /* GF display handle */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
58 uint32_t custom_refresh; /* Custom refresh rate for all modes */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
59 SDL_DisplayMode current_mode; /* Current video mode */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
60 uint8_t description[SDL_VIDEO_GF_DEVICENAME_MAX];
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
61 /* Device description */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
62 uint32_t caps; /* Device capabilities */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
63 SDL_bool layer_attached; /* Layer attach status */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
64 gf_layer_t layer; /* Graphics layer to which attached */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
65 gf_surface_t surface[3]; /* Visible surface on the display */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
66 SDL_bool cursor_visible; /* SDL_TRUE if cursor visible */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
67 gf_cursor_t cursor; /* Cursor shape which was set last */
3087
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
68 } SDL_DisplayData;
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
69
3109
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents: 3099
diff changeset
70 /* Maximum amount of OpenGL ES framebuffer configurations */
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents: 3099
diff changeset
71 #define SDL_VIDEO_GF_OPENGLES_CONFS 32
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents: 3099
diff changeset
72
3092
cad1aefa2ed9 Date: Thu, 12 Mar 2009 15:14:38 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3087
diff changeset
73 typedef struct SDL_WindowData
cad1aefa2ed9 Date: Thu, 12 Mar 2009 15:14:38 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3087
diff changeset
74 {
3139
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
75 SDL_bool uses_gles; /* true if window support OpenGL ES */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
76 #if defined(SDL_VIDEO_OPENGL_ES)
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
77 gf_3d_target_t target; /* OpenGL ES window target */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
78 SDL_bool target_created; /* GF 3D target is created if true */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
79 EGLConfig gles_configs[SDL_VIDEO_GF_OPENGLES_CONFS];
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
80 /* OpenGL ES framebuffer confs */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
81 EGLint gles_config; /* Config index in the array of cfgs */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
82 EGLContext gles_context; /* OpenGL ES context */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
83 EGLint gles_attributes[256]; /* OpenGL ES attributes for context */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
84 EGLSurface gles_surface; /* OpenGL ES target rendering surface */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
85 #endif /* SDL_VIDEO_OPENGL_ES */
3092
cad1aefa2ed9 Date: Thu, 12 Mar 2009 15:14:38 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3087
diff changeset
86 } SDL_WindowData;
cad1aefa2ed9 Date: Thu, 12 Mar 2009 15:14:38 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3087
diff changeset
87
3099
82e60908fab1 Date: Mon, 23 Mar 2009 09:17:24 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3092
diff changeset
88 typedef struct SDL_GLDriverData
82e60908fab1 Date: Mon, 23 Mar 2009 09:17:24 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3092
diff changeset
89 {
3139
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
90 #if defined(SDL_VIDEO_OPENGL_ES)
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
91 #endif /* SDL_VIDEO_OPENGL_ES */
3099
82e60908fab1 Date: Mon, 23 Mar 2009 09:17:24 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3092
diff changeset
92 } SDL_GLDriverData;
82e60908fab1 Date: Mon, 23 Mar 2009 09:17:24 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3092
diff changeset
93
3092
cad1aefa2ed9 Date: Thu, 12 Mar 2009 15:14:38 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3087
diff changeset
94 /****************************************************************************/
cad1aefa2ed9 Date: Thu, 12 Mar 2009 15:14:38 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3087
diff changeset
95 /* Low level GF graphics driver capabilities */
cad1aefa2ed9 Date: Thu, 12 Mar 2009 15:14:38 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3087
diff changeset
96 /****************************************************************************/
cad1aefa2ed9 Date: Thu, 12 Mar 2009 15:14:38 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3087
diff changeset
97 typedef struct GF_DeviceCaps
cad1aefa2ed9 Date: Thu, 12 Mar 2009 15:14:38 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3087
diff changeset
98 {
3139
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
99 uint8_t *name;
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
100 uint32_t caps;
3092
cad1aefa2ed9 Date: Thu, 12 Mar 2009 15:14:38 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3087
diff changeset
101 } GF_DeviceCaps;
cad1aefa2ed9 Date: Thu, 12 Mar 2009 15:14:38 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3087
diff changeset
102
3139
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
103 #define SDL_GF_UNACCELERATED 0x00000000 /* driver is unaccelerated */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
104 #define SDL_GF_ACCELERATED 0x00000001 /* driver is accelerated */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
105 #define SDL_GF_NOLOWRESOLUTION 0x00000000 /* no modes below 640x480 */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
106 #define SDL_GF_LOWRESOLUTION 0x00000002 /* support modes <640x480 */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
107 #define SDL_GF_UNACCELERATED_3D 0x00000000 /* software OpenGL ES */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
108 #define SDL_GF_ACCELERATED_3D 0x00000004 /* hardware acc. OpenGL ES */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
109 #define SDL_GF_NOVIDEOMEMORY 0x00000000 /* no video memory alloc. */
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
110 #define SDL_GF_VIDEOMEMORY 0x00000008 /* has video memory alloc. */
3092
cad1aefa2ed9 Date: Thu, 12 Mar 2009 15:14:38 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3087
diff changeset
111
3087
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
112 /****************************************************************************/
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
113 /* SDL_VideoDevice functions declaration */
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
114 /****************************************************************************/
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
115
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
116 /* Display and window functions */
3139
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
117 int qnxgf_videoinit(_THIS);
3087
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
118 void qnxgf_videoquit(_THIS);
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
119 void qnxgf_getdisplaymodes(_THIS);
3139
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
120 int qnxgf_setdisplaymode(_THIS, SDL_DisplayMode * mode);
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
121 int qnxgf_setdisplaypalette(_THIS, SDL_Palette * palette);
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
122 int qnxgf_getdisplaypalette(_THIS, SDL_Palette * palette);
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
123 int qnxgf_setdisplaygammaramp(_THIS, Uint16 * ramp);
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
124 int qnxgf_getdisplaygammaramp(_THIS, Uint16 * ramp);
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
125 int qnxgf_createwindow(_THIS, SDL_Window * window);
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
126 int qnxgf_createwindowfrom(_THIS, SDL_Window * window, const void *data);
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
127 void qnxgf_setwindowtitle(_THIS, SDL_Window * window);
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
128 void qnxgf_setwindowicon(_THIS, SDL_Window * window, SDL_Surface * icon);
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
129 void qnxgf_setwindowposition(_THIS, SDL_Window * window);
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
130 void qnxgf_setwindowsize(_THIS, SDL_Window * window);
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
131 void qnxgf_showwindow(_THIS, SDL_Window * window);
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
132 void qnxgf_hidewindow(_THIS, SDL_Window * window);
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
133 void qnxgf_raisewindow(_THIS, SDL_Window * window);
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
134 void qnxgf_maximizewindow(_THIS, SDL_Window * window);
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
135 void qnxgf_minimizewindow(_THIS, SDL_Window * window);
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
136 void qnxgf_restorewindow(_THIS, SDL_Window * window);
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
137 void qnxgf_setwindowgrab(_THIS, SDL_Window * window);
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
138 void qnxgf_destroywindow(_THIS, SDL_Window * window);
3087
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
139
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
140 /* Window manager function */
3139
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
141 SDL_bool qnxgf_getwindowwminfo(_THIS, SDL_Window * window,
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
142 struct SDL_SysWMinfo *info);
3087
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
143
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
144 /* OpenGL/OpenGL ES functions */
3139
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
145 int qnxgf_gl_loadlibrary(_THIS, const char *path);
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
146 void *qnxgf_gl_getprocaddres(_THIS, const char *proc);
3087
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
147 void qnxgf_gl_unloadlibrary(_THIS);
3139
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
148 SDL_GLContext qnxgf_gl_createcontext(_THIS, SDL_Window * window);
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
149 int qnxgf_gl_makecurrent(_THIS, SDL_Window * window, SDL_GLContext context);
3087
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
150 int qnxgf_gl_setswapinterval(_THIS, int interval);
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
151 int qnxgf_gl_getswapinterval(_THIS);
3139
Sam Lantinga <slouken@libsdl.org>
parents: 3116
diff changeset
152 void qnxgf_gl_swapwindow(_THIS, SDL_Window * window);
3087
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
153 void qnxgf_gl_deletecontext(_THIS, SDL_GLContext context);
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
154
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
155 /* Event handling function */
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
156 void qnxgf_pumpevents(_THIS);
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
157
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
158 /* Screen saver related function */
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
159 void qnxgf_suspendscreensaver(_THIS);
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
160
0b6f51c29267 Date: Wed, 4 Mar 2009 15:38:22 +0200
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
161 #endif /* __SDL_QNXGF_H__ */
3092
cad1aefa2ed9 Date: Thu, 12 Mar 2009 15:14:38 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3087
diff changeset
162
cad1aefa2ed9 Date: Thu, 12 Mar 2009 15:14:38 +0200
Sam Lantinga <slouken@libsdl.org>
parents: 3087
diff changeset
163 /* vi: set ts=4 sw=4 expandtab: */