Sam Lantinga
a9072159b2
Updated copyright for 2018
2018-01-03 10:03:25 -08:00
Sam Lantinga
2847b1d85b
Added support for Android video textures
2017-12-12 12:52:17 -08:00
Sam Lantinga
d77ab77a7a
Updated copyright for 2017
2017-01-01 18:33:28 -08:00
Sam Lantinga
9cc7ce9008
Renaming of guard header names to quiet -Wreserved-id-macro
...
Patch contributed by Sylvain
2016-11-20 21:34:54 -08:00
Sam Lantinga
b84d16651a
Fixed comment for new pixel formats
2016-10-11 23:21:41 -07:00
Sam Lantinga
cac17821d9
Fixed bug 2923 - Add SDL_PIXELFORMAT_RGBA32 for byte-wise 32bit RGBA data
...
Daniel Gibson
Ok, I followed the simple approach of just making SDL_PIXELFORMAT_RGBA32 an alias of SDL_PIXELFORMAT_RGBA8888/SDL_PIXELFORMAT_ABGR8888, depending on endianess. And I did the same for SDL_PIXELFORMAT_ARGB32, .._BGRA, .._ABGR.
SDL_GetPixelFormatName() will of course return SDL_PIXELFORMAT_RGBA8888 (or SDL_PIXELFORMAT_ABGR8888) instead of SDL_PIXELFORMAT_RGBA32, but as long as that's mentioned in the docs it shouldn't be a problem.
2016-10-11 23:19:05 -07:00
Sam Lantinga
255c182471
Updated copyright to 2016
2016-01-02 10:10:34 -08:00
Ryan C. Gordon
be33d2e4fc
Fixed SDL_ISPIXELFORMAT_ALPHA to check pixel orders that match pixel type.
...
Otherwise, SDL_PIXELFORMAT_BGR24 is reported as having alpha, because
its SDL_ARRAYORDER_BGR pixel order uses the same integer value as
SDL_PACKEDORDER_RGBA, since we weren't checking the pixel type to
differentiate.
Fixes Bugzilla #2977 .
2015-05-31 01:45:20 -04:00
Sam Lantinga
78f2198e6c
Updated the copyright year to 2015
2015-05-26 06:27:46 -07:00
Sam Lantinga
06d9ee1f36
Added NV12 and NV21 texture support for OpenGL and OpenGL ES 2.0 renderers
2014-08-06 11:34:54 -07:00
Ryan C. Gordon
3985954d03
SDL_pixels.h needs SDL_stdinc.h for SDL_FOURCC #define (thanks, Dmitry!).
...
Fixes Bugzilla #2384 .
2014-02-05 00:34:26 -05:00
Sam Lantinga
dba255c1e5
Fixed bug 2374 - Update copyright for 2014...
...
Is it that time already??
2014-02-02 00:53:27 -08:00
Gabriel Jacobo
8515791f86
OCD fixes: Adds a space after /* (glory to regular expressions!)
2013-08-21 09:47:10 -03:00
Gabriel Jacobo
871473e032
OCD fixes: Adds a space before */
2013-08-21 09:43:09 -03:00
Sam Lantinga
0d9b661db8
File style cleanup for the SDL 2.0 release
2013-05-18 14:17:52 -07:00
Sam Lantinga
4d92e1780f
We're using the alpha component of the palette entries, let's name it appropriately.
2013-03-24 09:56:45 -07:00
Sam Lantinga
019c60c1e8
Happy New Year!
2013-02-15 08:47:44 -08:00
Sam Lantinga
d4219579f2
Fixed clang -Weverything warnings
2012-11-22 11:55:11 -08:00
Sam Lantinga
e256711bb9
Happy New Year!
2011-12-31 09:28:07 -05:00
Sam Lantinga
5fedcb50d8
GIMP wrote bmp files in RGBX format. Huh.
2011-11-09 22:53:44 -05:00
Sam Lantinga
6196aa221e
SDL 1.3 is now under the zlib license.
2011-04-08 13:03:26 -07:00
Sam Lantinga
069fbf4861
Gamma support is back!
...
New API functions:
SDL_SetWindowBrightness()
SDL_GetWindowBrightness()
SDL_SetWindowGammaRamp()
SDL_GetWindowGammaRamp()
SDL_CalculateGammaRamp()
2011-03-11 08:49:20 -08:00
Sam Lantinga
821c92eab1
Fixed bitmap order interpretation; SDL defaults to MSB ordering so a bitstream corresponds to a pixel stream.
...
The bitmap ordering is defined such that the numbering refers to the pixel index from left to right, and the number position refers to the bit position in the byte.
SDL_BITMAPORDER_4321 is the fourth pixel at the high bit and the first pixel at the low bit (LSBFirst)
SDL_BITMAPORDER_1234 is the first pixel at the high bit and the fourth pixel at the low bit (MSBFirst)
2011-03-07 00:30:05 -08:00
Sam Lantinga
f78f25504b
Added padding for better aligned access to *shift/*loss members
2011-03-06 23:54:20 -08:00
Sam Lantinga
c7b5cc946d
A few fixes:
...
Fixed creating render texture framebuffer.
Removed the need for palette watch, added surface format caching.
Added an SDL_DONTFREE flag so you can't free the window and 1.2 shadow surfaces.
2011-02-13 13:46:10 -08:00
Sam Lantinga
5e1535525c
Initial pass at shader YV12 support - doesn't quite work yet.
2011-02-12 00:25:02 -08:00
Sam Lantinga
a2cdcf5486
Happy 2011! :)
2011-02-11 22:37:15 -08:00
Sam Lantinga
405d4ed7e4
Made it possible to create a texture of any format, even if not supported by the renderer.
...
This allows me to reduce the set of formats supported by the renderers to the most optimal set, for a nice speed boost.
2011-02-03 00:19:40 -08:00
Sam Lantinga
be09e4e9a0
Added some missing pixel formats and SDL_GetPixelFormatName()
2011-01-12 14:53:23 -08:00
Sam Lantinga
a517ddf4a5
Added SDL_FOURCC()
2010-07-07 21:36:09 -07:00
Sam Lantinga
7052036491
Fixed bug #926
...
Updated copyright to LGPL version 2.1 and year 2010
2010-01-24 21:10:53 +00:00
Sam Lantinga
9bf59c5687
The SDL_PaletteWatch structure is really internal-only.
2009-12-13 08:00:25 +00:00
Sam Lantinga
2634a34422
Made the comment actually mean something. :)
2009-11-22 20:00:00 +00:00
Sam Lantinga
27294b7a4e
Partial fix for bug #859
...
Header file update from Ken for improved doxygen output
2009-10-19 13:31:58 +00:00
Sam Lantinga
93690caff9
Fixed 4 bit-per-pixel definition. Thanks Mike!
2009-06-09 04:34:50 +00:00
Mike Gorchak
bd93cb0220
Support for BGR565 pixel format has been added, mainly for OpenGL ES renderer. OpenGL ES renderer now have new texture formats.
2009-06-03 10:40:44 +00:00
Sam Lantinga
c1d386b7fe
Fixed alpha blending textures with the GDI renderer
2009-02-07 17:56:08 +00:00
Sam Lantinga
befb0f7f42
Updated copyright date
2008-12-08 00:27: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
Sam Lantinga
4f2f07efff
Split out the SDL_rect and SDL_surface functions into their own headers.
...
Removed unused count from the dirty rect list.
2007-09-10 12:20:02 +00:00
Sam Lantinga
65b59716be
Moved the colorkey and per-surface alpha into the blit info,
...
in preparation for support for general color channel modulation.
Removed and consolidated some data in the blit info.
2007-08-17 00:54:53 +00:00
Sam Lantinga
5c79673fa0
Fixed bug #467
...
Remove trailing commas from enums
2007-07-22 13:22:47 +00:00
Sam Lantinga
5b0dc2c1d5
SDL constants are all uppercase.
2006-08-05 17:09:42 +00:00
Sam Lantinga
6bc598ea61
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
2006-07-10 21:04:37 +00:00