Skip to content
Permalink
Browse files

Mike Gorchak added some QNX tweaks, including OpenGL support

  • Loading branch information
slouken committed Feb 14, 2002
1 parent 69401d0 commit 5d3e9b6c4be02f9444d5b6d6704e3213523b239c
Showing with 95 additions and 88 deletions.
  1. +0 −7 BUGS
  2. +20 −3 README.QNX
  3. +23 −0 configure.in
  4. +52 −78 src/video/photon/SDL_ph_video.c
7 BUGS
@@ -190,10 +190,6 @@ AIX: -= NOT YET SUPPORTED =-
http://www.kom.e-technik.tu-darmstadt.de/~griff/SDL/

QNX: -= NOT YET SUPPORTED =-
Configuration doesn't work right, Makefiles still need to be
tweaked (need to add libraries to any apps that use sdl_config
to figure out what libs they need).

Only static libraries are being made, no shared ones.

The only hardware surface is the primary view surface.
@@ -204,9 +200,6 @@ QNX: -= NOT YET SUPPORTED =-

The software surfaces could use some speed up.

It doesn't look like the OpenGL stuff is there. (did a grep for
PdCreateOpenGLContext, nothing found).

The mouse cursor doesn't look right.

AmigaOS: -= NOT YET SUPPORTED =-
@@ -3,17 +3,34 @@ README by Mike Gorchak <mike@malva.com.ua>
Experimentally added OpenGL support in window mode (in fullscreen
mode not yet). If you have QNX RtP v6.1.0 w/ or w/o Patch A you need
to download new Photon3D runtime from http://developers.qnx.com. The
versions of OS before 6.1.0 is not supported. OpenGL support is very
raw. It is often fail.
versions of OS before 6.1.0 is not supported.

Problems:
1. OpenGL support is very raw. It is often fail. Update function has
not been written yet. Fullscreen mode has not been written yet.
2. Photon has some errors in detecting how much bits per pixel has
videomode, creating images with different color depth.
3. No shared libraries yet. We need manually set flags as
--disable-shared.

Some building issues:

Run configure script without x11 support, e.g.:

./configure --prefix=/usr/local --disable-video-x11
a) for OpenGL support:
./configure --prefix=/usr/local \
--disable-video-x11 \
--disable-shared

a) without OpenGL support:
./configure --prefix=/usr/local \
--disable-video-x11 \
--disable-shared \
--disable-video-opengl

In test directory also run ./configure script without x11 support, e.g.:

./configure --with-sdl-prefix=/usr/local \
--with-sdl-exec-prefix=/usr/local \
--prefix=/usr/local --without-x

@@ -647,6 +647,7 @@ CheckX11()
fi
fi
}

CheckPHOTON()
{
AC_ARG_ENABLE(video-photon,
@@ -671,6 +672,7 @@ CheckPHOTON()
SYSTEM_LIBS="$SYSTEM_LIBS -lph"
VIDEO_SUBDIRS="$VIDEO_SUBDIRS photon"
VIDEO_DRIVERS="$VIDEO_DRIVERS photon/libvideo_photon.la"
CheckOpenGLQNX
fi
fi
}
@@ -947,6 +949,26 @@ CheckOpenGL()
fi
}

dnl Find QNX RtP OpenGL
CheckOpenGLQNX()
{
if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
AC_MSG_CHECKING(for OpenGL (Photon) support)
video_opengl=no
AC_TRY_COMPILE([
#include <GL/gl.h>
],[
],[
video_opengl=yes
])
AC_MSG_RESULT($video_opengl)
if test x$video_opengl = xyes; then
CFLAGS="$CFLAGS -DHAVE_OPENGL"
SYSTEM_LIBS="$SYSTEM_LIBS -lGL"
fi
fi
}

dnl Check for BeOS OpenGL
CheckBeGL()
{
@@ -2162,6 +2184,7 @@ AM_CONDITIONAL(TARGET_WIN32, test $ARCH = win32)
AM_CONDITIONAL(TARGET_BEOS, test $ARCH = beos)
AM_CONDITIONAL(TARGET_MACOS, test $ARCH = macos)
AM_CONDITIONAL(TARGET_MACOSX, test $ARCH = macosx)
AM_CONDITIONAL(TARGET_QNX, test $ARCH = qnx)

# Set conditional variables for shared and static library selection.
# These are not used in any Makefile.am but in sdl-config.in.

0 comments on commit 5d3e9b6

Please sign in to comment.