Ryan C. Gordon
637cfa5d6b
Small stack allocations fall back to malloc if they're unexpectedly large.
...
--HG--
branch : SDL-ryan-batching-renderer
2018-10-22 20:50:32 -04:00
sezero
d9c8979193
revert the recent typecast assignment changes (see bug #4079 )
...
also change the void* typedefs for the two vulkan function
pointers added in vulkan_internal.h into generic function
pointer typedefs.
2018-02-12 17:00:00 +03:00
Sam Lantinga
e9a1c0c9d0
Fixed ISO C99 compatibility
...
SDL now builds with gcc 7.2 with the following command line options:
-Wall -pedantic-errors -Wno-deprecated-declarations -Wno-overlength-strings --std=c99
2018-01-30 18:08:34 -08:00
Sam Lantinga
346af016a5
Updated copyright for 2018
2018-01-03 10:03:25 -08:00
Sam Lantinga
145d2469ae
Updated SDL's YUV support, many thanks to Adrien Descamps
...
New functions get and set the YUV colorspace conversion mode:
SDL_SetYUVConversionMode()
SDL_GetYUVConversionMode()
SDL_GetYUVConversionModeForResolution()
SDL_ConvertPixels() converts between all supported RGB and YUV formats, with SSE acceleration for converting from planar YUV formats (YV12, NV12, etc) to common RGB/RGBA formats.
Added a new test program, testyuv, to verify correctness and speed of YUV conversion functionality.
2017-11-12 22:51:12 -08:00
Sam Lantinga
1b24bfad38
Updated copyright for 2017
2017-01-01 18:33:28 -08:00
Philipp Wiesemann
2a8a7f92b7
Fixed empty parameter list in signatures of internal functions.
2016-11-16 22:08:51 +01:00
Sam Lantinga
7ee8dda270
Updated copyright to 2016
2016-01-02 10:10:34 -08:00
Sam Lantinga
56b58afdbe
Updated the copyright year to 2015
2015-05-26 06:27:46 -07:00
Sam Lantinga
e12894a499
Fixed UV texture coordinate scale when using GL_ARB_texture_non_power_of_two
2014-08-18 11:28:16 -07:00
Sam Lantinga
bafc5ef326
Take advantage of GL_ARB_texture_non_power_of_two when it's available
2014-08-14 21:31:50 -07:00
Sam Lantinga
c7790bdb2b
Added NV12 and NV21 texture support for OpenGL and OpenGL ES 2.0 renderers
2014-08-06 11:34:54 -07:00
Alfred Reynolds
156e48e6bf
The YUV offset is 16 / 255, not 16 / 256
2014-07-03 10:22:12 -07:00
Sam Lantinga
d7940a513e
Fixed bug 2374 - Update copyright for 2014...
...
Is it that time already??
2014-02-02 00:53:27 -08:00
Ryan C. Gordon
82edee6971
Make internal SDL sources include SDL_internal.h instead of SDL_config.h
...
The new header will include SDL_config.h, but allows for other global stuff.
--HG--
extra : rebase_source : ddf4a4c0dc2c554b98c82700798f343cd91b16e3
2013-11-24 23:56:17 -05:00
Gabriel Jacobo
298ce1c1a7
OCD fixes: Adds a space after /* (glory to regular expressions!)
2013-08-21 09:47:10 -03:00
Gabriel Jacobo
271e0d67c4
OCD fixes: Adds a space before */
2013-08-21 09:43:09 -03:00
Sam Lantinga
0cb6385637
File style cleanup for the SDL 2.0 release
2013-05-18 14:17:52 -07:00
Sam Lantinga
fed4aded8f
Fixed bug 1474 - OpenGL renderer can't to display YV12 texture.
2013-02-19 07:05:15 -08:00
Sam Lantinga
95dcfa4c28
Happy New Year!
2013-02-15 08:47:44 -08:00
Sam Lantinga
f380ecb137
Removed executable bit from source files
2012-09-27 14:35:28 -07:00
Sam Lantinga
028e5dcdbd
Happy New Year!
2011-12-31 09:28:07 -05:00
Ryan C. Gordon
84d42b9a9f
Fixed wrong datatype for shaders and programs.
...
This is a pointer on Mac OS X, so it risked losing data in 64-bit builds.
2011-08-23 06:27:04 -04:00
Sam Lantinga
b0660ba5ff
SDL 1.3 is now under the zlib license.
2011-04-08 13:03:26 -07:00
Sam Lantinga
45d991f20d
Fixed permissions for C source files
2011-03-11 11:52:41 -08:00
Sam Lantinga
ee61cc3170
Added OpenGL state caching for decent speed improvement.
2011-02-19 21:51:21 -08:00
Sam Lantinga
e5803d148c
Happy 2011! :)
2011-02-11 22:37:15 -08:00
Sam Lantinga
0f1080b558
Fixed compiling on Windows
...
Added an untested shader for YV12 textures
2011-02-09 10:31:12 -08:00
Sam Lantinga
85a93efaec
Fixed crash when shaders aren't available.
2011-02-09 10:13:26 -08:00
Sam Lantinga
505dd64abe
Made the shaders easier to debug when they don't compile
2011-02-08 20:31:39 -08:00
Sam Lantinga
296fa03f71
Fixed the shaders (needed to use texture2DRect) - thanks Ryan!
2011-02-08 20:23:52 -08:00
Sam Lantinga
fd61299f87
Fixed setting the texture unit, still doesn't work.
2011-02-08 16:50:51 -08:00
Sam Lantinga
e66660c5f6
Beginning of a framework for OpenGL shaders
2011-02-08 16:27:52 -08:00