Commit Graph

5003 Commits

Author SHA1 Message Date
dewyatt
042d8c63b7 Added condition check macros to make the code clear and easier to debug.
Updated code to use macros.
2010-06-27 22:03:08 -04:00
Sunny Sachanandani
12efdd0c9a Preliminary support for blending modes on drawing operations. 2010-06-27 09:51:51 +05:30
Sam Lantinga
fe6051e551 Removed one more use of () 2010-06-26 08:58:06 -07:00
Sam Lantinga
b90f3fea9c Mostly cleaned up warnings with -Wmissing-prototypes 2010-06-26 08:56:48 -07:00
Sunny Sachanandani
e076e2d536 Texture rendering mostly works now. Even SDL_TEXTUREACCESS_STREAMING is supported now with a little overhead. Scaling of textures happens using XRender. :D 2010-06-22 20:01:38 +05:30
Eli Gottlieb
756b99c69f Added Andreas's fixes to the header and stub file for SDL_shape. 2010-06-21 23:08:10 -04:00
dewyatt
c317119131 Starting to implement ITextStoreACP.
It's very incomplete and will probably change quite a bit but it's a start.
ITextStoreACP is the minimum interface to be considered TSF-aware.
2010-06-21 17:16:37 -04:00
Eli Gottlieb
c20899a378 Replaced the model of treating a window's shape as a render target with treating a window's shape as a surface passed into an SDL_SetWindowShape() function. I'll send this off to Andreas and Sam and start coding. 2010-06-19 23:10:57 -04:00
Jim Grandpre
4e7b6a96a5 Fixed bugs in input, cleaned up $1 2010-06-18 01:43:02 -04:00
Sam Lantinga
d89ec9302c Hello Sam.
I did fix/update the SDL 1.3 pandora port today ( 11 june 2010 ) and you can find the "hg diff" attached :)

David Carré ( Cpasjuste )
2010-06-17 22:23:20 -07:00
Sam Lantinga
3b8277d35f Fixed mouse focus window reporting
FIXME: Should the window be a parameter to the mouse events again?
2010-06-17 12:33:05 -07:00
Paul Hunkin
5ea5611051 Tweaks to the libsdl side 2010-06-18 01:29:14 +12:00
Paul Hunkin
751564d7e8 Added egl headers so we can use eglMakeCurrent() 2010-06-18 01:28:39 +12:00
Paul Hunkin
3ea075ff59 Removed old video subsystem, along with (now-unncessary) egl files. 2010-06-18 00:03:09 +12:00
Paul Hunkin
2e9955cc5e Testing out pthread support in android. Appears to work. 2010-06-18 00:02:13 +12:00
Paul Hunkin
fd07eb5990 Rotating pyramid! 2010-06-17 23:04:16 +12:00
Paul Hunkin
5def4b1273 Added minimal test project 2010-06-17 22:19:27 +12:00
Jim Grandpre
37a59b7433 Added $1 gesture recognition.
Functional.
2010-06-17 03:41:27 -04:00
Sunny Sachanandani
ed2719210f SDL_Textures should work with XRender now provided that the texture format and screen format match. This is only a temporary limitation. 2010-06-16 10:50:01 +05:30
Sunny Sachanandani
7da64e5b57 X11_RenderDrawLines and X11_RenderDrawPoints use XRender now. 2010-06-15 19:10:06 +05:30
Jim Grandpre
2b82c20da7 Started adding vectorization of touch data. 2010-06-15 02:12:16 -04:00
Sunny Sachanandani
5725c79231 X11_RenderFillRects and X11_RenderDrawRects use a server side mask pixmap of 1 bit depth now. All drawing on these pixmaps is done by server side functions such as XDrawRectangles and XFillRectangles. 2010-06-14 18:22:48 +05:30
Jim Grandpre
680e9a966a Just updated 2010-06-14 01:46:08 -04:00
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