Sunny Sachanandani
69847c86ef
Implement support for setting texture scale mode.
2010-07-20 11:43:13 +05:30
Sunny Sachanandani
a2983659fb
Respect environment variables.
2010-07-19 21:02:49 +05:30
Sunny Sachanandani
4ded0f623c
Integrate XFixes and XDamage into the build system.
2010-07-19 20:05:53 +05:30
Sunny Sachanandani
7739189255
Massive speed-up. Fixed the format that is set for the renderer. Included runtime checks for XDamage.
2010-07-19 18:57:02 +05:30
Sunny Sachanandani
84a58d8f7c
Use XDamage to optimise drawing operations.
2010-07-19 17:46:37 +05:30
Sunny Sachanandani
e3cf0eb042
Resync tip to default. Using named branches is a bad idea.
2010-07-18 19:03:39 +05:30
Sunny Sachanandani
cddeec5ffa
Remove experimental cruft.
2010-07-18 18:45:30 +05:30
Sunny Sachanandani
c054518301
Major changes to drawing. Reverted back to core X11 functions due to regressions.
2010-07-18 18:27:38 +05:30
Sunny Sachanandani
6a534a4046
Start experimental branch for client-side rasterization.
...
--HG--
branch : experimental
2010-07-18 12:43:04 +05:30
Sunny Sachanandani
7c46b950ed
Got testsprite2 to work reasonably.
2010-07-18 08:28:35 +05:30
Sunny Sachanandani
f927fc59ba
Fixed a minor bug with texture blending.
2010-07-17 15:53:29 +05:30
Sunny Sachanandani
b8bbc91dbb
Remove some redundant code.
2010-07-17 15:41:34 +05:30
Sunny Sachanandani
3201f8427c
Fixed so many things. See the changelog listed below.
...
1. Use SDL_X11_HAVE_XRENDER to check for RENDER at runtime.
2. Added lots of comments.
3. Added checks and lots of calls to SDL_SetError().
4. Fixed X11_CreateTexture() so that the pixmap and image created
are for the format specified by the user and not the window
format. This is only for the RENDER case.
5. The above change required that functions to convert SDL
pixel format enums to Visuals and XRenderPictFormats be added.
6. Fixed lots of 'style' issues.
2010-07-17 15:38:24 +05:30
Sunny Sachanandani
6bfcf3301a
Add necessary symbols to SDL_x11sym.h
2010-07-17 11:41:43 +05:30
Sunny Sachanandani
bce186d572
Implement blending modes for textures. Fix off-screen pixmaps to be ARGB rather than RGB to enable blending across frames. Clear the screen and off-screen pixmaps when the renderer is created.
2010-07-14 19:17:11 +05:30
Sunny Sachanandani
40daa46a40
Fix so many things that there is little place in this column to list them all but the result is that blending modes just work now for drawing primitives.
...
Fixes involved:
1. Fix handling of alpha channel when SDL_BLENDMODE_NONE is set.
2. Make xrendercolor use floating-point values for color channels and then convert to 16 bit ints.
3. Fix handling of visuals in SDL_x11modes.c so that a 32 bit ARGB visual is used.
4. Fix the background pixel value in SDL_x11window.c so that the window background has an alpha value of 0xFF and not 0.
2010-07-09 21:36:41 +05:30
Sunny Sachanandani
f0e9e6ac76
Fix blending modes for primitives.
2010-07-01 07:35:15 +05:30
Sunny Sachanandani
b8d6bdfa5a
Preliminary support for blending modes on drawing operations.
2010-06-27 09:51:51 +05:30
Sunny Sachanandani
d0033d15a1
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
Sunny Sachanandani
3782e9a0c5
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
f499e5e7e5
X11_RenderDrawLines and X11_RenderDrawPoints use XRender now.
2010-06-15 19:10:06 +05:30
Sunny Sachanandani
bc858ad7cd
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
Sunny Sachanandani
843724af72
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
Sunny Sachanandani
440a6894f5
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
75d7bf45f9
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
c323705090
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
Sunny Sachanandani
99aee647e0
X11_RenderPresent now uses XRender to blit back-buffers to the screen.
2010-05-31 17:04:20 +05:30
Sunny Sachanandani
6f98c350da
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
b4651b2a51
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
Sunny Sachanandani
9de49fce8f
Add Xrender support to X11_FillRectangles.
2010-05-30 20:06:30 +05:30
Sunny Sachanandani
722be21623
Fix typo.
2010-05-28 20:48:58 +05:30
Sunny Sachanandani
66ba8d9f53
Fix initial value of the xrender_available boolean in X11_CreateTexture.
2010-05-28 20:47:24 +05:30
Sunny Sachanandani
7373f666db
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
Sunny Sachanandani
aef216819f
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
Sunny Sachanandani
dabea2387f
Added a #define option for compile time Xrender support.
...
Added some more attributes (specific to Xrender) to the X11 structs.
Added some code for querying the Xrender extension.
2010-05-24 21:02:58 +05:30
Sunny Sachanandani
4ee62ed9e7
Adding a few #defines for Xrender support.
2010-05-19 18:58:28 +05:30
Sam Lantinga
d12afdaedb
Add a default revision string if we can't find hg
2010-05-09 19:55:28 -07:00
Sam Lantinga
36bb08a19e
Don't assume .bashrc exists. :)
2010-05-09 19:51:21 -07:00
Sam Lantinga
cc3f18a315
Tagging version before everything gets ripped out.
2010-05-09 17:00:56 -07:00
Sam Lantinga
76cf0cd0c0
Make the compiler even happier
2010-05-09 16:16:11 -07:00
Sam Lantinga
2a8171b8b7
Make sure events are current before flushing them.
2010-05-09 16:15:14 -07:00
Sam Lantinga
906341c826
Added missing header
2010-05-09 15:47:21 -07:00
Sam Lantinga
3bc34ef448
Removed unused variables
2010-05-09 15:46:19 -07:00
Sam Lantinga
06d5867775
Fixed compiler warnings
2010-05-09 15:33:10 -07:00
Sam Lantinga
74e352d011
Fixed variable use before initialize warnings
2010-05-09 15:24:31 -07:00
Sam Lantinga
0c3e29cd9c
Removed unused variables
2010-05-09 15:24:05 -07:00
Sam Lantinga
dc6629fa52
Fixed Eric's changes to allow building from the command line.
2010-05-09 10:00:33 -07:00
Sam Lantinga
4a2cf3b976
Updated with the SDL 1.3 list of supported operating systems
2010-05-09 09:53:57 -07:00
Eric Wing
f7c1900153
Updated Mac Xcode project for refactored rwops automated test changes.
2010-05-09 07:00:28 -07:00
Eric Wing
6c9da257a1
Refactored automated rwops tests so read and write directories can be more easily customized.
...
The refactored tests were written in recognition that Mac and iPhone current working directories are usually not going to work. Resource directories are in bundles and write directories are restricted to certain areas. In theory, other platforms may have this problem too, hence the refactoring.
Also updated the Xcode iPhone project to use 3.2 as the Base SDK, but 3.1 as the Deployment SDK (for iPhone/iPad compatibility.)
--HG--
rename : test/automated/rwops/Test_rwopsbundlesupport.h => test/automated/rwops/TestSupportRWops.h
rename : test/automated/rwops/Test_rwopsbundlesupport.m => test/automated/rwops/TestSupportRWops_Cocoa.m
2010-05-09 06:58:30 -07:00