Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Mike Gorchak added some QNX tweaks, including OpenGL support
  • Loading branch information
slouken committed Feb 14, 2002
1 parent 69401d0 commit 5d3e9b6
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 88 deletions.
7 changes: 0 additions & 7 deletions BUGS
Expand Up @@ -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.
Expand All @@ -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 =-
Expand Down
23 changes: 20 additions & 3 deletions README.QNX
Expand Up @@ -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

23 changes: 23 additions & 0 deletions configure.in
Expand Up @@ -647,6 +647,7 @@ CheckX11()
fi
fi
}

CheckPHOTON()
{
AC_ARG_ENABLE(video-photon,
Expand All @@ -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
}
Expand Down Expand Up @@ -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()
{
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 5d3e9b6

Please sign in to comment.