README.QNX
author Sam Lantinga <slouken@libsdl.org>
Tue, 17 Mar 2009 03:24:22 +0000
changeset 3092 cad1aefa2ed9
parent 3083 0bc41e0361d3
child 3099 82e60908fab1
permissions -rw-r--r--
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.
slouken@886
     1
README.QNX by Mike Gorchak <mike@malva.ua>, <lestat@i.com.ua>
slouken@3092
     2
Last changed at 10 Mar 2009.
slouken@753
     3
slouken@3083
     4
QNX Photon and GF drivers are under construction. Please be patient.
slouken@3092
     5
slouken@3092
     6
---------------------
slouken@3092
     7
 -- SDL GF driver --
slouken@3092
     8
---------------------
slouken@3092
     9
slouken@3092
    10
Here is an additional information about SDL GF driver:
slouken@3092
    11
 * 0. Introduction.
slouken@3092
    12
 * 1. Environment variables which SDL GF driver supports.
slouken@3092
    13
 * 2. Custom video modes.
slouken@3092
    14
 * 3. Limitations.
slouken@3092
    15
slouken@3092
    16
0. Introduction.
slouken@3092
    17
slouken@3092
    18
   SDL GF driver is a layer between SDL and QNX Graphics Framework (GF). Hardware
slouken@3092
    19
accelerated features which SDL could support depends on real hardware capabilities.
slouken@3092
    20
slouken@3092
    21
1. Environment variables which GF driver supports.
slouken@3092
    22
slouken@3092
    23
   GF driver supports the following environment variables for QNX GF specific
slouken@3092
    24
customization options:
slouken@3092
    25
   a) SDL_VIDEO_GF_REFRESH_RATE - refresh rate of video output in Hz. Without
slouken@3092
    26
      this environment variable declaration SDL controls refresh rate of your
slouken@3092
    27
      display. If this enironment variable is set to 0, SDL will control refresh
slouken@3092
    28
      rate of display, otherwise value of SDL_VIDEO_GF_REFRESH_RATE is used for
slouken@3092
    29
      all screen resolutions as refresh rate. This example will set 60Hz refresh
slouken@3092
    30
      rate as refresh rate for all graphics modes:
slouken@3092
    31
slouken@3092
    32
      export SDL_VIDEO_GF_REFRESH_RATE=60
slouken@3092
    33
slouken@3092
    34
2. Custom video modes.
slouken@3092
    35
slouken@3092
    36
   Since most QNX graphics drivers supports GENERIC video modes, i.e. you could
slouken@3092
    37
specify any horizontal and vertical resolution and any refresh rate, SDL GF
slouken@3092
    38
driver uses its own fullscreen modes list, which could be incomplete. You could
slouken@3092
    39
add any custom video mode, which your QNX graphics driver supports by editing
slouken@3092
    40
file ./src/video/qnxgf/SDL_qnxgf.c. Custom graphics mode definition looks like
slouken@3092
    41
slouken@3092
    42
   {0, 1024, 640, 60, NULL},   /* 1024x640 mode is 60Hz only               */
slouken@3092
    43
slouken@3092
    44
You must specify horizontal resolution as second parameter, vertical resolution
slouken@3092
    45
as third parameter and refresh rate as fourth parameter. Please leave first and
slouken@3092
    46
last parameters as 0 and NULL. Then please send me your changes to e-mail address
slouken@3092
    47
which is specified in the header of this document.
slouken@3092
    48
slouken@3092
    49
3. Limitations.
slouken@3092
    50
slouken@3092
    51
   There are few limitations while using SDL GF driver:
slouken@3092
    52
slouken@3092
    53
   a) Since GF driver supports fullscreen modes only, when you are not specifing
slouken@3092
    54
SDL_WINDOW_FULLSCREEN flag, an SDL GF driver will try to find the fullscreen
slouken@3092
    55
graphics mode which corresponds to SDL window size. Refresh rate will be the
slouken@3092
    56
lowest available, if SDL_VIDEO_GF_REFRESH_RATE environment variable is not set.
slouken@3092
    57