Commit Graph

1601 Commits

Author SHA1 Message Date
Holmes Futrell
916349a04f Added support for OpenGL ES renderer 2008-09-02 20:19:45 +00:00
Holmes Futrell
0de9882579 Ran GNU indent on file 2008-09-02 20:11:06 +00:00
Holmes Futrell
32c4f213db Rolling back changes to revision 4071 ... made some mistakes, will try merging work again. 2008-09-02 20:05:33 +00:00
Holmes Futrell
f69769dfa3 Added retained backing attribute, reference to UIKit renderer 2008-09-02 19:53:56 +00:00
Holmes Futrell
449f371859 This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer. 2008-09-02 02:44:45 +00:00
Holmes Futrell
850aff64b6 Added OpenGL ES support 2008-09-02 02:27:06 +00:00
Holmes Futrell
7aae720160 These files are similar in purpose and structure as SDL_renderer_gl.c and SDL_renderer_gl.h, except they use OpenGL ES 1.1 for rendering. 2008-09-02 00:37:04 +00:00
Sam Lantinga
72d3929fca Fixed a bunch of compile warnings on Mac OS X 2008-09-01 16:04:20 +00:00
Sam Lantinga
0ddab56d41 Date: Sun, 31 Aug 2008 17:53:59 +0200
From: Couriersud
Subject: Re: Updated DirectFB driver for SDL1.3

attached is a patch which brings the directfb driver in line with
current svn. In addition:

* driver now is in line with the structure of the X11 driver.
  This adds a couple of files.
* driver now supports relative mouse movements
2008-08-31 16:04:32 +00:00
Sam Lantinga
9c4b835e49 Final merge of Google Summer of Code 2008 work...
Port SDL 1.3 to the Nintendo DS
by Darren Alton, mentored by Sam Lantinga
2008-08-27 15:10:03 +00:00
Edgar Simo
2ba47a0dc2 Fix for mingw compilation by Alam. 2008-08-26 11:50:37 +00:00
Edgar Simo
37efd9020c Missing an include. 2008-08-26 11:17:16 +00:00
Sam Lantinga
a7f2971180 Fixed Visual Studio compilation problems 2008-08-26 07:34:49 +00:00
Sam Lantinga
9c7284cdda Fixed crash when tablet isn't detected properly 2008-08-26 07:34:23 +00:00
Sam Lantinga
3b22c14a63 Dynamically load wintab32.dll 2008-08-26 06:03:48 +00:00
Sam Lantinga
ea7abca18f indent 2008-08-26 05:57:41 +00:00
Sam Lantinga
19d99d4cfc Added Wacom API headers.
FIXME: Dynamically load the Wacom API functions from wintab32.dll
2008-08-26 05:26:28 +00:00
Sam Lantinga
bfe61733da Couriersud fixed bug #603
Using the following sequence

SDL_Init(..:)
SDL_CreateWindow(..., SDL_WINDOW_OPENGL)
SDL_DestroyWindow
SDL_CreateWindow(..., SDL_WINDOW_OPENGL)

SDL will crash in X11_GL_GetVisual. This is due to the fact that
during SDL_DestroyWindow X11_GL_Shutdown was called because the last window
has been closed.

On the next call to SDL_CreateWindow the library is still loaded and only the
memory is reinitialized. Function pointers such as gl_data->glXChooseVisual
will not be reinitialized.

Consequently, SDL will crash due to a NULL pointer access.

The attached patch corrects the behaviour.
2008-08-26 02:47:26 +00:00
Sam Lantinga
38b73b01d9 indent. *sigh* 2008-08-26 02:40:24 +00:00
Sam Lantinga
0cc551f0cd Date: Sun, 20 Jul 2008 22:34:37 +0200
From: Couriersud
Subject: Updated DirectFB driver for SDL1.3

please find attached a patch for an updated directfb driver for SDL1.3.
It does now
- properly supported the new input api.
- send unicode text events
- support directfb windows
- support multiple screens
- support hardware YUV scaling for the first YUV texture created.
- support hardware scaling for textures.
- properly interpret streaming access
- support software opengl if one manages to install the mesa directfb
driver (broken/not broken in mesa svn)

Within bugzilla (http://bugzilla.libsdl.org/show_bug.cgi?id=603) there
is another patch which fixes a crash due to GL context creation.

Kind regards,

couriersud
2008-08-26 02:32:45 +00:00
Edgar Simo
f8a242d31e Merged force_feedback_branch r4042: unbuildability of dummy haptic driver with some configurations. 2008-08-25 20:51:03 +00:00
Szymon Wilczek
92d9759a5f Removed unneccesary code lines. Fixed mousename bug. Added lacking code in mousebutton 2008-08-25 18:02:14 +00:00
Edgar Simo
14e01ef127 Merge of force feedback branch r4039. 2008-08-25 17:34:58 +00:00
Sam Lantinga
a13381a54a Final merge of Google Summer of Code 2008 work...
Audio Ideas - Resampling and Pitch Shifting
by Aaron Wishnick, mentored by Ryan C. Gordon
2008-08-25 15:08:59 +00:00
Edgar Simo
4220687185 Merging another last minute fix from force feedback branch (r4036) 2008-08-25 10:14:21 +00:00
Sam Lantinga
b5ce7cc37d Merged last minute fixes from force feedback branch (r4031, r4033, r4034) 2008-08-25 10:04:06 +00:00
Sam Lantinga
a6fa308712 Final merge of Google Summer of Code 2008 work...
Force Feedback for SDL
by Edgar Simo, mentored by Ryan C. Gordon
2008-08-25 09:55:03 +00:00
Sam Lantinga
f24330df2a Fixed compile errors introduced during the merge refactoring 2008-08-25 08:50:37 +00:00
Sam Lantinga
6d8889d8e9 Added missing X1/X2 button support 2008-08-25 06:58:34 +00:00
Sam Lantinga
474cfaad1e Final merge of Google Summer of Code 2008 work...
Many-mouse and tablet support
by Szymon Wilczek, mentored by Ryan C. Gordon

Everything concerning the project is noted on the wiki:
http://wilku.ravenlord.ws/doku.php?id=start
2008-08-25 06:33:00 +00:00
Sam Lantinga
9816457898 Fixed compiler warning 2008-05-26 12:56:10 +00:00
Sam Lantinga
1a2cd9be5c Reverted revision 3416, fixing bug #589
http://bugzilla.libsdl.org/show_bug.cgi?id=589

I was going to add the current window to the OpenGL context info, but that
doesn't fix the case where you set the current context to NULL and then set
the current context to the same window it had before.

This also doesn't take into account changes to the window that might affect
the context, such as viewport changing or fullscreen/windowed mode changing.

Any ideas?
2008-05-26 12:43:37 +00:00
Bob Pendleton
97f034bc79 ran make indent 2008-03-14 20:43:44 +00:00
Bob Pendleton
b6e476a69b re: bug#563. checking in some commented out trace code and a fix so that the in testalpha.c the background only flashes when alpha == 255. The problem that is being
fixed is caused by clearing SDL_COPY_RLE_COLORKEY without setting SDL_COPY_RLE_DESIRED in SDL_UnRELSurface.
2008-03-14 18:17:49 +00:00
Bob Pendleton
98acd1149c In testdyngl.c the event type was being anded (&) with SDL_KEYDOWN and if the result was none zero the program was quiting. This is very weird because it was
working earlier this week.

I added some more trace code to SDL_x11events.c

In SDL_X11opengl.c I modified SDL_GL_GetSwapInterval() so that it returns a pretty good value even if you have the SGI swap extension instead of the MESA swap
extension. I just saved the value you set and return it too you.
2008-03-07 23:57:15 +00:00
Bob Pendleton
1f0470ba8c oops, need to comment out some debug code. 2008-03-07 21:01:54 +00:00
Bob Pendleton
4534dabb7e Next version of internationalized input for X11. On my machine (famous last words :-) with a US English keyboard and locale I can compose ` and e and get a text
input event with the character è. You still get the keypress keyrelease events for the individual keys that go into composing the character.
2008-03-07 20:54:11 +00:00
Bob Pendleton
617e50c933 more valgrind errors fixed. Plus I ran make indent which changed a few files. 2008-03-07 17:20:37 +00:00
Bob Pendleton
2a40813ab2 Fixed many valgrind errors. But, I broke testdyngl. 2008-03-06 23:07:02 +00:00
Bob Pendleton
692da065af Fixing valgrind errors.
One of the error was the result of an unitended recursive call to X11_GL_LoadLibrary which was also fixed.
2008-03-06 17:08:10 +00:00
Bob Pendleton
95efd075f2 SetupWindowData in SDL_X11window.c was realloc()ing the display window list and incrementing numwindows even though those are being updated in functions that call
this function. The result is that it is possible to get the same window added to the list twice.
2008-03-04 23:09:28 +00:00
Bob Pendleton
1db7dfa3d2 Deleted a call to X__PumpEvents at the end of X11_GL_InitExtensions(). This function is being called from SDL_RecreateWindow at a point when the numwindows value in
is incorrect. The result is that an illegal access is being made in X_PumpEvents when it tries to look up the windows ID of the source of an event. Taking out that
call does not seem to have any effect on the testgl. But, I would be happy if someone else took a look at this problem and found a fix higher up the stack.
2008-03-01 20:34:36 +00:00
Sam Lantinga
990676f5c4 Windows also remaps the numeric keypad... grrr 2008-02-11 21:06:32 +00:00
Sam Lantinga
03eda66f37 Added support for keypad enter 2008-02-10 05:34:33 +00:00
Sam Lantinga
d4c23af239 Updated Visual C++ project 2008-02-10 05:14:28 +00:00
Sam Lantinga
8df4fc4ae5 Friggin' Windows remaps alphabetic keys based on keyboard layout.
We try to figure out what the actual layout independent values are.
2008-02-09 22:28:27 +00:00
Sam Lantinga
dc6eb861a5 Undo keyboard layout based alphabetic key mapping. Grr.... HACK HACK HACK... 2008-02-09 07:18:38 +00:00
Sam Lantinga
7c23e86a0d Implemented text input event for Win32 2008-02-09 06:47:46 +00:00
Sam Lantinga
d92958c0e5 Untested Win32 keyboard scancode code. 2008-02-08 08:35:49 +00:00
Sam Lantinga
27fce8ebae Fixed array overrun 2008-02-07 16:14:43 +00:00