Go to the source code of this file.
◆ SDL_DrawLine()
Definition at line 142 of file SDL_drawline.c.
143{
145
147 return SDL_SetError(
"SDL_DrawLine(): Passed NULL destination surface");
148 }
149
152 return SDL_SetError(
"SDL_DrawLine(): Unsupported surface format");
153 }
154
155
156
158 return 0;
159 }
160
162 return 0;
163}
static DrawLineFunc SDL_CalculateDrawLineFunc(const SDL_PixelFormat *fmt)
void(* DrawLineFunc)(SDL_Surface *dst, int x1, int y1, int x2, int y2, Uint32 color, SDL_bool draw_end)
#define SDL_IntersectRectAndLine
GLfixed GLfixed GLfixed y2
GLuint GLfloat GLfloat GLfloat x1
References SDL_CalculateDrawLineFunc(), SDL_IntersectRectAndLine, SDL_SetError, and SDL_TRUE.
◆ SDL_DrawLines()
Definition at line 166 of file SDL_drawline.c.
168{
174
176 return SDL_SetError(
"SDL_DrawLines(): Passed NULL destination surface");
177 }
178
181 return SDL_SetError(
"SDL_DrawLines(): Unsupported surface format");
182 }
183
189
190
191
193 continue;
194 }
195
196
198
200 }
203 }
204 return 0;
205}
int SDL_DrawPoint(SDL_Surface *dst, int x, int y, Uint32 color)
GLint GLint GLint GLint GLint GLint y
GLuint GLuint GLsizei count
GLint GLint GLint GLint GLint x
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 i, SDL_CalculateDrawLineFunc(), SDL_DrawPoint(), SDL_IntersectRectAndLine, and SDL_SetError.
Referenced by SW_RunCommandQueue().