diff 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
line wrap: on
line diff
--- a/src/video/qnxgf/SDL_qnxgf.h	Sun Mar 15 15:50:18 2009 +0000
+++ b/src/video/qnxgf/SDL_qnxgf.h	Tue Mar 17 03:24:22 2009 +0000
@@ -18,6 +18,10 @@
 
     Sam Lantinga
     slouken@libsdl.org
+
+    QNX Graphics Framework SDL driver
+    Copyright (C) 2009 Mike Gorchak
+    (mike@malva.ua, lestat@i.com.ua)
 */
 
 #ifndef __SDL_QNXGF_H__
@@ -34,12 +38,38 @@
    SDL_bool      gfinitialized;      /* GF device initialization status      */
 } SDL_VideoData;
 
+#define SDL_VIDEO_GF_DEVICENAME_MAX 257
+
 typedef struct SDL_DisplayData
 {
-   gf_display_info_t display_info;   /* GF display information               */
-   gf_display_t      display;        /* GF display handle                    */
+   gf_display_info_t display_info;     /* GF display information             */
+   gf_display_t      display;          /* GF display handle                  */
+   uint32_t          custom_refresh;   /* Custom refresh rate for all modes  */
+   SDL_DisplayMode   current_mode;     /* Current video mode                 */
+   uint8_t           description[SDL_VIDEO_GF_DEVICENAME_MAX];
+                                       /* Device description                 */
+   uint32_t          caps;             /* Device capabilities                */
+   SDL_bool          layer_attached;   /* Layer attach status                */
+   gf_layer_t        layer;            /* Graphics layer to which attached   */
 } SDL_DisplayData;
 
+typedef struct SDL_WindowData
+{
+   SDL_bool     uses_gles;           /* if true window must support OpenGL ES*/
+} SDL_WindowData;
+
+/****************************************************************************/
+/* Low level GF graphics driver capabilities                                */
+/****************************************************************************/
+typedef struct GF_DeviceCaps
+{
+   uint8_t* name;
+   uint32_t caps;
+} GF_DeviceCaps;
+
+#define SDL_GF_UNACCELERATED         0x00000000
+#define SDL_GF_ACCELERATED           0x00000001
+
 /****************************************************************************/
 /* SDL_VideoDevice functions declaration                                    */
 /****************************************************************************/
@@ -89,3 +119,5 @@
 void qnxgf_suspendscreensaver(_THIS);
 
 #endif /* __SDL_QNXGF_H__ */
+
+/* vi: set ts=4 sw=4 expandtab: */