Commit Graph

27 Commits

Author SHA1 Message Date
Sam Lantinga
295ea455df Fixed compiling the automated test 2011-02-05 13:06:50 -08:00
Sam Lantinga
4f6e1878af Restored SDL_BLENDMODE_MOD for MAME 2011-02-04 19:50:56 -08:00
Sam Lantinga
ff6324fb43 Updated for API changes 2011-02-03 02:42:50 -08:00
Sam Lantinga
3f10d86ed9 Fixed compiling with the latest API changes 2011-02-02 14:34:24 -08:00
Sam Lantinga
0efb1ea0b2 Making the API simpler, the blend modes are "none, blend, add" and are supported by all renderers. 2011-01-31 23:23:57 -08:00
Sam Lantinga
ae5606df0b Fixed compiler warning 2011-01-16 17:48:04 -08:00
Sam Lantinga
e0a31b4dbb Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance. 2010-01-21 06:21:52 +00:00
Sam Lantinga
c3629ff44a Added SDL_RenderClear() as a fast method of clearing the screen to the drawing color.
Renamed SDL_RenderPoint() and SDL_RenderLine() to SDL_RenderDrawPoint() and SDL_RenderDrawLine().
Added API for rectangle drawing (as opposed to filling)
Added placeholder API functions for circles and ellipses ... I'm not sure whether these will stay.
Optimized software line drawing quite a bit.
Added support for Wu's anti-aliased line drawing, currently disabled by default.
2009-12-23 01:55:00 +00:00
Sam Lantinga
c49568972f Added a test to check the read/write pixels API 2009-12-14 06:35:59 +00:00
Sam Lantinga
70a40d51b2 Added interfaces for batch drawing of points, lines and rects:
SDL_DrawPoints()
    SDL_BlendPoints()
    SDL_BlendLines()
    SDL_DrawLines()
    SDL_FillRects()
    SDL_BlendRects()
    SDL_RenderPoints()
    SDL_RenderLines()
    SDL_RenderRects()
Renamed SDL_RenderFill() to SDL_RenderRect()
2009-12-09 15:56:56 +00:00
Sam Lantinga
4969fa9624 On Windows the minimum window size may be larger than 80, so explicitly request the expected rectangle. 2009-12-07 08:01:20 +00:00
Sam Lantinga
c0f5e8a979 More fixes to compile under Visual C++ 2009-11-22 07:00:26 +00:00
Sam Lantinga
411ee2e374 Fixed include paths for Visual C++ 2009-11-22 06:42:58 +00:00
Sam Lantinga
7125fdbe63 We want to be strict on software renderer tests and opaque tests, but give a decent margin for blending inaccuracy for the blended tests. 2009-11-21 07:59:19 +00:00
Sam Lantinga
7863b8a31b Use 45 degree lines for the diagonal test to avoid aliasing errors in line drawing. 2009-11-21 06:28:25 +00:00
Sam Lantinga
3808553966 pixels don't need to be dynamically allocated
Added a dump_screen() function to assist with test failure diagnosis
2009-11-21 05:25:08 +00:00
Sam Lantinga
32188b63d3 SDL_RenderReadPixels() needs to flush asynchronous operations before it reads.
The semantics are that it reads the back buffer, and those pixels may not be available once SDL_RenderPresent() has happened.
2009-11-21 05:05:19 +00:00
Mike Gorchak
b6c6b41bb5 1. SDL_RenderPresent() call has been added after each test to be sure, that all graphics output is flushed in case if it was asynchronous.
2. After each renderer test window recreation has been added.
2009-11-20 07:11:29 +00:00
Sam Lantinga
dce6c3f274 Fixed a bunch of bugs in the blit blend mode tests 2009-11-18 09:39:32 +00:00
Sam Lantinga
8259a10e12 Fixes for the automated rendering test 2009-11-18 09:07:13 +00:00
Sam Lantinga
f07fad9ec7 Refactored to use render_loadTestFace() 2009-11-18 07:34:05 +00:00
Sam Lantinga
cacae661e6 Fixed endianness of the face image surface 2009-11-18 07:22:22 +00:00
Sam Lantinga
754e60b870 Compare against the correct image 2009-11-18 06:15:21 +00:00
Sam Lantinga
c14ffddbcc Debug info to help track down render test failures 2009-11-17 06:51:14 +00:00
Sam Lantinga
7a40c23469 You can specify the format for pixel data in SDL_RenderReadPixels() and SDL_RenderWritePixels()
This code still doesn't quite work yet. :)
2009-11-16 07:13:07 +00:00
Sam Lantinga
1e8b087237 Work in progress: SDL_RenderReadPixels() should be implemented soon. 2009-11-15 08:01:07 +00:00
Sam Lantinga
30ebf925f0 Merged Edgar's code changes from Google Summer of Code 2009 2009-09-07 05:06:34 +00:00