World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
SDL_render.h
См. документацию.
1 /*
2  Simple DirectMedia Layer
3  Copyright (C) 1997-2020 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 {
117 
121 typedef enum
122 {
123  SDL_FLIP_NONE = 0x00000000,
124  SDL_FLIP_HORIZONTAL = 0x00000001,
125  SDL_FLIP_VERTICAL = 0x00000002
127 
131 struct SDL_Renderer;
132 typedef struct SDL_Renderer SDL_Renderer;
133 
137 struct SDL_Texture;
138 typedef struct SDL_Texture SDL_Texture;
139 
140 
141 /* Function prototypes */
142 
154 extern DECLSPEC int SDLCALL SDL_GetNumRenderDrivers(void);
155 
168 extern DECLSPEC int SDLCALL SDL_GetRenderDriverInfo(int index,
169  SDL_RendererInfo * info);
170 
182 extern DECLSPEC int SDLCALL SDL_CreateWindowAndRenderer(
183  int width, int height, Uint32 window_flags,
184  SDL_Window **window, SDL_Renderer **renderer);
185 
186 
201 extern DECLSPEC SDL_Renderer * SDLCALL SDL_CreateRenderer(SDL_Window * window,
202  int index, Uint32 flags);
203 
214 extern DECLSPEC SDL_Renderer * SDLCALL SDL_CreateSoftwareRenderer(SDL_Surface * surface);
215 
219 extern DECLSPEC SDL_Renderer * SDLCALL SDL_GetRenderer(SDL_Window * window);
220 
224 extern DECLSPEC int SDLCALL SDL_GetRendererInfo(SDL_Renderer * renderer,
225  SDL_RendererInfo * info);
226 
230 extern DECLSPEC int SDLCALL SDL_GetRendererOutputSize(SDL_Renderer * renderer,
231  int *w, int *h);
232 
252 extern DECLSPEC SDL_Texture * SDLCALL SDL_CreateTexture(SDL_Renderer * renderer,
253  Uint32 format,
254  int access, int w,
255  int h);
256 
270 extern DECLSPEC SDL_Texture * SDLCALL SDL_CreateTextureFromSurface(SDL_Renderer * renderer, SDL_Surface * surface);
271 
285 extern DECLSPEC int SDLCALL SDL_QueryTexture(SDL_Texture * texture,
286  Uint32 * format, int *access,
287  int *w, int *h);
288 
302 extern DECLSPEC int SDLCALL SDL_SetTextureColorMod(SDL_Texture * texture,
303  Uint8 r, Uint8 g, Uint8 b);
304 
305 
318 extern DECLSPEC int SDLCALL SDL_GetTextureColorMod(SDL_Texture * texture,
319  Uint8 * r, Uint8 * g,
320  Uint8 * b);
321 
333 extern DECLSPEC int SDLCALL SDL_SetTextureAlphaMod(SDL_Texture * texture,
334  Uint8 alpha);
335 
346 extern DECLSPEC int SDLCALL SDL_GetTextureAlphaMod(SDL_Texture * texture,
347  Uint8 * alpha);
348 
363 extern DECLSPEC int SDLCALL SDL_SetTextureBlendMode(SDL_Texture * texture,
364  SDL_BlendMode blendMode);
365 
376 extern DECLSPEC int SDLCALL SDL_GetTextureBlendMode(SDL_Texture * texture,
377  SDL_BlendMode *blendMode);
378 
392 extern DECLSPEC int SDLCALL SDL_SetTextureScaleMode(SDL_Texture * texture,
393  SDL_ScaleMode scaleMode);
394 
405 extern DECLSPEC int SDLCALL SDL_GetTextureScaleMode(SDL_Texture * texture,
406  SDL_ScaleMode *scaleMode);
407 
424 extern DECLSPEC int SDLCALL SDL_UpdateTexture(SDL_Texture * texture,
425  const SDL_Rect * rect,
426  const void *pixels, int pitch);
427 
447 extern DECLSPEC int SDLCALL SDL_UpdateYUVTexture(SDL_Texture * texture,
448  const SDL_Rect * rect,
449  const Uint8 *Yplane, int Ypitch,
450  const Uint8 *Uplane, int Upitch,
451  const Uint8 *Vplane, int Vpitch);
452 
468 extern DECLSPEC int SDLCALL SDL_LockTexture(SDL_Texture * texture,
469  const SDL_Rect * rect,
470  void **pixels, int *pitch);
471 
487 extern DECLSPEC int SDLCALL SDL_LockTextureToSurface(SDL_Texture *texture,
488  const SDL_Rect *rect,
489  SDL_Surface **surface);
490 
498 extern DECLSPEC void SDLCALL SDL_UnlockTexture(SDL_Texture * texture);
499 
507 extern DECLSPEC SDL_bool SDLCALL SDL_RenderTargetSupported(SDL_Renderer *renderer);
508 
519 extern DECLSPEC int SDLCALL SDL_SetRenderTarget(SDL_Renderer *renderer,
521 
529 extern DECLSPEC SDL_Texture * SDLCALL SDL_GetRenderTarget(SDL_Renderer *renderer);
530 
554 extern DECLSPEC int SDLCALL SDL_RenderSetLogicalSize(SDL_Renderer * renderer, int w, int h);
555 
565 extern DECLSPEC void SDLCALL SDL_RenderGetLogicalSize(SDL_Renderer * renderer, int *w, int *h);
566 
579 extern DECLSPEC int SDLCALL SDL_RenderSetIntegerScale(SDL_Renderer * renderer,
580  SDL_bool enable);
581 
589 extern DECLSPEC SDL_bool SDLCALL SDL_RenderGetIntegerScale(SDL_Renderer * renderer);
590 
606 extern DECLSPEC int SDLCALL SDL_RenderSetViewport(SDL_Renderer * renderer,
607  const SDL_Rect * rect);
608 
614 extern DECLSPEC void SDLCALL SDL_RenderGetViewport(SDL_Renderer * renderer,
615  SDL_Rect * rect);
616 
628 extern DECLSPEC int SDLCALL SDL_RenderSetClipRect(SDL_Renderer * renderer,
629  const SDL_Rect * rect);
630 
640 extern DECLSPEC void SDLCALL SDL_RenderGetClipRect(SDL_Renderer * renderer,
641  SDL_Rect * rect);
642 
650 extern DECLSPEC SDL_bool SDLCALL SDL_RenderIsClipEnabled(SDL_Renderer * renderer);
651 
652 
671 extern DECLSPEC int SDLCALL SDL_RenderSetScale(SDL_Renderer * renderer,
672  float scaleX, float scaleY);
673 
683 extern DECLSPEC void SDLCALL SDL_RenderGetScale(SDL_Renderer * renderer,
684  float *scaleX, float *scaleY);
685 
698 extern DECLSPEC int SDLCALL SDL_SetRenderDrawColor(SDL_Renderer * renderer,
699  Uint8 r, Uint8 g, Uint8 b,
700  Uint8 a);
701 
714 extern DECLSPEC int SDLCALL SDL_GetRenderDrawColor(SDL_Renderer * renderer,
715  Uint8 * r, Uint8 * g, Uint8 * b,
716  Uint8 * a);
717 
731 extern DECLSPEC int SDLCALL SDL_SetRenderDrawBlendMode(SDL_Renderer * renderer,
732  SDL_BlendMode blendMode);
733 
744 extern DECLSPEC int SDLCALL SDL_GetRenderDrawBlendMode(SDL_Renderer * renderer,
745  SDL_BlendMode *blendMode);
746 
755 extern DECLSPEC int SDLCALL SDL_RenderClear(SDL_Renderer * renderer);
756 
766 extern DECLSPEC int SDLCALL SDL_RenderDrawPoint(SDL_Renderer * renderer,
767  int x, int y);
768 
778 extern DECLSPEC int SDLCALL SDL_RenderDrawPoints(SDL_Renderer * renderer,
779  const SDL_Point * points,
780  int count);
781 
793 extern DECLSPEC int SDLCALL SDL_RenderDrawLine(SDL_Renderer * renderer,
794  int x1, int y1, int x2, int y2);
795 
805 extern DECLSPEC int SDLCALL SDL_RenderDrawLines(SDL_Renderer * renderer,
806  const SDL_Point * points,
807  int count);
808 
817 extern DECLSPEC int SDLCALL SDL_RenderDrawRect(SDL_Renderer * renderer,
818  const SDL_Rect * rect);
819 
829 extern DECLSPEC int SDLCALL SDL_RenderDrawRects(SDL_Renderer * renderer,
830  const SDL_Rect * rects,
831  int count);
832 
842 extern DECLSPEC int SDLCALL SDL_RenderFillRect(SDL_Renderer * renderer,
843  const SDL_Rect * rect);
844 
854 extern DECLSPEC int SDLCALL SDL_RenderFillRects(SDL_Renderer * renderer,
855  const SDL_Rect * rects,
856  int count);
857 
870 extern DECLSPEC int SDLCALL SDL_RenderCopy(SDL_Renderer * renderer,
872  const SDL_Rect * srcrect,
873  const SDL_Rect * dstrect);
874 
890 extern DECLSPEC int SDLCALL SDL_RenderCopyEx(SDL_Renderer * renderer,
892  const SDL_Rect * srcrect,
893  const SDL_Rect * dstrect,
894  const double angle,
895  const SDL_Point *center,
896  const SDL_RendererFlip flip);
897 
898 
908 extern DECLSPEC int SDLCALL SDL_RenderDrawPointF(SDL_Renderer * renderer,
909  float x, float y);
910 
920 extern DECLSPEC int SDLCALL SDL_RenderDrawPointsF(SDL_Renderer * renderer,
921  const SDL_FPoint * points,
922  int count);
923 
935 extern DECLSPEC int SDLCALL SDL_RenderDrawLineF(SDL_Renderer * renderer,
936  float x1, float y1, float x2, float y2);
937 
947 extern DECLSPEC int SDLCALL SDL_RenderDrawLinesF(SDL_Renderer * renderer,
948  const SDL_FPoint * points,
949  int count);
950 
959 extern DECLSPEC int SDLCALL SDL_RenderDrawRectF(SDL_Renderer * renderer,
960  const SDL_FRect * rect);
961 
971 extern DECLSPEC int SDLCALL SDL_RenderDrawRectsF(SDL_Renderer * renderer,
972  const SDL_FRect * rects,
973  int count);
974 
984 extern DECLSPEC int SDLCALL SDL_RenderFillRectF(SDL_Renderer * renderer,
985  const SDL_FRect * rect);
986 
996 extern DECLSPEC int SDLCALL SDL_RenderFillRectsF(SDL_Renderer * renderer,
997  const SDL_FRect * rects,
998  int count);
999 
1012 extern DECLSPEC int SDLCALL SDL_RenderCopyF(SDL_Renderer * renderer,
1013  SDL_Texture * texture,
1014  const SDL_Rect * srcrect,
1015  const SDL_FRect * dstrect);
1016 
1032 extern DECLSPEC int SDLCALL SDL_RenderCopyExF(SDL_Renderer * renderer,
1033  SDL_Texture * texture,
1034  const SDL_Rect * srcrect,
1035  const SDL_FRect * dstrect,
1036  const double angle,
1037  const SDL_FPoint *center,
1038  const SDL_RendererFlip flip);
1039 
1055 extern DECLSPEC int SDLCALL SDL_RenderReadPixels(SDL_Renderer * renderer,
1056  const SDL_Rect * rect,
1057  Uint32 format,
1058  void *pixels, int pitch);
1059 
1063 extern DECLSPEC void SDLCALL SDL_RenderPresent(SDL_Renderer * renderer);
1064 
1071 extern DECLSPEC void SDLCALL SDL_DestroyTexture(SDL_Texture * texture);
1072 
1079 extern DECLSPEC void SDLCALL SDL_DestroyRenderer(SDL_Renderer * renderer);
1080 
1104 extern DECLSPEC int SDLCALL SDL_RenderFlush(SDL_Renderer * renderer);
1105 
1106 
1117 extern DECLSPEC int SDLCALL SDL_GL_BindTexture(SDL_Texture *texture, float *texw, float *texh);
1118 
1126 extern DECLSPEC int SDLCALL SDL_GL_UnbindTexture(SDL_Texture *texture);
1127 
1137 extern DECLSPEC void *SDLCALL SDL_RenderGetMetalLayer(SDL_Renderer * renderer);
1138 
1148 extern DECLSPEC void *SDLCALL SDL_RenderGetMetalCommandEncoder(SDL_Renderer * renderer);
1149 
1150 /* Ends C function definitions when using C++ */
1151 #ifdef __cplusplus
1152 }
1153 #endif
1154 #include "close_code.h"
1155 
1156 #endif /* SDL_render_h_ */
1157 
1158 /* vi: set ts=4 sw=4 expandtab: */
SDL_RenderDrawLineF
DECLSPEC int SDLCALL SDL_RenderDrawLineF(SDL_Renderer *renderer, float x1, float y1, float x2, float y2)
Draw a line on the current rendering target.
points
GLfixed GLfixed GLint GLint GLfixed points
Definition: SDL_opengl_glext.h:4561
SDL_RenderDrawLinesF
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.
SDL_RenderSetViewport
DECLSPEC int SDLCALL SDL_RenderSetViewport(SDL_Renderer *renderer, const SDL_Rect *rect)
Set the drawing area for rendering on the current target.
SDL_RenderDrawLine
DECLSPEC int SDLCALL SDL_RenderDrawLine(SDL_Renderer *renderer, int x1, int y1, int x2, int y2)
Draw a line on the current rendering target.
SDL_RenderDrawRects
DECLSPEC int SDLCALL SDL_RenderDrawRects(SDL_Renderer *renderer, const SDL_Rect *rects, int count)
Draw some number of rectangles on the current rendering target.
SDL_Surface
A collection of pixels used in software blitting.
Definition: SDL_surface.h:70
SDL_RenderDrawPoints
DECLSPEC int SDLCALL SDL_RenderDrawPoints(SDL_Renderer *renderer, const SDL_Point *points, int count)
Draw multiple points on the current rendering target.
SDL_rect.h
SDL_TEXTUREMODULATE_COLOR
@ SDL_TEXTUREMODULATE_COLOR
Definition: SDL_render.h:114
SDL_RendererFlags
SDL_RendererFlags
Flags used when creating a rendering context.
Definition: SDL_render.h:64
SDL_RenderSetScale
DECLSPEC int SDLCALL SDL_RenderSetScale(SDL_Renderer *renderer, float scaleX, float scaleY)
Set the drawing scale for rendering on the current target.
enable
GLboolean enable
Definition: SDL_opengl_glext.h:4999
SDL_RenderCopyF
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.
SDL_SetRenderDrawColor
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).
access
GLuint GLint GLboolean GLint GLenum access
Definition: SDL_opengl_glext.h:2165
height
EGLSurface EGLint EGLint EGLint EGLint height
Definition: SDL_egl.h:1596
SDL_CreateTextureFromSurface
DECLSPEC SDL_Texture *SDLCALL SDL_CreateTextureFromSurface(SDL_Renderer *renderer, SDL_Surface *surface)
Create a texture from an existing surface.
SDL_GL_BindTexture
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.
count
GLuint GLuint GLsizei count
Definition: SDL_opengl.h:1571
SDL_RenderSetLogicalSize
DECLSPEC int SDLCALL SDL_RenderSetLogicalSize(SDL_Renderer *renderer, int w, int h)
Set device independent resolution for rendering.
SDL_GetRenderDrawColor
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).
SDL_RenderDrawLines
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.
SDL_RenderGetLogicalSize
DECLSPEC void SDLCALL SDL_RenderGetLogicalSize(SDL_Renderer *renderer, int *w, int *h)
Get device independent resolution for rendering.
SDL_RenderIsClipEnabled
DECLSPEC SDL_bool SDLCALL SDL_RenderIsClipEnabled(SDL_Renderer *renderer)
Get whether clipping is enabled on the given renderer.
SDL_RenderGetViewport
DECLSPEC void SDLCALL SDL_RenderGetViewport(SDL_Renderer *renderer, SDL_Rect *rect)
Get the drawing area for the current target.
SDL_UnlockTexture
DECLSPEC void SDLCALL SDL_UnlockTexture(SDL_Texture *texture)
Unlock a texture, uploading the changes to video memory, if needed. If SDL_LockTextureToSurface() was...
w
GLubyte GLubyte GLubyte GLubyte w
Definition: SDL_opengl_glext.h:734
texture
GLenum GLenum GLuint texture
Definition: SDL_opengl_glext.h:1181
SDL_CreateWindowAndRenderer
DECLSPEC int SDLCALL SDL_CreateWindowAndRenderer(int width, int height, Uint32 window_flags, SDL_Window **window, SDL_Renderer **renderer)
Create a window and default renderer.
SDL_RenderTargetSupported
DECLSPEC SDL_bool SDLCALL SDL_RenderTargetSupported(SDL_Renderer *renderer)
Determines whether a window supports the use of render targets.
SDL_GetRenderDrawBlendMode
DECLSPEC int SDLCALL SDL_GetRenderDrawBlendMode(SDL_Renderer *renderer, SDL_BlendMode *blendMode)
Get the blend mode used for drawing operations.
SDL_RenderGetScale
DECLSPEC void SDLCALL SDL_RenderGetScale(SDL_Renderer *renderer, float *scaleX, float *scaleY)
Get the drawing scale for the current target.
SDL_GL_UnbindTexture
DECLSPEC int SDLCALL SDL_GL_UnbindTexture(SDL_Texture *texture)
Unbind a texture from the current OpenGL/ES/ES2 context.
SDL_ScaleModeLinear
@ SDL_ScaleModeLinear
Definition: SDL_render.h:94
SDL_RenderCopyEx
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...
SDL_GetTextureColorMod
DECLSPEC int SDLCALL SDL_GetTextureColorMod(SDL_Texture *texture, Uint8 *r, Uint8 *g, Uint8 *b)
Get the additional color value used in render copy operations.
index
GLuint index
Definition: SDL_opengl_glext.h:663
x1
GLuint GLfloat GLfloat GLfloat x1
Definition: SDL_opengl_glext.h:8586
SDL_UpdateYUVTexture
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.
SDL_RenderCopyExF
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...
h
GLfloat GLfloat GLfloat GLfloat h
Definition: SDL_opengl_glext.h:1949
SDL_RenderSetClipRect
DECLSPEC int SDLCALL SDL_RenderSetClipRect(SDL_Renderer *renderer, const SDL_Rect *rect)
Set the clip rectangle for the current target.
SDL_RendererInfo
Information on the capabilities of a render driver or context.
Definition: SDL_render.h:78
close_code.h
SDL_RenderGetMetalCommandEncoder
DECLSPEC void *SDLCALL SDL_RenderGetMetalCommandEncoder(SDL_Renderer *renderer)
Get the Metal command encoder for the current frame.
SDL_TEXTUREMODULATE_NONE
@ SDL_TEXTUREMODULATE_NONE
Definition: SDL_render.h:113
SDL_RenderDrawRect
DECLSPEC int SDLCALL SDL_RenderDrawRect(SDL_Renderer *renderer, const SDL_Rect *rect)
Draw a rectangle on the current rendering target.
begin_code.h
SDL_TextureModulate
SDL_TextureModulate
The texture channel modulation used in SDL_RenderCopy().
Definition: SDL_render.h:111
format
SDL_AudioFormat format
Definition: SDL_audio.h:194
alpha
GLfloat GLfloat GLfloat alpha
Definition: SDL_opengl_glext.h:415
y
EGLSurface EGLint EGLint y
Definition: SDL_egl.h:1596
SDL_CreateRenderer
DECLSPEC SDL_Renderer *SDLCALL SDL_CreateRenderer(SDL_Window *window, int index, Uint32 flags)
Create a 2D rendering context for a window.
SDL_LockTexture
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.
SDL_RenderFillRect
DECLSPEC int SDLCALL SDL_RenderFillRect(SDL_Renderer *renderer, const SDL_Rect *rect)
Fill a rectangle on the current rendering target with the drawing color.
SDL_RENDERER_SOFTWARE
@ SDL_RENDERER_SOFTWARE
Definition: SDL_render.h:66
SDL_SetTextureAlphaMod
DECLSPEC int SDLCALL SDL_SetTextureAlphaMod(SDL_Texture *texture, Uint8 alpha)
Set an additional alpha value used in render copy operations.
SDL_RenderDrawPointsF
DECLSPEC int SDLCALL SDL_RenderDrawPointsF(SDL_Renderer *renderer, const SDL_FPoint *points, int count)
Draw multiple points on the current rendering target.
SDL_DestroyRenderer
DECLSPEC void SDLCALL SDL_DestroyRenderer(SDL_Renderer *renderer)
Destroy the rendering context for a window and free associated textures.
SDL_FPoint
The structure that defines a point (floating point)
Definition: SDL_rect.h:60
SDL_CreateTexture
DECLSPEC SDL_Texture *SDLCALL SDL_CreateTexture(SDL_Renderer *renderer, Uint32 format, int access, int w, int h)
Create a texture for a rendering context.
SDL_GetTextureAlphaMod
DECLSPEC int SDLCALL SDL_GetTextureAlphaMod(SDL_Texture *texture, Uint8 *alpha)
Get the additional alpha value used in render copy operations.
x
EGLSurface EGLint x
Definition: SDL_egl.h:1596
SDL_RenderClear
DECLSPEC int SDLCALL SDL_RenderClear(SDL_Renderer *renderer)
Clear the current rendering target with the drawing color.
surface
EGLSurface surface
Definition: SDL_egl.h:992
SDL_GetRendererOutputSize
DECLSPEC int SDLCALL SDL_GetRendererOutputSize(SDL_Renderer *renderer, int *w, int *h)
Get the output size in pixels of a rendering context.
SDL_ScaleMode
SDL_ScaleMode
The scaling mode for a texture.
Definition: SDL_render.h:91
SDL_RendererInfo::flags
Uint32 flags
Definition: SDL_render.h:81
SDL_LockTextureToSurface
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.
SDL_TEXTUREACCESS_STATIC
@ SDL_TEXTUREACCESS_STATIC
Definition: SDL_render.h:103
SDL_FLIP_NONE
@ SDL_FLIP_NONE
Definition: SDL_render.h:123
SDL_SetTextureBlendMode
DECLSPEC int SDLCALL SDL_SetTextureBlendMode(SDL_Texture *texture, SDL_BlendMode blendMode)
Set the blend mode used for texture copy operations.
SDL_FLIP_HORIZONTAL
@ SDL_FLIP_HORIZONTAL
Definition: SDL_render.h:124
SDL_RENDERER_PRESENTVSYNC
@ SDL_RENDERER_PRESENTVSYNC
Definition: SDL_render.h:69
width
EGLSurface EGLint EGLint EGLint width
Definition: SDL_egl.h:1596
SDL_RenderFillRectF
DECLSPEC int SDLCALL SDL_RenderFillRectF(SDL_Renderer *renderer, const SDL_FRect *rect)
Fill a rectangle on the current rendering target with the drawing color.
window
EGLSurface EGLNativeWindowType * window
Definition: SDL_egl.h:1580
SDL_SetTextureScaleMode
DECLSPEC int SDLCALL SDL_SetTextureScaleMode(SDL_Texture *texture, SDL_ScaleMode scaleMode)
Set the scale mode used for texture scale operations.
SDL_ScaleModeBest
@ SDL_ScaleModeBest
Definition: SDL_render.h:95
SDL_GetRenderTarget
DECLSPEC SDL_Texture *SDLCALL SDL_GetRenderTarget(SDL_Renderer *renderer)
Get the current render target or NULL for the default render target.
SDL_RenderReadPixels
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.
SDL_TEXTUREMODULATE_ALPHA
@ SDL_TEXTUREMODULATE_ALPHA
Definition: SDL_render.h:115
SDL_DestroyTexture
DECLSPEC void SDLCALL SDL_DestroyTexture(SDL_Texture *texture)
Destroy the specified texture.
SDL_GetTextureBlendMode
DECLSPEC int SDLCALL SDL_GetTextureBlendMode(SDL_Texture *texture, SDL_BlendMode *blendMode)
Get the blend mode used for texture copy operations.
SDL_RenderDrawPoint
DECLSPEC int SDLCALL SDL_RenderDrawPoint(SDL_Renderer *renderer, int x, int y)
Draw a point on the current rendering target.
SDL_SetRenderTarget
DECLSPEC int SDLCALL SDL_SetRenderTarget(SDL_Renderer *renderer, SDL_Texture *texture)
Set a texture as the current rendering target.
SDL_RenderGetIntegerScale
DECLSPEC SDL_bool SDLCALL SDL_RenderGetIntegerScale(SDL_Renderer *renderer)
Get whether integer scales are forced for resolution-independent rendering.
SDL_GetNumRenderDrivers
DECLSPEC int SDLCALL SDL_GetNumRenderDrivers(void)
Get the number of 2D rendering drivers available for the current display.
SDL_BlendMode
SDL_BlendMode
The blend mode used in SDL_RenderCopy() and drawing operations.
Definition: SDL_blendmode.h:40
SDL_RenderSetIntegerScale
DECLSPEC int SDLCALL SDL_RenderSetIntegerScale(SDL_Renderer *renderer, SDL_bool enable)
Set whether to force integer scales for resolution-independent rendering.
rects
EGLSurface EGLint * rects
Definition: SDL_egl.h:1016
SDL_RenderFillRects
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.
SDL_bool
SDL_bool
Definition: SDL_stdinc.h:161
SDL_RendererFlip
SDL_RendererFlip
Flip constants for SDL_RenderCopyEx.
Definition: SDL_render.h:121
SDL_FLIP_VERTICAL
@ SDL_FLIP_VERTICAL
Definition: SDL_render.h:125
SDL_ScaleModeNearest
@ SDL_ScaleModeNearest
Definition: SDL_render.h:93
b
GLboolean GLboolean GLboolean b
Definition: SDL_opengl_glext.h:1112
SDL_RenderDrawRectF
DECLSPEC int SDLCALL SDL_RenderDrawRectF(SDL_Renderer *renderer, const SDL_FRect *rect)
Draw a rectangle on the current rendering target.
SDL_Point
The structure that defines a point (integer)
Definition: SDL_rect.h:48
r
GLdouble GLdouble GLdouble r
Definition: SDL_opengl.h:2079
SDL_RENDERER_TARGETTEXTURE
@ SDL_RENDERER_TARGETTEXTURE
Definition: SDL_render.h:71
x2
GLfixed GLfixed x2
Definition: SDL_opengl_glext.h:4586
Uint8
uint8_t Uint8
Definition: SDL_stdinc.h:179
SDL_GetRenderDriverInfo
DECLSPEC int SDLCALL SDL_GetRenderDriverInfo(int index, SDL_RendererInfo *info)
Get information about a specific 2D rendering driver for the current display.
SDL_Window
struct SDL_Window SDL_Window
The type used to identify a window.
Definition: SDL_video.h:90
SDL_Rect
A rectangle, with the origin at the upper left (integer).
Definition: SDL_rect.h:77
SDL_RendererInfo::max_texture_width
int max_texture_width
Definition: SDL_render.h:84
SDL_CreateSoftwareRenderer
DECLSPEC SDL_Renderer *SDLCALL SDL_CreateSoftwareRenderer(SDL_Surface *surface)
Create a 2D software rendering context for a surface.
SDL_stdinc.h
SDL_RenderGetClipRect
DECLSPEC void SDLCALL SDL_RenderGetClipRect(SDL_Renderer *renderer, SDL_Rect *rect)
Get the clip rectangle for the current target.
SDL_RenderDrawPointF
DECLSPEC int SDLCALL SDL_RenderDrawPointF(SDL_Renderer *renderer, float x, float y)
Draw a point on the current rendering target.
SDL_TEXTUREACCESS_TARGET
@ SDL_TEXTUREACCESS_TARGET
Definition: SDL_render.h:105
Uint32
uint32_t Uint32
Definition: SDL_stdinc.h:203
y1
GLfixed y1
Definition: SDL_opengl_glext.h:4586
SDL_RenderDrawRectsF
DECLSPEC int SDLCALL SDL_RenderDrawRectsF(SDL_Renderer *renderer, const SDL_FRect *rects, int count)
Draw some number of rectangles on the current rendering target.
SDL_RenderFillRectsF
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.
SDL_RenderFlush
DECLSPEC int SDLCALL SDL_RenderFlush(SDL_Renderer *renderer)
Force the rendering context to flush any pending commands to the underlying rendering API.
flags
EGLSyncKHR EGLint flags
Definition: SDL_egl.h:898
SDL_FRect
A rectangle, with the origin at the upper left (floating point).
Definition: SDL_rect.h:87
y2
GLfixed GLfixed GLfixed y2
Definition: SDL_opengl_glext.h:4586
angle
GLfloat angle
Definition: SDL_opengl_glext.h:6100
SDL_SetTextureColorMod
DECLSPEC int SDLCALL SDL_SetTextureColorMod(SDL_Texture *texture, Uint8 r, Uint8 g, Uint8 b)
Set an additional color value used in render copy operations.
SDL_QueryTexture
DECLSPEC int SDLCALL SDL_QueryTexture(SDL_Texture *texture, Uint32 *format, int *access, int *w, int *h)
Query the attributes of a texture.
SDL_RendererInfo::name
const char * name
Definition: SDL_render.h:80
a
GLboolean GLboolean GLboolean GLboolean a
Definition: SDL_opengl_glext.h:1112
SDL_video.h
SDL_Renderer
struct SDL_Renderer SDL_Renderer
Definition: SDL_render.h:132
SDL_RendererInfo
struct SDL_RendererInfo SDL_RendererInfo
Information on the capabilities of a render driver or context.
SDL_RENDERER_ACCELERATED
@ SDL_RENDERER_ACCELERATED
Definition: SDL_render.h:67
SDL_RendererInfo::texture_formats
Uint32 texture_formats[16]
Definition: SDL_render.h:83
SDL_RendererInfo::max_texture_height
int max_texture_height
Definition: SDL_render.h:85
SDL_GetRendererInfo
DECLSPEC int SDLCALL SDL_GetRendererInfo(SDL_Renderer *renderer, SDL_RendererInfo *info)
Get information about a rendering context.
SDL_UpdateTexture
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.
SDL_TEXTUREACCESS_STREAMING
@ SDL_TEXTUREACCESS_STREAMING
Definition: SDL_render.h:104
SDL_GetTextureScaleMode
DECLSPEC int SDLCALL SDL_GetTextureScaleMode(SDL_Texture *texture, SDL_ScaleMode *scaleMode)
Get the scale mode used for texture scale operations.
g
GLboolean GLboolean g
Definition: SDL_opengl_glext.h:1112
SDL_TextureAccess
SDL_TextureAccess
The access pattern allowed for a texture.
Definition: SDL_render.h:101
pixels
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
Definition: SDL_opengl.h:1572
SDL_RenderGetMetalLayer
DECLSPEC void *SDLCALL SDL_RenderGetMetalLayer(SDL_Renderer *renderer)
Get the CAMetalLayer associated with the given Metal renderer.
SDL_GetRenderer
DECLSPEC SDL_Renderer *SDLCALL SDL_GetRenderer(SDL_Window *window)
Get the renderer associated with a window.
SDL_RenderCopy
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.
SDL_Texture
struct SDL_Texture SDL_Texture
Definition: SDL_render.h:138
SDL_RenderPresent
DECLSPEC void SDLCALL SDL_RenderPresent(SDL_Renderer *renderer)
Update the screen with rendering performed.
SDL_SetRenderDrawBlendMode
DECLSPEC int SDLCALL SDL_SetRenderDrawBlendMode(SDL_Renderer *renderer, SDL_BlendMode blendMode)
Set the blend mode used for drawing operations (Fill and Line).
SDL_RendererInfo::num_texture_formats
Uint32 num_texture_formats
Definition: SDL_render.h:82