142typedef struct SDL_Renderer SDL_Renderer;
148typedef struct SDL_Texture SDL_Texture;
206 int width,
int height, Uint32 window_flags,
207 SDL_Window **window, SDL_Renderer **renderer);
228 int index, Uint32 flags);
387 Uint32 * format,
int *access,
415 Uint8 r, Uint8 g, Uint8 b);
434 Uint8 * r, Uint8 * g,
599 const void *pixels,
int pitch);
630 const Uint8 *Yplane,
int Ypitch,
631 const Uint8 *Uplane,
int Upitch,
632 const Uint8 *Vplane,
int Vpitch);
656 const Uint8 *Yplane,
int Ypitch,
657 const Uint8 *UVplane,
int UVpitch);
688 void **pixels,
int *pitch);
780 SDL_Texture *texture);
983 float scaleX,
float scaleY);
997 float *scaleX,
float *scaleY);
1021 int windowX,
int windowY,
1022 float *logicalX,
float *logicalY);
1047 float logicalX,
float logicalY,
1048 int *windowX,
int *windowY);
1080 Uint8 r, Uint8 g, Uint8 b,
1103 Uint8 * r, Uint8 * g, Uint8 * b,
1245 int x1,
int y1,
int x2,
int y2);
1410 SDL_Texture * texture,
1454 SDL_Texture * texture,
1502 float x1,
float y1,
float x2,
float y2);
1591 SDL_Texture * texture,
1617 SDL_Texture * texture,
1645 SDL_Texture *texture,
1646 const SDL_Vertex *vertices,
int num_vertices,
1647 const int *indices,
int num_indices);
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,
1680 const void *indices,
int num_indices,
int size_indices);
1711 void *pixels,
int pitch);
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