My Project
Loading...
Searching...
No Matches
SDL_render.h
Go to the documentation of this file.
1/*
2 Simple DirectMedia Layer
3 Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
4
5 This software is provided 'as-is', without any express or implied
6 warranty. In no event will the authors be held liable for any damages
7 arising from the use of this software.
8
9 Permission is granted to anyone to use this software for any purpose,
10 including commercial applications, and to alter it and redistribute it
11 freely, subject to the following restrictions:
12
13 1. The origin of this software must not be misrepresented; you must not
14 claim that you wrote the original software. If you use this software
15 in a product, an acknowledgment in the product documentation would be
16 appreciated but is not required.
17 2. Altered source versions must be plainly marked as such, and must not be
18 misrepresented as being the original software.
19 3. This notice may not be removed or altered from any source distribution.
20*/
21
48#ifndef SDL_render_h_
49#define SDL_render_h_
50
51#include "SDL_stdinc.h"
52#include "SDL_rect.h"
53#include "SDL_video.h"
54
55#include "begin_code.h"
56/* Set up for C function definitions, even when using C++ */
57#ifdef __cplusplus
58extern "C" {
59#endif
60
64typedef enum
65{
66 SDL_RENDERER_SOFTWARE = 0x00000001,
67 SDL_RENDERER_ACCELERATED = 0x00000002,
69 SDL_RENDERER_PRESENTVSYNC = 0x00000004,
71 SDL_RENDERER_TARGETTEXTURE = 0x00000008
74
78typedef struct SDL_RendererInfo
79{
80 const char *name;
81 Uint32 flags;
83 Uint32 texture_formats[16];
87
91typedef struct SDL_Vertex
92{
97
101typedef enum
102{
107
111typedef enum
112{
117
121typedef enum
122{
125 SDL_TEXTUREMODULATE_ALPHA = 0x00000002
127
131typedef enum
132{
133 SDL_FLIP_NONE = 0x00000000,
134 SDL_FLIP_HORIZONTAL = 0x00000001,
135 SDL_FLIP_VERTICAL = 0x00000002
137
141struct SDL_Renderer;
142typedef struct SDL_Renderer SDL_Renderer;
143
147struct SDL_Texture;
148typedef struct SDL_Texture SDL_Texture;
149
150/* Function prototypes */
151
169extern DECLSPEC int SDLCALL SDL_GetNumRenderDrivers(void);
170
185extern DECLSPEC int SDLCALL SDL_GetRenderDriverInfo(int index,
186 SDL_RendererInfo * info);
187
205extern DECLSPEC int SDLCALL SDL_CreateWindowAndRenderer(
206 int width, int height, Uint32 window_flags,
207 SDL_Window **window, SDL_Renderer **renderer);
208
209
227extern DECLSPEC SDL_Renderer * SDLCALL SDL_CreateRenderer(SDL_Window * window,
228 int index, Uint32 flags);
229
249extern DECLSPEC SDL_Renderer * SDLCALL SDL_CreateSoftwareRenderer(SDL_Surface * surface);
250
262extern DECLSPEC SDL_Renderer * SDLCALL SDL_GetRenderer(SDL_Window * window);
263
273extern DECLSPEC SDL_Window * SDLCALL SDL_RenderGetWindow(SDL_Renderer *renderer);
274
288extern DECLSPEC int SDLCALL SDL_GetRendererInfo(SDL_Renderer * renderer,
289 SDL_RendererInfo * info);
290
308extern DECLSPEC int SDLCALL SDL_GetRendererOutputSize(SDL_Renderer * renderer,
309 int *w, int *h);
310
333extern DECLSPEC SDL_Texture * SDLCALL SDL_CreateTexture(SDL_Renderer * renderer,
334 Uint32 format,
335 int access, int w,
336 int h);
337
362extern DECLSPEC SDL_Texture * SDLCALL SDL_CreateTextureFromSurface(SDL_Renderer * renderer, SDL_Surface * surface);
363
386extern DECLSPEC int SDLCALL SDL_QueryTexture(SDL_Texture * texture,
387 Uint32 * format, int *access,
388 int *w, int *h);
389
414extern DECLSPEC int SDLCALL SDL_SetTextureColorMod(SDL_Texture * texture,
415 Uint8 r, Uint8 g, Uint8 b);
416
417
433extern DECLSPEC int SDLCALL SDL_GetTextureColorMod(SDL_Texture * texture,
434 Uint8 * r, Uint8 * g,
435 Uint8 * b);
436
458extern DECLSPEC int SDLCALL SDL_SetTextureAlphaMod(SDL_Texture * texture,
459 Uint8 alpha);
460
474extern DECLSPEC int SDLCALL SDL_GetTextureAlphaMod(SDL_Texture * texture,
475 Uint8 * alpha);
476
493extern DECLSPEC int SDLCALL SDL_SetTextureBlendMode(SDL_Texture * texture,
494 SDL_BlendMode blendMode);
495
508extern DECLSPEC int SDLCALL SDL_GetTextureBlendMode(SDL_Texture * texture,
509 SDL_BlendMode *blendMode);
510
524extern DECLSPEC int SDLCALL SDL_SetTextureScaleMode(SDL_Texture * texture,
525 SDL_ScaleMode scaleMode);
526
538extern DECLSPEC int SDLCALL SDL_GetTextureScaleMode(SDL_Texture * texture,
539 SDL_ScaleMode *scaleMode);
540
552extern DECLSPEC int SDLCALL SDL_SetTextureUserData(SDL_Texture * texture,
553 void *userdata);
554
566extern DECLSPEC void * SDLCALL SDL_GetTextureUserData(SDL_Texture * texture);
567
597extern DECLSPEC int SDLCALL SDL_UpdateTexture(SDL_Texture * texture,
598 const SDL_Rect * rect,
599 const void *pixels, int pitch);
600
628extern DECLSPEC int SDLCALL SDL_UpdateYUVTexture(SDL_Texture * texture,
629 const SDL_Rect * rect,
630 const Uint8 *Yplane, int Ypitch,
631 const Uint8 *Uplane, int Upitch,
632 const Uint8 *Vplane, int Vpitch);
633
654extern DECLSPEC int SDLCALL SDL_UpdateNVTexture(SDL_Texture * texture,
655 const SDL_Rect * rect,
656 const Uint8 *Yplane, int Ypitch,
657 const Uint8 *UVplane, int UVpitch);
658
686extern DECLSPEC int SDLCALL SDL_LockTexture(SDL_Texture * texture,
687 const SDL_Rect * rect,
688 void **pixels, int *pitch);
689
722extern DECLSPEC int SDLCALL SDL_LockTextureToSurface(SDL_Texture *texture,
723 const SDL_Rect *rect,
724 SDL_Surface **surface);
725
743extern DECLSPEC void SDLCALL SDL_UnlockTexture(SDL_Texture * texture);
744
755extern DECLSPEC SDL_bool SDLCALL SDL_RenderTargetSupported(SDL_Renderer *renderer);
756
779extern DECLSPEC int SDLCALL SDL_SetRenderTarget(SDL_Renderer *renderer,
780 SDL_Texture *texture);
781
795extern DECLSPEC SDL_Texture * SDLCALL SDL_GetRenderTarget(SDL_Renderer *renderer);
796
823extern DECLSPEC int SDLCALL SDL_RenderSetLogicalSize(SDL_Renderer * renderer, int w, int h);
824
844extern DECLSPEC void SDLCALL SDL_RenderGetLogicalSize(SDL_Renderer * renderer, int *w, int *h);
845
863extern DECLSPEC int SDLCALL SDL_RenderSetIntegerScale(SDL_Renderer * renderer,
864 SDL_bool enable);
865
877extern DECLSPEC SDL_bool SDLCALL SDL_RenderGetIntegerScale(SDL_Renderer * renderer);
878
895extern DECLSPEC int SDLCALL SDL_RenderSetViewport(SDL_Renderer * renderer,
896 const SDL_Rect * rect);
897
908extern DECLSPEC void SDLCALL SDL_RenderGetViewport(SDL_Renderer * renderer,
909 SDL_Rect * rect);
910
926extern DECLSPEC int SDLCALL SDL_RenderSetClipRect(SDL_Renderer * renderer,
927 const SDL_Rect * rect);
928
942extern DECLSPEC void SDLCALL SDL_RenderGetClipRect(SDL_Renderer * renderer,
943 SDL_Rect * rect);
944
957extern DECLSPEC SDL_bool SDLCALL SDL_RenderIsClipEnabled(SDL_Renderer * renderer);
958
959
982extern DECLSPEC int SDLCALL SDL_RenderSetScale(SDL_Renderer * renderer,
983 float scaleX, float scaleY);
984
996extern DECLSPEC void SDLCALL SDL_RenderGetScale(SDL_Renderer * renderer,
997 float *scaleX, float *scaleY);
998
1020extern DECLSPEC void SDLCALL SDL_RenderWindowToLogical(SDL_Renderer * renderer,
1021 int windowX, int windowY,
1022 float *logicalX, float *logicalY);
1023
1024
1046extern DECLSPEC void SDLCALL SDL_RenderLogicalToWindow(SDL_Renderer * renderer,
1047 float logicalX, float logicalY,
1048 int *windowX, int *windowY);
1049
1079extern DECLSPEC int SDLCALL SDL_SetRenderDrawColor(SDL_Renderer * renderer,
1080 Uint8 r, Uint8 g, Uint8 b,
1081 Uint8 a);
1082
1102extern DECLSPEC int SDLCALL SDL_GetRenderDrawColor(SDL_Renderer * renderer,
1103 Uint8 * r, Uint8 * g, Uint8 * b,
1104 Uint8 * a);
1105
1128extern DECLSPEC int SDLCALL SDL_SetRenderDrawBlendMode(SDL_Renderer * renderer,
1129 SDL_BlendMode blendMode);
1130
1143extern DECLSPEC int SDLCALL SDL_GetRenderDrawBlendMode(SDL_Renderer * renderer,
1144 SDL_BlendMode *blendMode);
1145
1160extern DECLSPEC int SDLCALL SDL_RenderClear(SDL_Renderer * renderer);
1161
1187extern DECLSPEC int SDLCALL SDL_RenderDrawPoint(SDL_Renderer * renderer,
1188 int x, int y);
1189
1213extern DECLSPEC int SDLCALL SDL_RenderDrawPoints(SDL_Renderer * renderer,
1214 const SDL_Point * points,
1215 int count);
1216
1244extern DECLSPEC int SDLCALL SDL_RenderDrawLine(SDL_Renderer * renderer,
1245 int x1, int y1, int x2, int y2);
1246
1270extern DECLSPEC int SDLCALL SDL_RenderDrawLines(SDL_Renderer * renderer,
1271 const SDL_Point * points,
1272 int count);
1273
1296extern DECLSPEC int SDLCALL SDL_RenderDrawRect(SDL_Renderer * renderer,
1297 const SDL_Rect * rect);
1298
1322extern DECLSPEC int SDLCALL SDL_RenderDrawRects(SDL_Renderer * renderer,
1323 const SDL_Rect * rects,
1324 int count);
1325
1352extern DECLSPEC int SDLCALL SDL_RenderFillRect(SDL_Renderer * renderer,
1353 const SDL_Rect * rect);
1354
1377extern DECLSPEC int SDLCALL SDL_RenderFillRects(SDL_Renderer * renderer,
1378 const SDL_Rect * rects,
1379 int count);
1380
1409extern DECLSPEC int SDLCALL SDL_RenderCopy(SDL_Renderer * renderer,
1410 SDL_Texture * texture,
1411 const SDL_Rect * srcrect,
1412 const SDL_Rect * dstrect);
1413
1453extern DECLSPEC int SDLCALL SDL_RenderCopyEx(SDL_Renderer * renderer,
1454 SDL_Texture * texture,
1455 const SDL_Rect * srcrect,
1456 const SDL_Rect * dstrect,
1457 const double angle,
1458 const SDL_Point *center,
1459 const SDL_RendererFlip flip);
1460
1461
1472extern DECLSPEC int SDLCALL SDL_RenderDrawPointF(SDL_Renderer * renderer,
1473 float x, float y);
1474
1485extern DECLSPEC int SDLCALL SDL_RenderDrawPointsF(SDL_Renderer * renderer,
1486 const SDL_FPoint * points,
1487 int count);
1488
1501extern DECLSPEC int SDLCALL SDL_RenderDrawLineF(SDL_Renderer * renderer,
1502 float x1, float y1, float x2, float y2);
1503
1515extern DECLSPEC int SDLCALL SDL_RenderDrawLinesF(SDL_Renderer * renderer,
1516 const SDL_FPoint * points,
1517 int count);
1518
1529extern DECLSPEC int SDLCALL SDL_RenderDrawRectF(SDL_Renderer * renderer,
1530 const SDL_FRect * rect);
1531
1543extern DECLSPEC int SDLCALL SDL_RenderDrawRectsF(SDL_Renderer * renderer,
1544 const SDL_FRect * rects,
1545 int count);
1546
1558extern DECLSPEC int SDLCALL SDL_RenderFillRectF(SDL_Renderer * renderer,
1559 const SDL_FRect * rect);
1560
1572extern DECLSPEC int SDLCALL SDL_RenderFillRectsF(SDL_Renderer * renderer,
1573 const SDL_FRect * rects,
1574 int count);
1575
1590extern DECLSPEC int SDLCALL SDL_RenderCopyF(SDL_Renderer * renderer,
1591 SDL_Texture * texture,
1592 const SDL_Rect * srcrect,
1593 const SDL_FRect * dstrect);
1594
1616extern DECLSPEC int SDLCALL SDL_RenderCopyExF(SDL_Renderer * renderer,
1617 SDL_Texture * texture,
1618 const SDL_Rect * srcrect,
1619 const SDL_FRect * dstrect,
1620 const double angle,
1621 const SDL_FPoint *center,
1622 const SDL_RendererFlip flip);
1623
1644extern DECLSPEC int SDLCALL SDL_RenderGeometry(SDL_Renderer *renderer,
1645 SDL_Texture *texture,
1646 const SDL_Vertex *vertices, int num_vertices,
1647 const int *indices, int num_indices);
1648
1674extern DECLSPEC int SDLCALL SDL_RenderGeometryRaw(SDL_Renderer *renderer,
1675 SDL_Texture *texture,
1676 const float *xy, int xy_stride,
1677 const SDL_Color *color, int color_stride,
1678 const float *uv, int uv_stride,
1679 int num_vertices,
1680 const void *indices, int num_indices, int size_indices);
1681
1708extern DECLSPEC int SDLCALL SDL_RenderReadPixels(SDL_Renderer * renderer,
1709 const SDL_Rect * rect,
1710 Uint32 format,
1711 void *pixels, int pitch);
1712
1748extern DECLSPEC void SDLCALL SDL_RenderPresent(SDL_Renderer * renderer);
1749
1763extern DECLSPEC void SDLCALL SDL_DestroyTexture(SDL_Texture * texture);
1764
1777extern DECLSPEC void SDLCALL SDL_DestroyRenderer(SDL_Renderer * renderer);
1778
1808extern DECLSPEC int SDLCALL SDL_RenderFlush(SDL_Renderer * renderer);
1809
1810
1846extern DECLSPEC int SDLCALL SDL_GL_BindTexture(SDL_Texture *texture, float *texw, float *texh);
1847
1861extern DECLSPEC int SDLCALL SDL_GL_UnbindTexture(SDL_Texture *texture);
1862
1877extern DECLSPEC void *SDLCALL SDL_RenderGetMetalLayer(SDL_Renderer * renderer);
1878
1898extern DECLSPEC void *SDLCALL SDL_RenderGetMetalCommandEncoder(SDL_Renderer * renderer);
1899
1909extern DECLSPEC int SDLCALL SDL_RenderSetVSync(SDL_Renderer* renderer, int vsync);
1910
1911/* Ends C function definitions when using C++ */
1912#ifdef __cplusplus
1913}
1914#endif
1915#include "close_code.h"
1916
1917#endif /* SDL_render_h_ */
1918
1919/* vi: set ts=4 sw=4 expandtab: */
SDL_BlendMode
The blend mode used in SDL_RenderCopy() and drawing operations.
Definition: SDL_blendmode.h:41
DECLSPEC int SDLCALL SDL_GL_BindTexture(SDL_Texture *texture, float *texw, float *texh)
DECLSPEC void SDLCALL SDL_RenderGetScale(SDL_Renderer *renderer, float *scaleX, float *scaleY)
DECLSPEC int SDLCALL SDL_RenderDrawLineF(SDL_Renderer *renderer, float x1, float y1, float x2, float y2)
DECLSPEC void SDLCALL SDL_DestroyTexture(SDL_Texture *texture)
DECLSPEC SDL_bool SDLCALL SDL_RenderTargetSupported(SDL_Renderer *renderer)
DECLSPEC SDL_Texture *SDLCALL SDL_GetRenderTarget(SDL_Renderer *renderer)
DECLSPEC void *SDLCALL SDL_RenderGetMetalCommandEncoder(SDL_Renderer *renderer)
DECLSPEC int SDLCALL SDL_RenderFlush(SDL_Renderer *renderer)
DECLSPEC int SDLCALL SDL_GetRenderDrawColor(SDL_Renderer *renderer, Uint8 *r, Uint8 *g, Uint8 *b, Uint8 *a)
DECLSPEC int SDLCALL SDL_SetTextureAlphaMod(SDL_Texture *texture, Uint8 alpha)
DECLSPEC int SDLCALL SDL_SetRenderTarget(SDL_Renderer *renderer, SDL_Texture *texture)
DECLSPEC int SDLCALL SDL_GetTextureBlendMode(SDL_Texture *texture, SDL_BlendMode *blendMode)
DECLSPEC int SDLCALL SDL_RenderSetClipRect(SDL_Renderer *renderer, const SDL_Rect *rect)
DECLSPEC int SDLCALL SDL_RenderSetViewport(SDL_Renderer *renderer, const SDL_Rect *rect)
DECLSPEC int SDLCALL SDL_SetTextureColorMod(SDL_Texture *texture, Uint8 r, Uint8 g, Uint8 b)
DECLSPEC int SDLCALL SDL_SetRenderDrawBlendMode(SDL_Renderer *renderer, SDL_BlendMode blendMode)
DECLSPEC int SDLCALL SDL_GetRenderDrawBlendMode(SDL_Renderer *renderer, SDL_BlendMode *blendMode)
SDL_RendererFlags
Definition: SDL_render.h:65
@ SDL_RENDERER_SOFTWARE
Definition: SDL_render.h:66
@ SDL_RENDERER_ACCELERATED
Definition: SDL_render.h:67
@ SDL_RENDERER_PRESENTVSYNC
Definition: SDL_render.h:69
@ SDL_RENDERER_TARGETTEXTURE
Definition: SDL_render.h:71
DECLSPEC int SDLCALL SDL_RenderFillRect(SDL_Renderer *renderer, const SDL_Rect *rect)
DECLSPEC void *SDLCALL SDL_RenderGetMetalLayer(SDL_Renderer *renderer)
DECLSPEC SDL_bool SDLCALL SDL_RenderGetIntegerScale(SDL_Renderer *renderer)
DECLSPEC int SDLCALL SDL_RenderCopyF(SDL_Renderer *renderer, SDL_Texture *texture, const SDL_Rect *srcrect, const SDL_FRect *dstrect)
DECLSPEC int SDLCALL SDL_RenderClear(SDL_Renderer *renderer)
DECLSPEC void SDLCALL SDL_RenderPresent(SDL_Renderer *renderer)
DECLSPEC SDL_Renderer *SDLCALL SDL_CreateRenderer(SDL_Window *window, int index, Uint32 flags)
DECLSPEC int SDLCALL SDL_RenderCopy(SDL_Renderer *renderer, SDL_Texture *texture, const SDL_Rect *srcrect, const SDL_Rect *dstrect)
DECLSPEC int SDLCALL SDL_GetTextureAlphaMod(SDL_Texture *texture, Uint8 *alpha)
DECLSPEC int SDLCALL SDL_GetNumRenderDrivers(void)
DECLSPEC int SDLCALL SDL_GetTextureScaleMode(SDL_Texture *texture, SDL_ScaleMode *scaleMode)
DECLSPEC int SDLCALL SDL_RenderDrawLines(SDL_Renderer *renderer, const SDL_Point *points, int count)
DECLSPEC int SDLCALL SDL_RenderFillRectsF(SDL_Renderer *renderer, const SDL_FRect *rects, int count)
DECLSPEC SDL_Texture *SDLCALL SDL_CreateTextureFromSurface(SDL_Renderer *renderer, SDL_Surface *surface)
DECLSPEC int SDLCALL SDL_RenderDrawLinesF(SDL_Renderer *renderer, const SDL_FPoint *points, int count)
DECLSPEC void SDLCALL SDL_RenderGetViewport(SDL_Renderer *renderer, SDL_Rect *rect)
SDL_RendererFlip
Definition: SDL_render.h:132
@ SDL_FLIP_VERTICAL
Definition: SDL_render.h:135
@ SDL_FLIP_NONE
Definition: SDL_render.h:133
@ SDL_FLIP_HORIZONTAL
Definition: SDL_render.h:134
DECLSPEC int SDLCALL SDL_RenderSetIntegerScale(SDL_Renderer *renderer, SDL_bool enable)
DECLSPEC void *SDLCALL SDL_GetTextureUserData(SDL_Texture *texture)
DECLSPEC int SDLCALL SDL_RenderReadPixels(SDL_Renderer *renderer, const SDL_Rect *rect, Uint32 format, void *pixels, int pitch)
SDL_TextureAccess
Definition: SDL_render.h:112
@ SDL_TEXTUREACCESS_STATIC
Definition: SDL_render.h:113
@ SDL_TEXTUREACCESS_STREAMING
Definition: SDL_render.h:114
@ SDL_TEXTUREACCESS_TARGET
Definition: SDL_render.h:115
DECLSPEC SDL_Renderer *SDLCALL SDL_GetRenderer(SDL_Window *window)
DECLSPEC int SDLCALL SDL_RenderDrawLine(SDL_Renderer *renderer, int x1, int y1, int x2, int y2)
DECLSPEC SDL_Texture *SDLCALL SDL_CreateTexture(SDL_Renderer *renderer, Uint32 format, int access, int w, int h)
DECLSPEC int SDLCALL SDL_UpdateTexture(SDL_Texture *texture, const SDL_Rect *rect, const void *pixels, int pitch)
DECLSPEC int SDLCALL SDL_RenderGeometryRaw(SDL_Renderer *renderer, SDL_Texture *texture, const float *xy, int xy_stride, const SDL_Color *color, int color_stride, const float *uv, int uv_stride, int num_vertices, const void *indices, int num_indices, int size_indices)
DECLSPEC int SDLCALL SDL_RenderGeometry(SDL_Renderer *renderer, SDL_Texture *texture, const SDL_Vertex *vertices, int num_vertices, const int *indices, int num_indices)
SDL_ScaleMode
Definition: SDL_render.h:102
@ SDL_ScaleModeLinear
Definition: SDL_render.h:104
@ SDL_ScaleModeBest
Definition: SDL_render.h:105
@ SDL_ScaleModeNearest
Definition: SDL_render.h:103
DECLSPEC void SDLCALL SDL_UnlockTexture(SDL_Texture *texture)
SDL_TextureModulate
Definition: SDL_render.h:122
@ SDL_TEXTUREMODULATE_NONE
Definition: SDL_render.h:123
@ SDL_TEXTUREMODULATE_ALPHA
Definition: SDL_render.h:125
@ SDL_TEXTUREMODULATE_COLOR
Definition: SDL_render.h:124
DECLSPEC int SDLCALL SDL_RenderDrawPoints(SDL_Renderer *renderer, const SDL_Point *points, int count)
DECLSPEC int SDLCALL SDL_RenderDrawPointsF(SDL_Renderer *renderer, const SDL_FPoint *points, int count)
DECLSPEC int SDLCALL SDL_SetTextureUserData(SDL_Texture *texture, void *userdata)
DECLSPEC int SDLCALL SDL_RenderFillRects(SDL_Renderer *renderer, const SDL_Rect *rects, int count)
DECLSPEC int SDLCALL SDL_SetRenderDrawColor(SDL_Renderer *renderer, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
DECLSPEC void SDLCALL SDL_RenderWindowToLogical(SDL_Renderer *renderer, int windowX, int windowY, float *logicalX, float *logicalY)
DECLSPEC int SDLCALL SDL_RenderSetScale(SDL_Renderer *renderer, float scaleX, float scaleY)
DECLSPEC void SDLCALL SDL_RenderGetLogicalSize(SDL_Renderer *renderer, int *w, int *h)
DECLSPEC int SDLCALL SDL_RenderDrawPointF(SDL_Renderer *renderer, float x, float y)
DECLSPEC int SDLCALL SDL_GetTextureColorMod(SDL_Texture *texture, Uint8 *r, Uint8 *g, Uint8 *b)
DECLSPEC int SDLCALL SDL_GetRenderDriverInfo(int index, SDL_RendererInfo *info)
DECLSPEC int SDLCALL SDL_SetTextureScaleMode(SDL_Texture *texture, SDL_ScaleMode scaleMode)
DECLSPEC int SDLCALL SDL_UpdateYUVTexture(SDL_Texture *texture, const SDL_Rect *rect, const Uint8 *Yplane, int Ypitch, const Uint8 *Uplane, int Upitch, const Uint8 *Vplane, int Vpitch)
DECLSPEC int SDLCALL SDL_QueryTexture(SDL_Texture *texture, Uint32 *format, int *access, int *w, int *h)
DECLSPEC int SDLCALL SDL_GL_UnbindTexture(SDL_Texture *texture)
DECLSPEC void SDLCALL SDL_DestroyRenderer(SDL_Renderer *renderer)
DECLSPEC int SDLCALL SDL_RenderDrawRect(SDL_Renderer *renderer, const SDL_Rect *rect)
DECLSPEC int SDLCALL SDL_RenderDrawPoint(SDL_Renderer *renderer, int x, int y)
DECLSPEC SDL_bool SDLCALL SDL_RenderIsClipEnabled(SDL_Renderer *renderer)
DECLSPEC int SDLCALL SDL_UpdateNVTexture(SDL_Texture *texture, const SDL_Rect *rect, const Uint8 *Yplane, int Ypitch, const Uint8 *UVplane, int UVpitch)
DECLSPEC int SDLCALL SDL_GetRendererOutputSize(SDL_Renderer *renderer, int *w, int *h)
DECLSPEC int SDLCALL SDL_RenderDrawRectsF(SDL_Renderer *renderer, const SDL_FRect *rects, int count)
DECLSPEC int SDLCALL SDL_RenderCopyEx(SDL_Renderer *renderer, SDL_Texture *texture, const SDL_Rect *srcrect, const SDL_Rect *dstrect, const double angle, const SDL_Point *center, const SDL_RendererFlip flip)
DECLSPEC int SDLCALL SDL_CreateWindowAndRenderer(int width, int height, Uint32 window_flags, SDL_Window **window, SDL_Renderer **renderer)
DECLSPEC SDL_Window *SDLCALL SDL_RenderGetWindow(SDL_Renderer *renderer)
DECLSPEC int SDLCALL SDL_RenderCopyExF(SDL_Renderer *renderer, SDL_Texture *texture, const SDL_Rect *srcrect, const SDL_FRect *dstrect, const double angle, const SDL_FPoint *center, const SDL_RendererFlip flip)
DECLSPEC int SDLCALL SDL_RenderSetLogicalSize(SDL_Renderer *renderer, int w, int h)
DECLSPEC void SDLCALL SDL_RenderLogicalToWindow(SDL_Renderer *renderer, float logicalX, float logicalY, int *windowX, int *windowY)
DECLSPEC int SDLCALL SDL_RenderDrawRects(SDL_Renderer *renderer, const SDL_Rect *rects, int count)
DECLSPEC int SDLCALL SDL_RenderDrawRectF(SDL_Renderer *renderer, const SDL_FRect *rect)
DECLSPEC SDL_Renderer *SDLCALL SDL_CreateSoftwareRenderer(SDL_Surface *surface)
DECLSPEC int SDLCALL SDL_LockTextureToSurface(SDL_Texture *texture, const SDL_Rect *rect, SDL_Surface **surface)
DECLSPEC int SDLCALL SDL_LockTexture(SDL_Texture *texture, const SDL_Rect *rect, void **pixels, int *pitch)
DECLSPEC int SDLCALL SDL_SetTextureBlendMode(SDL_Texture *texture, SDL_BlendMode blendMode)
DECLSPEC void SDLCALL SDL_RenderGetClipRect(SDL_Renderer *renderer, SDL_Rect *rect)
DECLSPEC int SDLCALL SDL_RenderFillRectF(SDL_Renderer *renderer, const SDL_FRect *rect)
DECLSPEC int SDLCALL SDL_GetRendererInfo(SDL_Renderer *renderer, SDL_RendererInfo *info)
DECLSPEC int SDLCALL SDL_RenderSetVSync(SDL_Renderer *renderer, int vsync)
struct SDL_Window SDL_Window
The type used to identify a window.
Definition: SDL_video.h:95
Definition: SDL_pixels.h:310
Definition: SDL_rect.h:61
Definition: SDL_rect.h:99
Definition: SDL_rect.h:49
Definition: SDL_rect.h:79
Definition: SDL_render.h:79
Uint32 flags
Definition: SDL_render.h:81
int max_texture_height
Definition: SDL_render.h:85
Uint32 num_texture_formats
Definition: SDL_render.h:82
const char * name
Definition: SDL_render.h:80
int max_texture_width
Definition: SDL_render.h:84
Uint32 texture_formats[16]
Definition: SDL_render.h:83
A collection of pixels used in software blitting.
Definition: SDL_surface.h:73
Definition: SDL_render.h:92
SDL_FPoint position
Definition: SDL_render.h:93
SDL_Color color
Definition: SDL_render.h:94
SDL_FPoint tex_coord
Definition: SDL_render.h:95