summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2012-02-28added some detection of waylandjoel@teichroeb.net1-0/+1
2012-02-20Add OpenGL 3.X context creation supportSam Lantinga1-1/+17
Matthias Bentrup 2011-10-30 03:58:24 PDT I've updated the context creation patch to include the bugfixes by Martin Schreiber and also included a profile bit to request a ES2 compatible profile. The wgl context creation may use 2 call to wglChoosePixelFormat if no acceleration attribute is selected, this should work around a bug with buggy AMD drivers (see #1254).
2012-02-07Check for _STDINT_H in SDL_config_minimal.hRyan C. Gordon1-2/+2
2012-01-22Added a convenience function SDL_CreateWindowAndRenderer()Sam Lantinga1-0/+16
2012-01-22Re-added SDL_SWSURFACE, because it looks silly to always pass 0 to ↵Sam Lantinga1-1/+4
SDL_CreateRGBSurface()
2012-01-22Removed the SDL 1.2 compatibility API... we'll see how painful this is.Sam Lantinga3-410/+0
2012-01-22Removing some more references to SDL 1.3Sam Lantinga2-2/+2
2012-01-22Updated to SDL 2.0, and SDL 2.0 can now be installed coexisting with SDL 1.2Sam Lantinga1-2/+2
--HG-- rename : sdl-config.in => sdl2-config.in rename : sdl.m4 => sdl2.m4 rename : sdl.pc.in => sdl2.pc.in
2012-01-22You need to create the texture with the SDL_TEXTUREACCESS_TARGET flag.Sam Lantinga1-1/+1
2012-01-22Renamed SetTargetTexture() to SetRenderTarget()Sam Lantinga1-24/+19
2012-01-19Added a renderer flag to expose whether a renderer supports render to texture.Sam Lantinga1-1/+3
2012-01-19Switched back to configure generating SDL_config.hSam Lantinga2-8/+7
It was very confusing to have configure generate an SDL_config.h and then not have it be used when building on Mac OS X or Windows. I'll just have to remember to use SDL_config_windows.h when building official releases that are supposed to be ABI compatible with Visual Studio. --HG-- rename : include/SDL_config_generated.h.in => include/SDL_config.h.in
2012-01-18Implementation of render targets, by Mason Wheeler and Gabriel JacoboSam Lantinga1-1/+27
Thanks guys!
2012-01-16Fixed configure buildSam Lantinga1-3/+3
2012-01-15Check for sem_timedwait(), which isn't available on some systems (including ↵Sam Lantinga1-0/+1
OpenBSD
2012-01-14Make sure that we use consistent configuration options on platforms like ↵Sam Lantinga2-2/+6
Windows so that command line builds and IDE builds have ABI compatibility. Make sure we don't clobber SDL_revision.h when building from Mercurial --HG-- rename : include/SDL_config.h.in => include/SDL_config_generated.h.in
2012-01-14Unofficial builds should have a 0 revision number - if this accidentally ↵Sam Lantinga1-2/+2
gets checked in with a different revision, this file should be reverted to this content.
2012-01-14Fixed inline assembly warning for PPCSam Lantinga1-2/+2
input constraint with a matching output constraint of incompatible type
2012-01-09Fixed structure alignment mismatch between Visual Studio and gcc on 64-bit ↵Sam Lantinga1-0/+5
architectures.
2012-01-08Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11Sam Lantinga1-0/+1
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-05Updated iOS projects and renamed iPhoneOS to iOSSam Lantinga1-1/+1
--HG-- rename : README.iphoneos => README.iOS rename : Xcode-iPhoneOS/Demos/Default.png => Xcode-iOS/Demos/Default.png rename : Xcode-iPhoneOS/Demos/DemosiPhoneOS.xcodeproj/project.pbxproj => Xcode-iOS/Demos/Demos.xcodeproj/project.pbxproj rename : Xcode-iPhoneOS/Demos/Icon.png => Xcode-iOS/Demos/Icon.png rename : Xcode-iPhoneOS/Demos/Info.plist => Xcode-iOS/Demos/Info.plist rename : Xcode-iPhoneOS/Demos/README => Xcode-iOS/Demos/README rename : Xcode-iPhoneOS/Demos/data/bitmapfont/kromasky_16x16.bmp => Xcode-iOS/Demos/data/bitmapfont/kromasky_16x16.bmp rename : Xcode-iPhoneOS/Demos/data/bitmapfont/license.txt => Xcode-iOS/Demos/data/bitmapfont/license.txt rename : Xcode-iPhoneOS/Demos/data/drums/ds_brush_snare.wav => Xcode-iOS/Demos/data/drums/ds_brush_snare.wav rename : Xcode-iPhoneOS/Demos/data/drums/ds_china.wav => Xcode-iOS/Demos/data/drums/ds_china.wav rename : Xcode-iPhoneOS/Demos/data/drums/ds_kick_big_amb.wav => Xcode-iOS/Demos/data/drums/ds_kick_big_amb.wav rename : Xcode-iPhoneOS/Demos/data/drums/ds_loose_skin_mute.wav => Xcode-iOS/Demos/data/drums/ds_loose_skin_mute.wav rename : Xcode-iPhoneOS/Demos/data/icon.bmp => Xcode-iOS/Demos/data/icon.bmp rename : Xcode-iPhoneOS/Demos/data/ship.bmp => Xcode-iOS/Demos/data/ship.bmp rename : Xcode-iPhoneOS/Demos/data/space.bmp => Xcode-iOS/Demos/data/space.bmp rename : Xcode-iPhoneOS/Demos/data/stroke.bmp => Xcode-iOS/Demos/data/stroke.bmp rename : Xcode-iPhoneOS/Demos/src/accelerometer.c => Xcode-iOS/Demos/src/accelerometer.c rename : Xcode-iPhoneOS/Demos/src/common.c => Xcode-iOS/Demos/src/common.c rename : Xcode-iPhoneOS/Demos/src/common.h => Xcode-iOS/Demos/src/common.h rename : Xcode-iPhoneOS/Demos/src/fireworks.c => Xcode-iOS/Demos/src/fireworks.c rename : Xcode-iPhoneOS/Demos/src/happy.c => Xcode-iOS/Demos/src/happy.c rename : Xcode-iPhoneOS/Demos/src/keyboard.c => Xcode-iOS/Demos/src/keyboard.c rename : Xcode-iPhoneOS/Demos/src/mixer.c => Xcode-iOS/Demos/src/mixer.c rename : Xcode-iPhoneOS/Demos/src/rectangles.c => Xcode-iOS/Demos/src/rectangles.c rename : Xcode-iPhoneOS/Demos/src/touch.c => Xcode-iOS/Demos/src/touch.c rename : Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj => Xcode-iOS/SDL/SDL.xcodeproj/project.pbxproj rename : Xcode-iPhoneOS/SDL/testsdl-Info.plist => Xcode-iOS/SDL/testsdl-Info.plist rename : Xcode-iPhoneOS/Template/SDL iOS Application/Default.png => Xcode-iOS/Template/SDL iOS Application/Default.png rename : Xcode-iPhoneOS/Template/SDL iOS Application/Icon.png => Xcode-iOS/Template/SDL iOS Application/Icon.png rename : Xcode-iPhoneOS/Template/SDL iOS Application/Info.plist => Xcode-iOS/Template/SDL iOS Application/Info.plist rename : Xcode-iPhoneOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/TemplateIcon.icns => Xcode-iOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/TemplateIcon.icns rename : Xcode-iPhoneOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/TemplateInfo.plist => Xcode-iOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/TemplateInfo.plist rename : Xcode-iPhoneOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/project.pbxproj => Xcode-iOS/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/project.pbxproj rename : Xcode-iPhoneOS/Template/SDL iOS Application/main.c => Xcode-iOS/Template/SDL iOS Application/main.c rename : Xcode-iPhoneOS/Test/Info.plist => Xcode-iOS/Test/Info.plist rename : Xcode-iPhoneOS/Test/README => Xcode-iOS/Test/README rename : Xcode-iPhoneOS/Test/TestiPhoneOS.xcodeproj/project.pbxproj => Xcode-iOS/Test/TestiPhoneOS.xcodeproj/project.pbxproj
2012-01-03This file keeps getting clobbered... *sigh*Sam Lantinga1-269/+18
2011-12-31Happy New Year!Sam Lantinga56-56/+56
2011-12-29Fixed documentation typoSam Lantinga1-1/+1
2011-12-29Fixed so the header is consistent with the sourceSam Lantinga1-1/+1
2011-12-29Fixes bug 1296 - SDL_SetVideoMode crashes because of unaligned MOVAPS ↵Sam Lantinga1-18/+269
instruction t.grundner@goto3d.de 2011-09-01 03:59:17 PDT I figured out what is going on. GCC 4.5.2 assumes the stack is 16 byte aligned by default. Therefore there are no AND alignment corrections necessary if we wish to align a stack variable to a 16 byte boundary. That is bad if your OS ABI is not 16 byte aligned. Windows 32 bit stacks are 4 byte aligned. This results in the above mentioned SIGSEGV. This is also no problem if I compile both SDL.dll and my app with MingW because MinGW/GCC inserts a andl $-16, %esp instruction right in the beginning of the main function. So at least the stack of the thread calling the main function is 16 byte aligned. But as soon as I start to use the SDL.dll from an application not compiled by MinGW there is no ANDL safing my app. However there is a GCC option that can change the default stack alignment: -mpreferred-stack-boundary=num Setting num=2 assumes a the stack is aligned to a 4 byte boundary. This results in GCC inserting the necessary andl $-16, %esp into SDL_FillRect. Rebuilding SDL with ./configure "CFLAGS=-mpreferred-stack-boundary=2 -g -O3" solved the problem. IMHO this should also be a problem on Solaris. The following links contain further information: http://gcc.gnu.org/onlinedocs/gcc-4.5.2/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options http://www.agner.org/optimize/calling_conventions.pdf
2011-12-29Fixed bug 1336 - Added a timestamp on all SDL eventsSam Lantinga1-0/+21
Gueniffey 2011-11-23 04:11:31 PST The attached simple patch adds a timestamp to all SDL events. It is useful to dismiss old events and add UI responsiveness (my application does some extensive tasks that creates a delay in the event queue handling. With this patch, I can deal only with the most recent events.
2011-12-05Backed out most of changeset 4b88086910d3, at Andreas's request.Ryan C. Gordon2-271/+20
2011-12-05Fix buildbot sdl-macosx-unix-x86 and sdl-macosx-amd64 compiler warningsAndreas Schiffler2-20/+271
2011-11-20First pass at a simple drag and drop API, allowing you to accept files ↵Sam Lantinga1-2/+18
dropped into your application.
2011-11-09GIMP wrote bmp files in RGBX format. Huh.Sam Lantinga1-0/+6
2011-11-07Fixed a typo in the header.Sam Lantinga1-2/+2
2011-10-31Lots of fixes importing SDL source wholesale into a new iOS projectSam Lantinga2-1/+4
--HG-- rename : src/libm/math.h => src/libm/math_libm.h
2011-10-31SDL_ConvertPixels() returns 0 on successSam Lantinga1-0/+2
2011-10-30The draw color affects RenderClear() as well. (thanks to the feedback form ↵Sam Lantinga1-2/+2
to whoever pointed this out)
2011-10-30Fixed typo - thanks Sheena!Sam Lantinga1-1/+1
2011-10-29Update SDL_HasClipboardText functions to return value based on clipboard ↵Andreas Schiffler1-1/+1
content; Fix memory leak in fallback SetClipboard implementation
2011-10-24Added SDL_GetScancodeFromName() and SDL_GetKeyFromName()Sam Lantinga1-5/+21
2011-10-14* Android's InputStream::skip is apparently buggy, so instead read into a ↵Tim Angus1-1/+0
dummy buffer
2011-10-14Specify joystick (accelerometer) support for iOS in the config header.Ryan C. Gordon1-0/+3
Fixes Bugzilla #1292. Thanks to Vittorio Giovara for the patch!
2011-10-021.3 API CHANGE: Add support for naming threads.Ryan C. Gordon2-4/+31
--HG-- extra : rebase_source : ae532d4b4d68ef86de0fc2cb6794a622e0841bce
2011-09-18Fixed compiler warnings on Haiku.Ryan C. Gordon1-0/+5
2011-09-17Fix SDL_RectEquals defineAndreas Schiffler1-1/+1
2011-09-16Add NULL handling in SDL_RectEmpty and SDL_RectEqualsAndreas Schiffler1-2/+3
2011-09-12Clean up the win32 compiler warnings for SDL threads, in the 1.3 branch.Ryan C. Gordon1-12/+0
--HG-- extra : rebase_source : 420916ed06d79e2d3c1d50e5fb40314ac7d94d85
2011-09-09Removed legacy Mac OS X dlcompat code.Ryan C. Gordon1-1/+0
It was only needed for Mac OS X 10.0 through 10.2, so it seems silly to keep it around for SDL 1.3. I'll leave it in the 1.2 branch for now, though.
2011-09-04Update SDL_REVISIONAndreas Schiffler1-2/+2
2011-09-02Fixed another Apple typedef in SDL_opengl.hRyan C. Gordon1-0/+5
2011-08-30Backed out SDL_config.h overwrite that got committed by accident.Ryan C. Gordon1-265/+18
2011-08-29Automated merge with https://bitbucket.org/Markusk/sdl-gsocRyan C. Gordon10-18/+62