comparison src/video/qnxgf/SDL_qnxgf.h @ 3092:cad1aefa2ed9

Date: Thu, 12 Mar 2009 15:14:38 +0200 From: "Mike Gorchak" Subject: New QNX patches In photon.tar.gz there are new files to be placed into ./src/video/photon/ directory. qnx3.diff - new patches for QNX support. Since I've found a lot of bugs in the new GF QNX Graphics Framework and I'm suspended development for GF driver until already found bugs will be fixed and switched to Photon driver implementation. sdl.diff - I've found that renderer creation result has not been checked and SDL shows error like: "there is no current renderer", now SDL will show correct error which was set be renderer.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 17 Mar 2009 03:24:22 +0000
parents 0b6f51c29267
children 82e60908fab1
comparison
equal deleted inserted replaced
3091:32efcc94b3da 3092:cad1aefa2ed9
16 License along with this library; if not, write to the Free Software 16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 18
19 Sam Lantinga 19 Sam Lantinga
20 slouken@libsdl.org 20 slouken@libsdl.org
21
22 QNX Graphics Framework SDL driver
23 Copyright (C) 2009 Mike Gorchak
24 (mike@malva.ua, lestat@i.com.ua)
21 */ 25 */
22 26
23 #ifndef __SDL_QNXGF_H__ 27 #ifndef __SDL_QNXGF_H__
24 #define __SDL_QNXGF_H__ 28 #define __SDL_QNXGF_H__
25 29
32 gf_dev_t gfdev; /* GF device handle */ 36 gf_dev_t gfdev; /* GF device handle */
33 gf_dev_info_t gfdev_info; /* GF device information */ 37 gf_dev_info_t gfdev_info; /* GF device information */
34 SDL_bool gfinitialized; /* GF device initialization status */ 38 SDL_bool gfinitialized; /* GF device initialization status */
35 } SDL_VideoData; 39 } SDL_VideoData;
36 40
41 #define SDL_VIDEO_GF_DEVICENAME_MAX 257
42
37 typedef struct SDL_DisplayData 43 typedef struct SDL_DisplayData
38 { 44 {
39 gf_display_info_t display_info; /* GF display information */ 45 gf_display_info_t display_info; /* GF display information */
40 gf_display_t display; /* GF display handle */ 46 gf_display_t display; /* GF display handle */
47 uint32_t custom_refresh; /* Custom refresh rate for all modes */
48 SDL_DisplayMode current_mode; /* Current video mode */
49 uint8_t description[SDL_VIDEO_GF_DEVICENAME_MAX];
50 /* Device description */
51 uint32_t caps; /* Device capabilities */
52 SDL_bool layer_attached; /* Layer attach status */
53 gf_layer_t layer; /* Graphics layer to which attached */
41 } SDL_DisplayData; 54 } SDL_DisplayData;
55
56 typedef struct SDL_WindowData
57 {
58 SDL_bool uses_gles; /* if true window must support OpenGL ES*/
59 } SDL_WindowData;
60
61 /****************************************************************************/
62 /* Low level GF graphics driver capabilities */
63 /****************************************************************************/
64 typedef struct GF_DeviceCaps
65 {
66 uint8_t* name;
67 uint32_t caps;
68 } GF_DeviceCaps;
69
70 #define SDL_GF_UNACCELERATED 0x00000000
71 #define SDL_GF_ACCELERATED 0x00000001
42 72
43 /****************************************************************************/ 73 /****************************************************************************/
44 /* SDL_VideoDevice functions declaration */ 74 /* SDL_VideoDevice functions declaration */
45 /****************************************************************************/ 75 /****************************************************************************/
46 76
87 117
88 /* Screen saver related function */ 118 /* Screen saver related function */
89 void qnxgf_suspendscreensaver(_THIS); 119 void qnxgf_suspendscreensaver(_THIS);
90 120
91 #endif /* __SDL_QNXGF_H__ */ 121 #endif /* __SDL_QNXGF_H__ */
122
123 /* vi: set ts=4 sw=4 expandtab: */