arsa  2.7
SDL_render.h
Go to the documentation of this file.
1 /*
2  Simple DirectMedia Layer
3  Copyright (C) 1997-2019 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
58 extern "C" {
59 #endif
60 
64 typedef enum
65 {
66  SDL_RENDERER_SOFTWARE = 0x00000001,
67  SDL_RENDERER_ACCELERATED = 0x00000002,
74 
78 typedef struct SDL_RendererInfo
79 {
80  const char *name;
87 
91 typedef enum
92 {
97 
101 typedef enum
102 {
107 
111 typedef enum
112 {
113  SDL_FLIP_NONE = 0x00000000,
114  SDL_FLIP_HORIZONTAL = 0x00000001,
115  SDL_FLIP_VERTICAL = 0x00000002
117 
121 struct SDL_Renderer;
122 typedef struct SDL_Renderer SDL_Renderer;
123 
127 struct SDL_Texture;
128 typedef struct SDL_Texture SDL_Texture;
129 
130 
131 /* Function prototypes */
132 
144 extern DECLSPEC int SDLCALL SDL_GetNumRenderDrivers(void);
145 
159  SDL_RendererInfo * info);
160 
173  int width, int height, Uint32 window_flags,
174  SDL_Window **window, SDL_Renderer **renderer);
175 
176 
192  int index, Uint32 flags);
193 
205 
210 
214 extern DECLSPEC int SDLCALL SDL_GetRendererInfo(SDL_Renderer * renderer,
215  SDL_RendererInfo * info);
216 
221  int *w, int *h);
222 
243  Uint32 format,
244  int access, int w,
245  int h);
246 
261 
276  Uint32 * format, int *access,
277  int *w, int *h);
278 
293  Uint8 r, Uint8 g, Uint8 b);
294 
295 
309  Uint8 * r, Uint8 * g,
310  Uint8 * b);
311 
324  Uint8 alpha);
325 
337  Uint8 * alpha);
338 
354  SDL_BlendMode blendMode);
355 
367  SDL_BlendMode *blendMode);
368 
386  const SDL_Rect * rect,
387  const void *pixels, int pitch);
388 
409  const SDL_Rect * rect,
410  const Uint8 *Yplane, int Ypitch,
411  const Uint8 *Uplane, int Upitch,
412  const Uint8 *Vplane, int Vpitch);
413 
430  const SDL_Rect * rect,
431  void **pixels, int *pitch);
432 
449  const SDL_Rect *rect,
450  SDL_Surface **surface);
451 
460 
469 
480 extern DECLSPEC int SDLCALL SDL_SetRenderTarget(SDL_Renderer *renderer,
482 
491 
515 extern DECLSPEC int SDLCALL SDL_RenderSetLogicalSize(SDL_Renderer * renderer, int w, int h);
516 
526 extern DECLSPEC void SDLCALL SDL_RenderGetLogicalSize(SDL_Renderer * renderer, int *w, int *h);
527 
541  SDL_bool enable);
542 
551 
567 extern DECLSPEC int SDLCALL SDL_RenderSetViewport(SDL_Renderer * renderer,
568  const SDL_Rect * rect);
569 
575 extern DECLSPEC void SDLCALL SDL_RenderGetViewport(SDL_Renderer * renderer,
576  SDL_Rect * rect);
577 
589 extern DECLSPEC int SDLCALL SDL_RenderSetClipRect(SDL_Renderer * renderer,
590  const SDL_Rect * rect);
591 
601 extern DECLSPEC void SDLCALL SDL_RenderGetClipRect(SDL_Renderer * renderer,
602  SDL_Rect * rect);
603 
612 
613 
632 extern DECLSPEC int SDLCALL SDL_RenderSetScale(SDL_Renderer * renderer,
633  float scaleX, float scaleY);
634 
644 extern DECLSPEC void SDLCALL SDL_RenderGetScale(SDL_Renderer * renderer,
645  float *scaleX, float *scaleY);
646 
660  Uint8 r, Uint8 g, Uint8 b,
661  Uint8 a);
662 
676  Uint8 * r, Uint8 * g, Uint8 * b,
677  Uint8 * a);
678 
693  SDL_BlendMode blendMode);
694 
706  SDL_BlendMode *blendMode);
707 
716 extern DECLSPEC int SDLCALL SDL_RenderClear(SDL_Renderer * renderer);
717 
727 extern DECLSPEC int SDLCALL SDL_RenderDrawPoint(SDL_Renderer * renderer,
728  int x, int y);
729 
739 extern DECLSPEC int SDLCALL SDL_RenderDrawPoints(SDL_Renderer * renderer,
740  const SDL_Point * points,
741  int count);
742 
754 extern DECLSPEC int SDLCALL SDL_RenderDrawLine(SDL_Renderer * renderer,
755  int x1, int y1, int x2, int y2);
756 
766 extern DECLSPEC int SDLCALL SDL_RenderDrawLines(SDL_Renderer * renderer,
767  const SDL_Point * points,
768  int count);
769 
778 extern DECLSPEC int SDLCALL SDL_RenderDrawRect(SDL_Renderer * renderer,
779  const SDL_Rect * rect);
780 
790 extern DECLSPEC int SDLCALL SDL_RenderDrawRects(SDL_Renderer * renderer,
791  const SDL_Rect * rects,
792  int count);
793 
803 extern DECLSPEC int SDLCALL SDL_RenderFillRect(SDL_Renderer * renderer,
804  const SDL_Rect * rect);
805 
815 extern DECLSPEC int SDLCALL SDL_RenderFillRects(SDL_Renderer * renderer,
816  const SDL_Rect * rects,
817  int count);
818 
831 extern DECLSPEC int SDLCALL SDL_RenderCopy(SDL_Renderer * renderer,
833  const SDL_Rect * srcrect,
834  const SDL_Rect * dstrect);
835 
851 extern DECLSPEC int SDLCALL SDL_RenderCopyEx(SDL_Renderer * renderer,
853  const SDL_Rect * srcrect,
854  const SDL_Rect * dstrect,
855  const double angle,
856  const SDL_Point *center,
857  const SDL_RendererFlip flip);
858 
859 
869 extern DECLSPEC int SDLCALL SDL_RenderDrawPointF(SDL_Renderer * renderer,
870  float x, float y);
871 
881 extern DECLSPEC int SDLCALL SDL_RenderDrawPointsF(SDL_Renderer * renderer,
882  const SDL_FPoint * points,
883  int count);
884 
896 extern DECLSPEC int SDLCALL SDL_RenderDrawLineF(SDL_Renderer * renderer,
897  float x1, float y1, float x2, float y2);
898 
908 extern DECLSPEC int SDLCALL SDL_RenderDrawLinesF(SDL_Renderer * renderer,
909  const SDL_FPoint * points,
910  int count);
911 
920 extern DECLSPEC int SDLCALL SDL_RenderDrawRectF(SDL_Renderer * renderer,
921  const SDL_FRect * rect);
922 
932 extern DECLSPEC int SDLCALL SDL_RenderDrawRectsF(SDL_Renderer * renderer,
933  const SDL_FRect * rects,
934  int count);
935 
945 extern DECLSPEC int SDLCALL SDL_RenderFillRectF(SDL_Renderer * renderer,
946  const SDL_FRect * rect);
947 
957 extern DECLSPEC int SDLCALL SDL_RenderFillRectsF(SDL_Renderer * renderer,
958  const SDL_FRect * rects,
959  int count);
960 
973 extern DECLSPEC int SDLCALL SDL_RenderCopyF(SDL_Renderer * renderer,
975  const SDL_Rect * srcrect,
976  const SDL_FRect * dstrect);
977 
993 extern DECLSPEC int SDLCALL SDL_RenderCopyExF(SDL_Renderer * renderer,
995  const SDL_Rect * srcrect,
996  const SDL_FRect * dstrect,
997  const double angle,
998  const SDL_FPoint *center,
999  const SDL_RendererFlip flip);
1000 
1016 extern DECLSPEC int SDLCALL SDL_RenderReadPixels(SDL_Renderer * renderer,
1017  const SDL_Rect * rect,
1018  Uint32 format,
1019  void *pixels, int pitch);
1020 
1024 extern DECLSPEC void SDLCALL SDL_RenderPresent(SDL_Renderer * renderer);
1025 
1033 
1040 extern DECLSPEC void SDLCALL SDL_DestroyRenderer(SDL_Renderer * renderer);
1041 
1065 extern DECLSPEC int SDLCALL SDL_RenderFlush(SDL_Renderer * renderer);
1066 
1067 
1078 extern DECLSPEC int SDLCALL SDL_GL_BindTexture(SDL_Texture *texture, float *texw, float *texh);
1079 
1088 
1098 extern DECLSPEC void *SDLCALL SDL_RenderGetMetalLayer(SDL_Renderer * renderer);
1099 
1110 
1111 /* Ends C function definitions when using C++ */
1112 #ifdef __cplusplus
1113 }
1114 #endif
1115 #include "close_code.h"
1116 
1117 #endif /* SDL_render_h_ */
1118 
1119 /* vi: set ts=4 sw=4 expandtab: */
DECLSPEC int SDLCALL SDL_SetRenderDrawBlendMode(SDL_Renderer *renderer, SDL_BlendMode blendMode)
Set the blend mode used for drawing operations (Fill and Line).
DECLSPEC SDL_bool SDLCALL SDL_RenderIsClipEnabled(SDL_Renderer *renderer)
Get whether clipping is enabled on the given renderer.
SDL_TextureModulate
The texture channel modulation used in SDL_RenderCopy().
Definition: SDL_render.h:101
DECLSPEC void SDLCALL SDL_RenderGetClipRect(SDL_Renderer *renderer, SDL_Rect *rect)
Get the clip rectangle for the current target.
DECLSPEC int SDLCALL SDL_RenderSetViewport(SDL_Renderer *renderer, const SDL_Rect *rect)
Set the drawing area for rendering on the current target.
DECLSPEC SDL_Texture *SDLCALL SDL_GetRenderTarget(SDL_Renderer *renderer)
Get the current render target or NULL for the default render target.
DECLSPEC int SDLCALL SDL_GL_UnbindTexture(SDL_Texture *texture)
Unbind a texture from the current OpenGL/ES/ES2 context.
DECLSPEC int SDLCALL SDL_SetTextureColorMod(SDL_Texture *texture, Uint8 r, Uint8 g, Uint8 b)
Set an additional color value used in render copy operations.
GLuint GLfloat GLfloat GLfloat x1
SDL_BlendMode
The blend mode used in SDL_RenderCopy() and drawing operations.
Definition: SDL_blendmode.h:40
DECLSPEC int SDLCALL SDL_GetTextureAlphaMod(SDL_Texture *texture, Uint8 *alpha)
Get the additional alpha value used in render copy operations.
DECLSPEC int SDLCALL SDL_RenderSetScale(SDL_Renderer *renderer, float scaleX, float scaleY)
Set the drawing scale for rendering on the current target.
GLdouble GLdouble GLdouble r
Definition: SDL_opengl.h:2079
SDL_bool
Definition: SDL_stdinc.h:161
DECLSPEC int SDLCALL SDL_RenderDrawPointsF(SDL_Renderer *renderer, const SDL_FPoint *points, int count)
Draw multiple points on the current rendering target.
GLint GLint GLsizei width
Definition: SDL_opengl.h:1572
DECLSPEC int SDLCALL SDL_CreateWindowAndRenderer(int width, int height, Uint32 window_flags, SDL_Window **window, SDL_Renderer **renderer)
Create a window and default renderer.
DECLSPEC int SDLCALL SDL_RenderCopyF(SDL_Renderer *renderer, SDL_Texture *texture, const SDL_Rect *srcrect, const SDL_FRect *dstrect)
Copy a portion of the texture to the current rendering target.
GLuint GLuint GLsizei count
Definition: SDL_opengl.h:1571
SDL_RendererFlags
Flags used when creating a rendering context.
Definition: SDL_render.h:64
DECLSPEC void SDLCALL SDL_DestroyTexture(SDL_Texture *texture)
Destroy the specified texture.
DECLSPEC int SDLCALL SDL_GetRenderDrawColor(SDL_Renderer *renderer, Uint8 *r, Uint8 *g, Uint8 *b, Uint8 *a)
Get the color used for drawing operations (Rect, Line and Clear).
GLfloat GLfloat GLfloat GLfloat h
GLenum GLenum GLuint texture
DECLSPEC int SDLCALL SDL_RenderDrawRects(SDL_Renderer *renderer, const SDL_Rect *rects, int count)
Draw some number of rectangles on the current rendering target.
GLfixed GLfixed GLfixed y2
DECLSPEC int SDLCALL SDL_RenderDrawLine(SDL_Renderer *renderer, int x1, int y1, int x2, int y2)
Draw a line on the current rendering target.
The structure that defines a point (integer)
Definition: SDL_rect.h:48
A collection of pixels used in software blitting.
Definition: SDL_surface.h:70
DECLSPEC int SDLCALL SDL_RenderDrawLinesF(SDL_Renderer *renderer, const SDL_FPoint *points, int count)
Draw a series of connected lines on the current rendering target.
DECLSPEC int SDLCALL SDL_GetTextureColorMod(SDL_Texture *texture, Uint8 *r, Uint8 *g, Uint8 *b)
Get the additional color value used in render copy operations.
Uint32 texture_formats[16]
Definition: SDL_render.h:83
#define DECLSPEC
Definition: begin_code.h:74
DECLSPEC void *SDLCALL SDL_RenderGetMetalCommandEncoder(SDL_Renderer *renderer)
Get the Metal command encoder for the current frame.
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
Definition: SDL_opengl.h:1572
DECLSPEC void SDLCALL SDL_RenderGetScale(SDL_Renderer *renderer, float *scaleX, float *scaleY)
Get the drawing scale for the current target.
uint32_t Uint32
Definition: SDL_stdinc.h:203
DECLSPEC int SDLCALL SDL_GetRendererOutputSize(SDL_Renderer *renderer, int *w, int *h)
Get the output size in pixels of a rendering context.
DECLSPEC int SDLCALL SDL_RenderSetLogicalSize(SDL_Renderer *renderer, int w, int h)
Set device independent resolution for rendering.
DECLSPEC int SDLCALL SDL_RenderReadPixels(SDL_Renderer *renderer, const SDL_Rect *rect, Uint32 format, void *pixels, int pitch)
Read pixels from the current rendering target.
#define SDLCALL
Definition: begin_code.h:89
DECLSPEC int SDLCALL SDL_RenderDrawPoints(SDL_Renderer *renderer, const SDL_Point *points, int count)
Draw multiple points on the current rendering target.
const char * name
Definition: SDL_render.h:80
DECLSPEC SDL_Renderer *SDLCALL SDL_CreateRenderer(SDL_Window *window, int index, Uint32 flags)
Create a 2D rendering context for a window.
int max_texture_height
Definition: SDL_render.h:85
DECLSPEC int SDLCALL SDL_RenderDrawPoint(SDL_Renderer *renderer, int x, int y)
Draw a point on the current rendering target.
GLfixed GLfixed x2
GLfloat GLfloat GLfloat alpha
GLuint GLint GLboolean GLint GLenum access
DECLSPEC void SDLCALL SDL_UnlockTexture(SDL_Texture *texture)
Unlock a texture, uploading the changes to video memory, if needed. If SDL_LockTextureToSurface() was...
GLfixed GLfixed GLint GLint GLfixed points
DECLSPEC int SDLCALL SDL_RenderFillRectF(SDL_Renderer *renderer, const SDL_FRect *rect)
Fill a rectangle on the current rendering target with the drawing color.
GLfixed y1
DECLSPEC int SDLCALL SDL_RenderCopy(SDL_Renderer *renderer, SDL_Texture *texture, const SDL_Rect *srcrect, const SDL_Rect *dstrect)
Copy a portion of the texture to the current rendering target.
DECLSPEC int SDLCALL SDL_GetRenderDrawBlendMode(SDL_Renderer *renderer, SDL_BlendMode *blendMode)
Get the blend mode used for drawing operations.
DECLSPEC int SDLCALL SDL_SetTextureBlendMode(SDL_Texture *texture, SDL_BlendMode blendMode)
Set the blend mode used for texture copy operations.
DECLSPEC int SDLCALL SDL_RenderFillRectsF(SDL_Renderer *renderer, const SDL_FRect *rects, int count)
Fill some number of rectangles on the current rendering target with the drawing color.
DECLSPEC int SDLCALL SDL_SetRenderDrawColor(SDL_Renderer *renderer, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
Set the color used for drawing operations (Rect, Line and Clear).
DECLSPEC int SDLCALL SDL_RenderDrawRectsF(SDL_Renderer *renderer, const SDL_FRect *rects, int count)
Draw some number of rectangles on the current rendering target.
DECLSPEC int SDLCALL SDL_SetRenderTarget(SDL_Renderer *renderer, SDL_Texture *texture)
Set a texture as the current rendering target.
SDL_AudioFormat format
Definition: SDL_audio.h:194
DECLSPEC void *SDLCALL SDL_RenderGetMetalLayer(SDL_Renderer *renderer)
Get the CAMetalLayer associated with the given Metal 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)
Copy a portion of the source texture to the current rendering target, rotating it by angle around the...
DECLSPEC int SDLCALL SDL_QueryTexture(SDL_Texture *texture, Uint32 *format, int *access, int *w, int *h)
Query the attributes of a texture.
DECLSPEC int SDLCALL SDL_RenderDrawLineF(SDL_Renderer *renderer, float x1, float y1, float x2, float y2)
Draw a line on the current rendering target.
DECLSPEC SDL_Renderer *SDLCALL SDL_GetRenderer(SDL_Window *window)
Get the renderer associated with a window.
DECLSPEC SDL_Renderer *SDLCALL SDL_CreateSoftwareRenderer(SDL_Surface *surface)
Create a 2D software rendering context for a surface.
struct SDL_Renderer SDL_Renderer
Definition: SDL_render.h:122
DECLSPEC void SDLCALL SDL_RenderGetLogicalSize(SDL_Renderer *renderer, int *w, int *h)
Get device independent resolution for rendering.
DECLSPEC SDL_Texture *SDLCALL SDL_CreateTextureFromSurface(SDL_Renderer *renderer, SDL_Surface *surface)
Create a texture from an existing surface.
GLint GLint GLint GLint GLint GLint y
Definition: SDL_opengl.h:1574
struct SDL_Texture SDL_Texture
Definition: SDL_render.h:128
DECLSPEC int SDLCALL SDL_RenderDrawRectF(SDL_Renderer *renderer, const SDL_FRect *rect)
Draw a rectangle on the current rendering target.
GLuint index
SDL_RendererFlip
Flip constants for SDL_RenderCopyEx.
Definition: SDL_render.h:111
DECLSPEC int SDLCALL SDL_RenderDrawPointF(SDL_Renderer *renderer, float x, float y)
Draw a point on the current rendering target.
DECLSPEC int SDLCALL SDL_RenderClear(SDL_Renderer *renderer)
Clear the current rendering target with the drawing color.
SDL_TextureAccess
The access pattern allowed for a texture.
Definition: SDL_render.h:91
DECLSPEC SDL_bool SDLCALL SDL_RenderTargetSupported(SDL_Renderer *renderer)
Determines whether a window supports the use of render targets.
struct SDL_Window SDL_Window
The type used to identify a window.
Definition: SDL_video.h:90
DECLSPEC void SDLCALL SDL_RenderGetViewport(SDL_Renderer *renderer, SDL_Rect *rect)
Get the drawing area for the current target.
GLboolean enable
DECLSPEC int SDLCALL SDL_RenderDrawRect(SDL_Renderer *renderer, const SDL_Rect *rect)
Draw a rectangle on the current rendering target.
DECLSPEC int SDLCALL SDL_SetTextureAlphaMod(SDL_Texture *texture, Uint8 alpha)
Set an additional alpha value used in render copy operations.
struct SDL_RendererInfo SDL_RendererInfo
Information on the capabilities of a render driver or context.
DECLSPEC int SDLCALL SDL_RenderFlush(SDL_Renderer *renderer)
Force the rendering context to flush any pending commands to the underlying rendering API.
Information on the capabilities of a render driver or context.
Definition: SDL_render.h:78
DECLSPEC int SDLCALL SDL_GetTextureBlendMode(SDL_Texture *texture, SDL_BlendMode *blendMode)
Get the blend mode used for texture copy operations.
DECLSPEC int SDLCALL SDL_GetRendererInfo(SDL_Renderer *renderer, SDL_RendererInfo *info)
Get information about a rendering context.
GLboolean GLboolean GLboolean b
GLint GLint GLint GLint GLint x
Definition: SDL_opengl.h:1574
DECLSPEC int SDLCALL SDL_LockTexture(SDL_Texture *texture, const SDL_Rect *rect, void **pixels, int *pitch)
Lock a portion of the texture for write-only pixel access.
DECLSPEC int SDLCALL SDL_RenderFillRects(SDL_Renderer *renderer, const SDL_Rect *rects, int count)
Fill some number of rectangles on the current rendering target with the drawing color.
DECLSPEC int SDLCALL SDL_RenderSetClipRect(SDL_Renderer *renderer, const SDL_Rect *rect)
Set the clip rectangle for the current target.
DECLSPEC int SDLCALL SDL_LockTextureToSurface(SDL_Texture *texture, const SDL_Rect *rect, SDL_Surface **surface)
Lock a portion of the texture for write-only pixel access. Expose it as a SDL surface.
GLfloat angle
Uint32 num_texture_formats
Definition: SDL_render.h:82
DECLSPEC int SDLCALL SDL_RenderSetIntegerScale(SDL_Renderer *renderer, SDL_bool enable)
Set whether to force integer scales for resolution-independent rendering.
GLbitfield flags
DECLSPEC int SDLCALL SDL_GetNumRenderDrivers(void)
Get the number of 2D rendering drivers available for the current display.
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)
Update a rectangle within a planar YV12 or IYUV texture with new pixel data.
GLboolean GLboolean GLboolean GLboolean a
DECLSPEC SDL_Texture *SDLCALL SDL_CreateTexture(SDL_Renderer *renderer, Uint32 format, int access, int w, int h)
Create a texture for a rendering context.
GLubyte GLubyte GLubyte GLubyte w
DECLSPEC int SDLCALL SDL_GL_BindTexture(SDL_Texture *texture, float *texw, float *texh)
Bind the texture to the current OpenGL/ES/ES2 context for use with OpenGL instructions.
DECLSPEC int SDLCALL SDL_RenderFillRect(SDL_Renderer *renderer, const SDL_Rect *rect)
Fill a rectangle on the current rendering target with the drawing color.
DECLSPEC SDL_bool SDLCALL SDL_RenderGetIntegerScale(SDL_Renderer *renderer)
Get whether integer scales are forced for resolution-independent rendering.
DECLSPEC int SDLCALL SDL_RenderDrawLines(SDL_Renderer *renderer, const SDL_Point *points, int count)
Draw a series of connected lines on the current rendering target.
uint8_t Uint8
Definition: SDL_stdinc.h:179
GLboolean GLboolean g
DECLSPEC int SDLCALL SDL_GetRenderDriverInfo(int index, SDL_RendererInfo *info)
Get information about a specific 2D rendering driver for the current display.
GLint GLint GLsizei GLsizei height
Definition: SDL_opengl.h:1572
A rectangle, with the origin at the upper left (floating point).
Definition: SDL_rect.h:87
The structure that defines a point (floating point)
Definition: SDL_rect.h:60
A rectangle, with the origin at the upper left (integer).
Definition: SDL_rect.h:77
DECLSPEC void SDLCALL SDL_DestroyRenderer(SDL_Renderer *renderer)
Destroy the rendering context for a window and free associated textures.
DECLSPEC void SDLCALL SDL_RenderPresent(SDL_Renderer *renderer)
Update the screen with rendering performed.
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)
Copy a portion of the source texture to the current rendering target, rotating it by angle around the...
DECLSPEC int SDLCALL SDL_UpdateTexture(SDL_Texture *texture, const SDL_Rect *rect, const void *pixels, int pitch)
Update the given texture rectangle with new pixel data.