Commit Graph

4780 Commits

Author SHA1 Message Date
Jim Grandpre
7d8f7d2a1e Added gesture test c file. Beginning of gesture recognition. 2010-06-14 01:44:04 -04:00
dewyatt
1501ab5243 Added support for On_Resized event to App.
Added OpenGL code to draw a rotating triangle.
Rearranged main loop code.
2010-06-12 03:21:54 -04:00
dewyatt
cc57e7b57c Renamed Window::Update to Window::Handle_Events.
Removed Window::Clear.
Added Window::Show_Cursor/Hide_Cursor.
Added On_Resized event.
2010-06-12 03:19:43 -04:00
dewyatt
0ef74d648d Added vs2008 project files for GLTSF (2008 is much faster on my old computer) 2010-06-11 18:32:18 -04:00
Eli Gottlieb
390be0affb Doxygen commenting is all finished up. 2010-06-10 17:50:38 -04:00
Eli Gottlieb
847ce12a33 Stubbed out the new get/set parameter functions, added the start of the enum, union, and struct for those parameters themselves, and added doxygen comments throughout the SDL_shape.h header. 2010-06-10 17:37:19 -04:00
Paul Hunkin
82cf0563e5 Fixed #includes to fix naming conventions 2010-06-10 19:25:55 +12:00
Paul Hunkin
23ef6d2153 Renamed some files to fit naming conventions 2010-06-10 19:02:55 +12:00
Paul Hunkin
61ddab05c6 Added (partially implemented) android video backend and associated files needed to build 2010-06-10 18:54:23 +12:00
jimtla
02a308063c More fixes for windows. Disabled tablet code. 2010-06-10 00:15:17 -04:00
dewyatt
81c3f5c611 Added else to make things clear. 2010-06-09 21:36:32 -04:00
dewyatt
52d35dd5ee Added On_Char method to Window_Listener for WM_CHAR messages.
Removed a lot of TSF code because part of it was wrong and part was too complicated.
Added Clear method to clear the window.

IME input should work in both windowed mode and fullscreen mode with these changes.
I have tested on Windows XP SP3 and Windows 7 Ultimate in VirtualBox.
When you type a character (with an IME or not), the console will show the code point as U+XXXX.
You use Left Alt+Shift (or whatever you have it set to) to switch input languages as usual.
Hit ESC to exit (or close the window in windowed mode).
The program will pause before exiting so you can review the console output (press a key to exit).
2010-06-09 00:03:54 -04:00
Sunny Sachanandani
64241e7956 X11_DrawRects now uses a very hacky way of drawing rectangles with XRender. This will be improved in some time. 2010-06-08 19:26:32 +05:30
dewyatt
937bf58b98 Change SDL to not use DefWindowProc as the window class' window procedure.
For some reason, having lpfnWndProc=DefWindowProc during window class registration causes IME input to not work in windows.
With this small change, IME input should now work in SDL windows but not in fullscreen mode.
2010-06-08 05:22:49 -04:00
Sam Lantinga
3a228f30bf Fixed wording for consistency 2010-06-06 21:09:45 -07:00
Eli Gottlieb
5cbb32b33d Fixed names of driver-specific implementation files. 2010-06-05 15:12:27 -04:00
Eli Gottlieb
2ace9d0f8c Removed and added back SDL_shape.{c,h} wholesale. Will this get them tracked properly? 2010-06-05 15:07:14 -04:00
Eli Gottlieb
042c9e80f0 Took away a line break to make SDL_shape.c new. Why isn't hg tracking these two files properly? 2010-06-05 15:02:26 -04:00
Eli Gottlieb
9f0bc591c6 Updated SDL_shape.h by adding a line break... somehow it's not being tracked correctly.` 2010-06-05 15:01:40 -04:00
jimtla
ea0c984c8e Addition of VC project for touchTest.c 2010-06-05 01:58:56 -04:00
Eli Gottlieb
0566e957f7 Fixed up new functions and files so that they build as part of SDL. 2010-06-03 17:21:40 -04:00
Eli Gottlieb
b24db2415a Stubbed out the new drawing, filling, and geometry functions for ellipses and polygons. 2010-06-03 16:21:04 -04:00
Eli Gottlieb
46c89257a5 Added management and drawing functions for ellipses and polygons. 2010-06-03 14:43:38 -04:00
jimtla
98983f18f4 Fixed windo build errors. Should now be compilable. 2010-06-03 13:21:35 -04:00
jimtla
abf13d5afd Fixed some windows compilation bugs - Still does not compile. 2010-06-03 11:08:17 -04:00
Sunny Sachanandani
a067ba2b4f It seems that the off-screen buffers (or pixmaps) only need to be cleared while initializing. 2010-06-02 11:55:40 +05:30
Sunny Sachanandani
e51d41dac5 Fix X11_FillRects to work with double buffering as well as triple buffering. This requires that the buffer pixmap be cleared after every render. 2010-06-02 11:45:15 +05:30
Sunny Sachanandani
0ed5e53314 Fix the rendering color channels to be premultiplied with the alpha channel as thats what Xrender expects. Small fixes in X11_CreateTexture. Add some new functions in SDL_x11sym.h as well as support for Xrender. 2010-06-02 09:01:37 +05:30
Jim Grandpre
60450688f9 Added include/touch.h Now reading in resolution of touch pad. 2010-06-01 02:54:33 -04:00
Eli Gottlieb
fbdbdbcac3 Moved the SDL_Eyes test program for shaped windows into the Hg repository and got it building and linking as a test. 2010-05-31 21:23:06 -04:00
Sunny Sachanandani
6b6045f236 X11_RenderPresent now uses XRender to blit back-buffers to the screen. 2010-05-31 17:04:20 +05:30
Sunny Sachanandani
e07a3ef80c Xrender uses 16 bit color per channel. Fixed the color handling in X11_RenderFillRects to match this. Xrender just works now for filling rectangles :D . 2010-05-31 15:09:36 +05:30
Sunny Sachanandani
bc6683eed7 Modified configure.in to allow building with Xrender. Fixed all problems that prevented compilation.
Builds fine now :)
2010-05-31 13:27:27 +05:30
Jim Grandpre
b0ec80e373 Auto-detects Wacom touch devices. 2010-05-31 00:24:37 -04:00
dewyatt
b6b16ecd84 Implementing base parts of TSF 2010-05-30 15:48:16 -04:00
Sunny Sachanandani
503af03024 Add Xrender support to X11_FillRectangles. 2010-05-30 20:06:30 +05:30
Jim Grandpre
80ecbb9011 Added pressure support for touch events. 2010-05-29 02:09:16 -04:00
Jim Grandpre
cd768e2013 Bug fixes. Basic touch events (finger up, finger down, finger move) supported. 2010-05-29 01:47:19 -04:00
Sunny Sachanandani
ab9cb8143c Fix typo. 2010-05-28 20:48:58 +05:30
Sunny Sachanandani
e9e630c7e0 Fix initial value of the xrender_available boolean in X11_CreateTexture. 2010-05-28 20:47:24 +05:30
Sunny Sachanandani
e049cc403a Completed work on X11_CreateTexture. Added lots of safety features.
These include support for drawing a texture using the core protocol
while other textures are drawn using Xrender if Xrender does not support
the color format of the said texture or any other fault with Xrender.
2010-05-28 20:40:09 +05:30
Jim Grandpre
a1401afe42 Added reading of event* for touch events. 2010-05-28 01:26:52 -04:00
dewyatt
72b5168bca Adding some initial TSF code 2010-05-27 20:47:52 -04:00
Eli Gottlieb
fee0949a87 Added the standard headers and footers that make SDL_shape.h and SDL_shape.c integrate properly into the build. 2010-05-27 16:44:35 -04:00
Jim Grandpre
4a3ed7b859 Added touch event definitions. Heavily modified events/SDL_touch*. 2010-05-27 01:21:37 -04:00
Sunny Sachanandani
b88a72e774 Correctly handle the availability of Xrender in X11_CreateRenderer and X11_DisplayModeChanged.
Fixed the XRenderPictureAttributes value in X11_CreateRenderer with graphics_exposures = False.

Start work on Xrender specific additions to X11_TextureData and X11_CreateTexture.
2010-05-26 20:11:56 +05:30
Jim Grandpre
8deb256a6b Added SDL_touch.c/SDL_touch_c.h as slightly modifeind SDL_mouse*. Made reads in touchSimp non-blocking. 2010-05-25 23:23:23 -04:00
dewyatt
c4cce4c1eb Adding GLTSF (somewhat based on SFML, no actual TSF code yet) 2010-05-25 18:53:09 -04:00
Sam Lantinga
b8da79e726 SDL_KillThread() is no longer supported - it was always dangerous! :) 2010-05-24 22:56:36 -07:00
Eli Gottlieb
46a886a498 Changed API for shaped windows to make it much, much simpler. A shaped window's shape mask is now accessed as a render target, which means we can get at it with blit and draw functions, as well as (most likely) OpenGL. 2010-05-25 00:23:41 -04:00