summaryrefslogtreecommitdiff
path: root/Source/3rdParty/SDL2/src/render/SDL_sysrender.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-01-31 18:38:35 +0800
committerchai <chaifix@163.com>2019-01-31 18:38:35 +0800
commit2ec55fd974a63b705a4777c256d2222c874fa043 (patch)
tree48f1fea59ee9fc713a28a9aac3f05b98dc5ae66f /Source/3rdParty/SDL2/src/render/SDL_sysrender.h
parentc581dfbf1e849f393861d15e82aa6446c0c1c310 (diff)
*SDL project
Diffstat (limited to 'Source/3rdParty/SDL2/src/render/SDL_sysrender.h')
-rw-r--r--Source/3rdParty/SDL2/src/render/SDL_sysrender.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/3rdParty/SDL2/src/render/SDL_sysrender.h b/Source/3rdParty/SDL2/src/render/SDL_sysrender.h
index f0f54c8..940bebc 100644
--- a/Source/3rdParty/SDL2/src/render/SDL_sysrender.h
+++ b/Source/3rdParty/SDL2/src/render/SDL_sysrender.h
@@ -25,12 +25,20 @@
#include "SDL_render.h"
#include "SDL_events.h"
+#include "SDL_mutex.h"
#include "SDL_yuv_sw_c.h"
/* The SDL 2D rendering system */
typedef struct SDL_RenderDriver SDL_RenderDriver;
+typedef enum
+{
+ SDL_ScaleModeNearest,
+ SDL_ScaleModeLinear,
+ SDL_ScaleModeBest
+} SDL_ScaleMode;
+
typedef struct
{
float x;
@@ -55,6 +63,7 @@ struct SDL_Texture
int h; /**< The height of the texture */
int modMode; /**< The texture modulation mode */
SDL_BlendMode blendMode; /**< The texture blend mode */
+ SDL_ScaleMode scaleMode; /**< The texture scale mode */
Uint8 r, g, b, a; /**< Texture modulation values */
SDL_Renderer *renderer;
@@ -164,6 +173,7 @@ struct SDL_Renderer
/* The list of textures */
SDL_Texture *textures;
SDL_Texture *target;
+ SDL_mutex *target_mutex;
Uint8 r, g, b, a; /**< Color for drawing operations values */
SDL_BlendMode blendMode; /**< The drawing blend mode */