Go to the documentation of this file.
21 #include "../../SDL_internal.h"
23 #if !SDL_RENDER_DISABLED
37 if (
dst->format->BitsPerPixel < 8) {
38 return SDL_SetError(
"SDL_DrawPoint(): Unsupported surface format");
43 x >= (
dst->clip_rect.x +
dst->clip_rect.w) ||
44 y >= (
dst->clip_rect.y +
dst->clip_rect.h)) {
48 switch (
dst->format->BytesPerPixel) {
78 if (
dst->format->BitsPerPixel < 8) {
79 return SDL_SetError(
"SDL_DrawPoints(): Unsupported surface format");
82 minx =
dst->clip_rect.x;
83 maxx =
dst->clip_rect.x +
dst->clip_rect.w - 1;
84 miny =
dst->clip_rect.y;
85 maxy =
dst->clip_rect.y +
dst->clip_rect.h - 1;
95 switch (
dst->format->BytesPerPixel) {
#define DRAW_FASTSETPIXELXY1(x, y)
GLfixed GLfixed GLint GLint GLfixed points
int SDL_DrawPoint(SDL_Surface *dst, int x, int y, Uint32 color)
A collection of pixels used in software blitting.
GLuint GLuint GLsizei count
int SDL_DrawPoints(SDL_Surface *dst, const SDL_Point *points, int count, Uint32 color)
#define DRAW_FASTSETPIXELXY2(x, y)
GLint GLint GLint GLint GLint x
#define DRAW_FASTSETPIXELXY4(x, y)
GLint GLint GLint GLint GLint GLint y
The structure that defines a point (integer)
#define SDL_Unsupported()
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)