Go to the source code of this file.
◆ SDL_DrawPoint()
Definition at line 30 of file SDL_drawpoint.c.
31{
34 }
35
36
37 if (
dst->format->BitsPerPixel < 8) {
38 return SDL_SetError(
"SDL_DrawPoint(): Unsupported surface format");
39 }
40
41
43 x >= (
dst->clip_rect.x +
dst->clip_rect.w) ||
44 y >= (
dst->clip_rect.y +
dst->clip_rect.h)) {
45 return 0;
46 }
47
48 switch (
dst->format->BytesPerPixel) {
49 case 1:
51 break;
52 case 2:
54 break;
55 case 3:
57 case 4:
59 break;
60 }
61 return 0;
62}
#define DRAW_FASTSETPIXELXY4(x, y)
#define DRAW_FASTSETPIXELXY2(x, y)
#define DRAW_FASTSETPIXELXY1(x, y)
#define SDL_Unsupported()
GLint GLint GLint GLint GLint GLint y
GLint GLint GLint GLint GLint x
References DRAW_FASTSETPIXELXY1, DRAW_FASTSETPIXELXY2, DRAW_FASTSETPIXELXY4, SDL_SetError, and SDL_Unsupported.
Referenced by SDL_DrawLines().
◆ SDL_DrawPoints()
Definition at line 65 of file SDL_drawpoint.c.
67{
68 int minx, miny;
69 int maxx, maxy;
72
75 }
76
77
78 if (
dst->format->BitsPerPixel < 8) {
79 return SDL_SetError(
"SDL_DrawPoints(): Unsupported surface format");
80 }
81
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;
86
90
92 continue;
93 }
94
95 switch (
dst->format->BytesPerPixel) {
96 case 1:
98 break;
99 case 2:
101 break;
102 case 3:
104 case 4:
106 break;
107 }
108 }
109 return 0;
110}
GLuint GLuint GLsizei count
GLfixed GLfixed GLint GLint GLfixed points
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)
References DRAW_FASTSETPIXELXY1, DRAW_FASTSETPIXELXY2, DRAW_FASTSETPIXELXY4, i, SDL_SetError, and SDL_Unsupported.
Referenced by SW_RunCommandQueue().