2006-02-07 12:11:33 +00:00
|
|
|
/*
|
2011-04-08 13:03:26 -07:00
|
|
|
Simple DirectMedia Layer
|
2014-02-02 00:53:27 -08:00
|
|
|
Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
|
2011-04-08 13:03:26 -07:00
|
|
|
|
|
|
|
This software is provided 'as-is', without any express or implied
|
|
|
|
warranty. In no event will the authors be held liable for any damages
|
|
|
|
arising from the use of this software.
|
|
|
|
|
|
|
|
Permission is granted to anyone to use this software for any purpose,
|
|
|
|
including commercial applications, and to alter it and redistribute it
|
|
|
|
freely, subject to the following restrictions:
|
|
|
|
|
|
|
|
1. The origin of this software must not be misrepresented; you must not
|
|
|
|
claim that you wrote the original software. If you use this software
|
|
|
|
in a product, an acknowledgment in the product documentation would be
|
|
|
|
appreciated but is not required.
|
|
|
|
2. Altered source versions must be plainly marked as such, and must not be
|
|
|
|
misrepresented as being the original software.
|
|
|
|
3. This notice may not be removed or altered from any source distribution.
|
2006-02-07 12:11:33 +00:00
|
|
|
*/
|
|
|
|
|
2012-01-19 01:55:51 -05:00
|
|
|
#ifndef _SDL_config_h
|
|
|
|
#define _SDL_config_h
|
2006-02-07 12:11:33 +00:00
|
|
|
|
2009-10-19 13:31:58 +00:00
|
|
|
/**
|
|
|
|
* \file SDL_config.h.in
|
|
|
|
*
|
|
|
|
* This is a set of defines to configure the SDL features
|
|
|
|
*/
|
2006-02-07 12:11:33 +00:00
|
|
|
|
2006-02-21 08:46:50 +00:00
|
|
|
/* General platform specific identifiers */
|
|
|
|
#include "SDL_platform.h"
|
|
|
|
|
2007-07-12 03:14:49 +00:00
|
|
|
/* Make sure that this isn't included by Visual C++ */
|
|
|
|
#ifdef _MSC_VER
|
2011-02-22 21:44:36 -08:00
|
|
|
#error You should run hg revert SDL_config.h
|
2007-07-12 03:14:49 +00:00
|
|
|
#endif
|
|
|
|
|
2006-02-09 09:07:13 +00:00
|
|
|
/* C language features */
|
|
|
|
#undef const
|
|
|
|
#undef inline
|
|
|
|
#undef volatile
|
|
|
|
|
|
|
|
/* C datatypes */
|
2013-06-05 12:28:53 +06:00
|
|
|
#ifdef __LP64__
|
2013-07-11 23:16:47 -07:00
|
|
|
#define SIZEOF_VOIDP 8
|
2013-06-05 12:28:53 +06:00
|
|
|
#else
|
2013-07-11 23:16:47 -07:00
|
|
|
#define SIZEOF_VOIDP 4
|
2013-06-05 12:28:53 +06:00
|
|
|
#endif
|
2011-01-16 15:16:39 -08:00
|
|
|
#undef HAVE_GCC_ATOMICS
|
2011-01-21 21:42:04 -08:00
|
|
|
#undef HAVE_GCC_SYNC_LOCK_TEST_AND_SET
|
2011-06-22 10:33:48 +00:00
|
|
|
#undef HAVE_PTHREAD_SPINLOCK
|
2006-02-09 05:46:55 +00:00
|
|
|
|
2014-05-06 00:13:07 -04:00
|
|
|
#undef HAVE_DXGI_H
|
|
|
|
|
2006-02-09 09:07:13 +00:00
|
|
|
/* Comment this if you want to build without any C library requirements */
|
2006-02-07 12:11:33 +00:00
|
|
|
#undef HAVE_LIBC
|
2006-02-21 08:46:50 +00:00
|
|
|
#if HAVE_LIBC
|
2006-02-07 12:11:33 +00:00
|
|
|
|
2006-02-09 09:07:13 +00:00
|
|
|
/* Useful headers */
|
2006-02-17 08:43:23 +00:00
|
|
|
#undef HAVE_ALLOCA_H
|
2006-02-09 09:07:13 +00:00
|
|
|
#undef HAVE_SYS_TYPES_H
|
2006-02-09 05:46:55 +00:00
|
|
|
#undef HAVE_STDIO_H
|
2006-02-09 09:07:13 +00:00
|
|
|
#undef STDC_HEADERS
|
2006-02-09 05:46:55 +00:00
|
|
|
#undef HAVE_STDLIB_H
|
2006-02-09 09:07:13 +00:00
|
|
|
#undef HAVE_STDARG_H
|
2006-02-09 05:46:55 +00:00
|
|
|
#undef HAVE_MALLOC_H
|
2006-02-09 09:07:13 +00:00
|
|
|
#undef HAVE_MEMORY_H
|
2006-02-09 05:46:55 +00:00
|
|
|
#undef HAVE_STRING_H
|
2006-02-09 09:07:13 +00:00
|
|
|
#undef HAVE_STRINGS_H
|
|
|
|
#undef HAVE_INTTYPES_H
|
|
|
|
#undef HAVE_STDINT_H
|
2006-02-07 12:11:33 +00:00
|
|
|
#undef HAVE_CTYPE_H
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef HAVE_MATH_H
|
2006-03-13 01:08:00 +00:00
|
|
|
#undef HAVE_ICONV_H
|
2006-02-09 05:46:55 +00:00
|
|
|
#undef HAVE_SIGNAL_H
|
2011-02-22 21:44:36 -08:00
|
|
|
#undef HAVE_ALTIVEC_H
|
2011-10-02 00:29:16 -04:00
|
|
|
#undef HAVE_PTHREAD_NP_H
|
2012-12-11 12:07:06 -05:00
|
|
|
#undef HAVE_LIBUDEV_H
|
2012-12-28 03:46:55 -05:00
|
|
|
#undef HAVE_DBUS_DBUS_H
|
2006-02-07 12:11:33 +00:00
|
|
|
|
2006-02-09 09:07:13 +00:00
|
|
|
/* C library functions */
|
2006-02-09 05:46:55 +00:00
|
|
|
#undef HAVE_MALLOC
|
|
|
|
#undef HAVE_CALLOC
|
|
|
|
#undef HAVE_REALLOC
|
2006-02-07 12:11:33 +00:00
|
|
|
#undef HAVE_FREE
|
2006-02-09 05:46:55 +00:00
|
|
|
#undef HAVE_ALLOCA
|
2011-01-24 21:41:36 -08:00
|
|
|
#ifndef __WIN32__ /* Don't use C runtime versions of these on Windows */
|
2006-02-07 12:11:33 +00:00
|
|
|
#undef HAVE_GETENV
|
2009-12-16 10:59:51 +00:00
|
|
|
#undef HAVE_SETENV
|
2006-02-07 12:11:33 +00:00
|
|
|
#undef HAVE_PUTENV
|
2006-02-09 05:46:55 +00:00
|
|
|
#undef HAVE_UNSETENV
|
|
|
|
#endif
|
2006-02-07 12:11:33 +00:00
|
|
|
#undef HAVE_QSORT
|
2006-02-09 05:46:55 +00:00
|
|
|
#undef HAVE_ABS
|
2006-02-09 09:07:13 +00:00
|
|
|
#undef HAVE_BCOPY
|
2006-02-09 05:46:55 +00:00
|
|
|
#undef HAVE_MEMSET
|
|
|
|
#undef HAVE_MEMCPY
|
|
|
|
#undef HAVE_MEMMOVE
|
|
|
|
#undef HAVE_MEMCMP
|
2006-02-07 12:11:33 +00:00
|
|
|
#undef HAVE_STRLEN
|
2006-02-19 23:46:34 +00:00
|
|
|
#undef HAVE_STRLCPY
|
|
|
|
#undef HAVE_STRLCAT
|
2006-02-09 05:46:55 +00:00
|
|
|
#undef HAVE_STRDUP
|
|
|
|
#undef HAVE__STRREV
|
|
|
|
#undef HAVE__STRUPR
|
|
|
|
#undef HAVE__STRLWR
|
2006-02-09 09:07:13 +00:00
|
|
|
#undef HAVE_INDEX
|
|
|
|
#undef HAVE_RINDEX
|
2006-02-09 05:46:55 +00:00
|
|
|
#undef HAVE_STRCHR
|
2006-02-07 12:11:33 +00:00
|
|
|
#undef HAVE_STRRCHR
|
|
|
|
#undef HAVE_STRSTR
|
2006-02-09 05:46:55 +00:00
|
|
|
#undef HAVE_ITOA
|
2006-02-07 12:11:33 +00:00
|
|
|
#undef HAVE__LTOA
|
|
|
|
#undef HAVE__UITOA
|
|
|
|
#undef HAVE__ULTOA
|
2006-02-09 05:46:55 +00:00
|
|
|
#undef HAVE_STRTOL
|
2006-03-02 13:16:02 +00:00
|
|
|
#undef HAVE_STRTOUL
|
2006-02-09 05:46:55 +00:00
|
|
|
#undef HAVE__I64TOA
|
|
|
|
#undef HAVE__UI64TOA
|
|
|
|
#undef HAVE_STRTOLL
|
2006-03-02 13:16:02 +00:00
|
|
|
#undef HAVE_STRTOULL
|
2006-02-09 05:46:55 +00:00
|
|
|
#undef HAVE_STRTOD
|
|
|
|
#undef HAVE_ATOI
|
|
|
|
#undef HAVE_ATOF
|
|
|
|
#undef HAVE_STRCMP
|
|
|
|
#undef HAVE_STRNCMP
|
2006-03-13 02:06:33 +00:00
|
|
|
#undef HAVE__STRICMP
|
2006-02-09 05:46:55 +00:00
|
|
|
#undef HAVE_STRCASECMP
|
2006-03-13 02:12:39 +00:00
|
|
|
#undef HAVE__STRNICMP
|
2006-03-13 01:08:00 +00:00
|
|
|
#undef HAVE_STRNCASECMP
|
2006-02-09 05:46:55 +00:00
|
|
|
#undef HAVE_SSCANF
|
2013-11-24 23:35:38 -05:00
|
|
|
#undef HAVE_VSSCANF
|
2006-02-09 05:46:55 +00:00
|
|
|
#undef HAVE_SNPRINTF
|
|
|
|
#undef HAVE_VSNPRINTF
|
2009-01-10 18:32:24 +00:00
|
|
|
#undef HAVE_M_PI
|
2010-08-29 16:51:48 -07:00
|
|
|
#undef HAVE_ATAN
|
2010-08-29 16:05:34 -07:00
|
|
|
#undef HAVE_ATAN2
|
2013-12-09 15:17:20 -05:00
|
|
|
#undef HAVE_ACOS
|
|
|
|
#undef HAVE_ASIN
|
2009-01-12 08:46:28 +00:00
|
|
|
#undef HAVE_CEIL
|
2009-01-10 18:32:24 +00:00
|
|
|
#undef HAVE_COPYSIGN
|
|
|
|
#undef HAVE_COS
|
|
|
|
#undef HAVE_COSF
|
|
|
|
#undef HAVE_FABS
|
|
|
|
#undef HAVE_FLOOR
|
|
|
|
#undef HAVE_LOG
|
|
|
|
#undef HAVE_POW
|
|
|
|
#undef HAVE_SCALBN
|
|
|
|
#undef HAVE_SIN
|
|
|
|
#undef HAVE_SINF
|
|
|
|
#undef HAVE_SQRT
|
2014-06-07 18:20:01 -07:00
|
|
|
#undef HAVE_SQRTF
|
|
|
|
#undef HAVE_TAN
|
|
|
|
#undef HAVE_TANF
|
2012-11-03 18:43:36 -07:00
|
|
|
#undef HAVE_FSEEKO
|
|
|
|
#undef HAVE_FSEEKO64
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef HAVE_SIGACTION
|
2011-07-20 16:35:37 -07:00
|
|
|
#undef HAVE_SA_SIGACTION
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef HAVE_SETJMP
|
|
|
|
#undef HAVE_NANOSLEEP
|
2009-12-17 03:04:04 +00:00
|
|
|
#undef HAVE_SYSCONF
|
2009-12-16 06:53:53 +00:00
|
|
|
#undef HAVE_SYSCTLBYNAME
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef HAVE_CLOCK_GETTIME
|
2007-02-15 23:57:07 +00:00
|
|
|
#undef HAVE_GETPAGESIZE
|
2009-10-18 17:49:40 +00:00
|
|
|
#undef HAVE_MPROTECT
|
2011-01-19 15:28:01 -08:00
|
|
|
#undef HAVE_ICONV
|
2011-10-02 00:29:16 -04:00
|
|
|
#undef HAVE_PTHREAD_SETNAME_NP
|
|
|
|
#undef HAVE_PTHREAD_SET_NAME_NP
|
2012-01-15 03:34:14 -05:00
|
|
|
#undef HAVE_SEM_TIMEDWAIT
|
2006-02-07 12:11:33 +00:00
|
|
|
|
2006-02-16 10:11:48 +00:00
|
|
|
#else
|
2013-06-13 22:10:10 -07:00
|
|
|
#define HAVE_STDARG_H 1
|
|
|
|
#define HAVE_STDDEF_H 1
|
|
|
|
#define HAVE_STDINT_H 1
|
2006-02-07 12:11:33 +00:00
|
|
|
#endif /* HAVE_LIBC */
|
|
|
|
|
2010-01-13 06:47:17 +00:00
|
|
|
/* SDL internal assertion support */
|
2010-01-13 07:25:28 +00:00
|
|
|
#undef SDL_DEFAULT_ASSERT_LEVEL
|
2010-01-13 06:47:17 +00:00
|
|
|
|
2006-02-09 09:07:13 +00:00
|
|
|
/* Allow disabling of core subsystems */
|
2011-02-07 22:57:33 -08:00
|
|
|
#undef SDL_ATOMIC_DISABLED
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef SDL_AUDIO_DISABLED
|
|
|
|
#undef SDL_CPUINFO_DISABLED
|
|
|
|
#undef SDL_EVENTS_DISABLED
|
|
|
|
#undef SDL_FILE_DISABLED
|
|
|
|
#undef SDL_JOYSTICK_DISABLED
|
2008-08-25 09:55:03 +00:00
|
|
|
#undef SDL_HAPTIC_DISABLED
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef SDL_LOADSO_DISABLED
|
2011-02-08 10:04:09 -08:00
|
|
|
#undef SDL_RENDER_DISABLED
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef SDL_THREADS_DISABLED
|
|
|
|
#undef SDL_TIMERS_DISABLED
|
|
|
|
#undef SDL_VIDEO_DISABLED
|
2009-06-07 06:06:35 +00:00
|
|
|
#undef SDL_POWER_DISABLED
|
2013-08-20 19:57:11 -04:00
|
|
|
#undef SDL_FILESYSTEM_DISABLED
|
2006-02-16 10:11:48 +00:00
|
|
|
|
|
|
|
/* Enable various audio drivers */
|
|
|
|
#undef SDL_AUDIO_DRIVER_ALSA
|
|
|
|
#undef SDL_AUDIO_DRIVER_ALSA_DYNAMIC
|
|
|
|
#undef SDL_AUDIO_DRIVER_ARTS
|
|
|
|
#undef SDL_AUDIO_DRIVER_ARTS_DYNAMIC
|
2007-08-20 01:02:37 +00:00
|
|
|
#undef SDL_AUDIO_DRIVER_PULSEAUDIO
|
|
|
|
#undef SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC
|
2013-11-14 11:51:24 -05:00
|
|
|
#undef SDL_AUDIO_DRIVER_HAIKU
|
2006-03-21 09:40:01 +00:00
|
|
|
#undef SDL_AUDIO_DRIVER_BSD
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef SDL_AUDIO_DRIVER_COREAUDIO
|
|
|
|
#undef SDL_AUDIO_DRIVER_DISK
|
2006-03-14 08:53:33 +00:00
|
|
|
#undef SDL_AUDIO_DRIVER_DUMMY
|
2014-04-06 00:30:48 +03:00
|
|
|
#undef SDL_AUDIO_DRIVER_ANDROID
|
2011-08-04 01:07:09 -04:00
|
|
|
#undef SDL_AUDIO_DRIVER_XAUDIO2
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef SDL_AUDIO_DRIVER_DSOUND
|
|
|
|
#undef SDL_AUDIO_DRIVER_ESD
|
|
|
|
#undef SDL_AUDIO_DRIVER_ESD_DYNAMIC
|
2014-06-06 15:45:59 -03:00
|
|
|
#undef SDL_AUDIO_DRIVER_NACL
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef SDL_AUDIO_DRIVER_NAS
|
2006-10-17 09:15:21 +00:00
|
|
|
#undef SDL_AUDIO_DRIVER_NAS_DYNAMIC
|
2013-07-07 02:03:07 -04:00
|
|
|
#undef SDL_AUDIO_DRIVER_SNDIO
|
|
|
|
#undef SDL_AUDIO_DRIVER_SNDIO_DYNAMIC
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef SDL_AUDIO_DRIVER_OSS
|
|
|
|
#undef SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H
|
2006-10-17 09:15:21 +00:00
|
|
|
#undef SDL_AUDIO_DRIVER_PAUDIO
|
Date: Mon, 23 Mar 2009 09:17:24 +0200
From: "Mike Gorchak"
Subject: New QNX patches
Please apply patch qnx4.diff, which is attached. What has been done:
1)Added back OpenGL ES renderer for QNX target. Added few corrections to
OpenGL ES renderer to let it work under QNX. OpenGL ES renderer do not
support textures under QNX, so I think some additional work must be done.
2) Added GL_OES_query_matrix extension to SDL_opengles.h header file, which
required by OpenGL ES 1.1 specification.
3) Added attribute clearing at the entrance of function
SDL_GL_GetAttribure(). Added error checking into the function
SDL_GL_GetAttribure(), because some attributes can't be obtained in OpenGL
ES 1.0.
4) Porting testdyngles to OpenGL ES 1.0 (1.1 has glColor4ub() and
glColor4f() functions, but 1.0 has glColor4f() only).
5) Added error checking after obtaining attributes using
SDL_GL_GetAttribute() function to the testgl2 and testgles.
6) Small correction to testmultiaudio with printing errors.
7) Added software and accelerated OpenGL ES 1.0 support into the QNX GF
driver.
Please remove ./src/audio/nto directory - it will not be used anymore.
Please create ./src/audio/qsa directory and add content of the archive
qsa.tar.gz into this directory. I rewrote some sound code, added support for
multiple audio cards, enumeration, etc. Added initial support for capture.
As far as I can understand SDL 1.3 is not supporting audio capture right now
? Sam, Am I right ? Or audio capture must be supported through the
PlayDevice routine ?
And last, please put file SDL_gf_opengles.c to the ./src/video/qnxgf
directory. It is OpenGL ES 1.1 emulation layer for some functions, which are
not supported by OpenGL ES 1.0.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403566
2009-03-24 10:33:12 +00:00
|
|
|
#undef SDL_AUDIO_DRIVER_QSA
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef SDL_AUDIO_DRIVER_SUNAUDIO
|
2011-08-04 01:24:22 -04:00
|
|
|
#undef SDL_AUDIO_DRIVER_WINMM
|
2009-01-01 21:34:22 +00:00
|
|
|
#undef SDL_AUDIO_DRIVER_FUSIONSOUND
|
|
|
|
#undef SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC
|
2006-02-16 10:11:48 +00:00
|
|
|
|
|
|
|
/* Enable various input drivers */
|
2007-09-25 10:01:10 +00:00
|
|
|
#undef SDL_INPUT_LINUXEV
|
2013-10-03 10:28:10 -03:00
|
|
|
#undef SDL_INPUT_LINUXKD
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef SDL_INPUT_TSLIB
|
2013-11-14 11:51:24 -05:00
|
|
|
#undef SDL_JOYSTICK_HAIKU
|
2006-07-10 21:04:37 +00:00
|
|
|
#undef SDL_JOYSTICK_DINPUT
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef SDL_JOYSTICK_DUMMY
|
|
|
|
#undef SDL_JOYSTICK_IOKIT
|
|
|
|
#undef SDL_JOYSTICK_LINUX
|
2014-04-06 00:30:48 +03:00
|
|
|
#undef SDL_JOYSTICK_ANDROID
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef SDL_JOYSTICK_WINMM
|
|
|
|
#undef SDL_JOYSTICK_USBHID
|
2006-03-21 08:54:50 +00:00
|
|
|
#undef SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H
|
2008-08-25 09:55:03 +00:00
|
|
|
#undef SDL_HAPTIC_DUMMY
|
|
|
|
#undef SDL_HAPTIC_LINUX
|
|
|
|
#undef SDL_HAPTIC_IOKIT
|
|
|
|
#undef SDL_HAPTIC_DINPUT
|
2006-02-16 10:11:48 +00:00
|
|
|
|
|
|
|
/* Enable various shared object loading systems */
|
2013-11-14 11:51:24 -05:00
|
|
|
#undef SDL_LOADSO_HAIKU
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef SDL_LOADSO_DLOPEN
|
2006-04-14 04:46:47 +00:00
|
|
|
#undef SDL_LOADSO_DUMMY
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef SDL_LOADSO_LDG
|
2011-01-20 18:04:05 -08:00
|
|
|
#undef SDL_LOADSO_WINDOWS
|
2006-02-16 10:11:48 +00:00
|
|
|
|
|
|
|
/* Enable various threading systems */
|
|
|
|
#undef SDL_THREAD_PTHREAD
|
|
|
|
#undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX
|
|
|
|
#undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP
|
2011-01-20 18:04:05 -08:00
|
|
|
#undef SDL_THREAD_WINDOWS
|
2006-02-16 10:11:48 +00:00
|
|
|
|
|
|
|
/* Enable various timer systems */
|
2013-11-14 11:51:24 -05:00
|
|
|
#undef SDL_TIMER_HAIKU
|
2006-04-14 04:46:47 +00:00
|
|
|
#undef SDL_TIMER_DUMMY
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef SDL_TIMER_UNIX
|
2011-01-20 18:04:05 -08:00
|
|
|
#undef SDL_TIMER_WINDOWS
|
2006-02-16 10:11:48 +00:00
|
|
|
|
|
|
|
/* Enable various video drivers */
|
2013-11-14 11:51:24 -05:00
|
|
|
#undef SDL_VIDEO_DRIVER_HAIKU
|
2006-07-23 09:11:10 +00:00
|
|
|
#undef SDL_VIDEO_DRIVER_COCOA
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef SDL_VIDEO_DRIVER_DIRECTFB
|
2009-01-04 23:43:33 +00:00
|
|
|
#undef SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef SDL_VIDEO_DRIVER_DUMMY
|
2011-01-20 18:04:05 -08:00
|
|
|
#undef SDL_VIDEO_DRIVER_WINDOWS
|
2013-12-14 20:18:43 -03:00
|
|
|
#undef SDL_VIDEO_DRIVER_WAYLAND
|
2013-12-27 09:29:39 -03:00
|
|
|
#undef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
|
2014-01-09 13:56:21 -03:00
|
|
|
#undef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC
|
|
|
|
#undef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL
|
|
|
|
#undef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR
|
|
|
|
#undef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON
|
2014-02-02 23:41:46 -05:00
|
|
|
#undef SDL_VIDEO_DRIVER_MIR
|
2014-02-03 11:52:54 -05:00
|
|
|
#undef SDL_VIDEO_DRIVER_MIR_DYNAMIC
|
|
|
|
#undef SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef SDL_VIDEO_DRIVER_X11
|
2013-09-28 13:28:19 -03:00
|
|
|
#undef SDL_VIDEO_DRIVER_RPI
|
2014-04-06 00:30:48 +03:00
|
|
|
#undef SDL_VIDEO_DRIVER_ANDROID
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC
|
|
|
|
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT
|
2011-03-11 13:56:53 -08:00
|
|
|
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR
|
2011-02-28 09:01:53 -08:00
|
|
|
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA
|
2012-05-30 11:25:35 -04:00
|
|
|
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2
|
2011-02-28 09:01:53 -08:00
|
|
|
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR
|
2009-01-12 06:19:05 +00:00
|
|
|
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS
|
2011-02-28 09:01:53 -08:00
|
|
|
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE
|
2011-03-11 13:56:53 -08:00
|
|
|
#undef SDL_VIDEO_DRIVER_X11_XCURSOR
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef SDL_VIDEO_DRIVER_X11_XINERAMA
|
2012-05-30 11:25:35 -04:00
|
|
|
#undef SDL_VIDEO_DRIVER_X11_XINPUT2
|
2012-05-31 13:37:02 +03:00
|
|
|
#undef SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH
|
2011-02-28 09:01:53 -08:00
|
|
|
#undef SDL_VIDEO_DRIVER_X11_XRANDR
|
|
|
|
#undef SDL_VIDEO_DRIVER_X11_XSCRNSAVER
|
2010-07-13 02:43:10 -04:00
|
|
|
#undef SDL_VIDEO_DRIVER_X11_XSHAPE
|
2011-02-28 09:01:53 -08:00
|
|
|
#undef SDL_VIDEO_DRIVER_X11_XVIDMODE
|
2012-05-30 11:25:35 -04:00
|
|
|
#undef SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS
|
2013-06-02 20:20:18 +06:00
|
|
|
#undef SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32
|
2012-05-30 11:44:57 -04:00
|
|
|
#undef SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY
|
2012-05-31 19:23:30 +03:00
|
|
|
#undef SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM
|
2014-06-06 15:45:59 -03:00
|
|
|
#undef SDL_VIDEO_DRIVER_NACL
|
2010-05-31 13:27:27 +05:30
|
|
|
|
2006-07-10 21:04:37 +00:00
|
|
|
#undef SDL_VIDEO_RENDER_D3D
|
2014-03-10 01:51:03 -07:00
|
|
|
#undef SDL_VIDEO_RENDER_D3D11
|
2006-07-10 21:04:37 +00:00
|
|
|
#undef SDL_VIDEO_RENDER_OGL
|
2009-03-04 15:10:47 +00:00
|
|
|
#undef SDL_VIDEO_RENDER_OGL_ES
|
Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Scott Percival 2011-07-03 06:41:51 PDT
This submission is aimed at making life easier for OpenGL ES capable devices
running a X11 stack (e.g. Maemo, Meego, TrimSlice, other ARM SoC boards not
running Android). SDL's Pandora support already has the neccesary GLES-to-X11
glue code, however it's all ghetto'd off in Makefile.pandora and not very
flexible.
The patch:
- adds an awesome --enable-video-opengles option to configure
- re-modifies the opengles and opengles2 SDL_renderers to use function pointers
- no idea why this was removed?
- for SDL_Renderers, links in libGLESv1_CM, libGLES_CM (for PowerVR fans) or
libGLESv2 at runtime
- links in libEGL.so at runtime - the old code made an assumption that
eglFunctions could be pulled from the active GLES library, PowerVR for one
doesn't let you do that with their libGLESv2
- allows you to pick which of GLES v1 or v2 to load via
SDL_GL_CONTEXT_MAJOR_VERSION
So far I've tested this on a Nokia N900 (OMAP 3430/SGX 530 running Maemo 5) and
a Toshiba AC100 (Tegra 2 running Ubuntu 10.10). I haven't tested it on... well,
everything that isn't those two, such as a Pandora, iOS or Android device. The
Pandora specific code should be kept intact (fingers crossed), and nothing
painfully drastic has been added to the SDL_renderers. The library loading
sequence in SDL_x11opengles has been updated to accomodate both NVIDIA's
propensity to let developers get away with murder and PowerVR's alternative of
punishing every missed step.
The test apps work okay with GLES or GLES2 as the renderer. For some reason
alpha blending doesn't seem to work on the Tegra 2; last week NVIDIA pushed out
a new set of X11 GLES drivers, so I'll try and investigate once I upgrade
those. Also, this patch adds things to configure.in, include/SDL_config.h.in
and test/configure.in. I didn't know what the policy was re. committing
generated spaghetti from autotools, so ./autogen.sh has to be run again. Sorry.
I think that's about everything, let me know if there's anything I've
overlooked.
2012-01-08 02:23:37 -05:00
|
|
|
#undef SDL_VIDEO_RENDER_OGL_ES2
|
2011-02-05 16:07:10 -08:00
|
|
|
#undef SDL_VIDEO_RENDER_DIRECTFB
|
2006-07-10 21:04:37 +00:00
|
|
|
|
2006-02-16 10:11:48 +00:00
|
|
|
/* Enable OpenGL support */
|
|
|
|
#undef SDL_VIDEO_OPENGL
|
2009-03-04 15:10:47 +00:00
|
|
|
#undef SDL_VIDEO_OPENGL_ES
|
2013-08-22 13:00:05 -04:00
|
|
|
#undef SDL_VIDEO_OPENGL_ES2
|
2006-07-28 08:43:17 +00:00
|
|
|
#undef SDL_VIDEO_OPENGL_BGL
|
|
|
|
#undef SDL_VIDEO_OPENGL_CGL
|
2013-08-19 16:29:46 -03:00
|
|
|
#undef SDL_VIDEO_OPENGL_EGL
|
2006-02-16 10:11:48 +00:00
|
|
|
#undef SDL_VIDEO_OPENGL_GLX
|
|
|
|
#undef SDL_VIDEO_OPENGL_WGL
|
|
|
|
#undef SDL_VIDEO_OPENGL_OSMESA
|
|
|
|
#undef SDL_VIDEO_OPENGL_OSMESA_DYNAMIC
|
|
|
|
|
2009-06-07 06:06:35 +00:00
|
|
|
/* Enable system power support */
|
|
|
|
#undef SDL_POWER_LINUX
|
|
|
|
#undef SDL_POWER_WINDOWS
|
|
|
|
#undef SDL_POWER_MACOSX
|
2013-11-14 11:51:24 -05:00
|
|
|
#undef SDL_POWER_HAIKU
|
2014-04-06 00:30:48 +03:00
|
|
|
#undef SDL_POWER_ANDROID
|
2009-06-07 06:06:35 +00:00
|
|
|
#undef SDL_POWER_HARDWIRED
|
|
|
|
|
2013-08-20 19:57:11 -04:00
|
|
|
/* Enable system filesystem support */
|
2013-11-14 11:51:24 -05:00
|
|
|
#undef SDL_FILESYSTEM_HAIKU
|
2013-08-20 19:57:11 -04:00
|
|
|
#undef SDL_FILESYSTEM_COCOA
|
|
|
|
#undef SDL_FILESYSTEM_DUMMY
|
|
|
|
#undef SDL_FILESYSTEM_UNIX
|
|
|
|
#undef SDL_FILESYSTEM_WINDOWS
|
|
|
|
|
2006-02-21 08:46:50 +00:00
|
|
|
/* Enable assembly routines */
|
|
|
|
#undef SDL_ASSEMBLY_ROUTINES
|
2011-02-22 21:44:36 -08:00
|
|
|
#undef SDL_ALTIVEC_BLITTERS
|
2006-02-09 09:07:13 +00:00
|
|
|
|
2012-01-19 01:55:51 -05:00
|
|
|
#endif /* _SDL_config_h */
|