21#include "../../SDL_internal.h"
23#if !SDL_RENDER_DISABLED
36 int pitch = (
dst->pitch /
dst->format->BytesPerPixel);
49 }
else if (
x1 ==
x2) {
64 }
else if (
x1 ==
x2) {
72 if (fmt->
Rmask == 0x7C00) {
76 }
else if (fmt->
Rmask == 0xF800) {
94 }
else if (
x1 ==
x2) {
102 if (fmt->
Rmask == 0x00FF0000) {
147 return SDL_SetError(
"SDL_DrawLine(): Passed NULL destination surface");
152 return SDL_SetError(
"SDL_DrawLine(): Unsupported surface format");
176 return SDL_SetError(
"SDL_DrawLines(): Passed NULL destination surface");
181 return SDL_SetError(
"SDL_DrawLines(): Unsupported surface format");
#define HLINE(type, op, draw_end)
#define DRAW_FASTSETPIXEL2
#define DRAW_SETPIXELXY_BLEND_RGB888(x, y)
#define DRAW_FASTSETPIXELXY4(x, y)
#define DRAW_SETPIXELXY2_BLEND_RGB(x, y)
#define AALINE(x1, y1, x2, y2, opaque_op, blend_op, draw_end)
#define BLINE(x1, y1, x2, y2, op, draw_end)
#define DRAW_FASTSETPIXELXY2(x, y)
#define DRAW_SETPIXELXY_BLEND_RGB565(x, y)
#define DLINE(type, op, draw_end)
#define DRAW_FASTSETPIXEL1
#define DRAW_FASTSETPIXELXY1(x, y)
#define DRAW_SETPIXELXY_BLEND_RGB555(x, y)
#define DRAW_SETPIXELXY_BLEND_ARGB8888(x, y)
#define DRAW_SETPIXELXY4_BLEND_RGB(x, y)
#define DRAW_FASTSETPIXEL4
#define VLINE(type, op, draw_end)
int SDL_DrawLine(SDL_Surface *dst, int x1, int y1, int x2, int y2, Uint32 color)
static DrawLineFunc SDL_CalculateDrawLineFunc(const SDL_PixelFormat *fmt)
static void SDL_DrawLine2(SDL_Surface *dst, int x1, int y1, int x2, int y2, Uint32 color, SDL_bool draw_end)
int SDL_DrawLines(SDL_Surface *dst, const SDL_Point *points, int count, Uint32 color)
static void SDL_DrawLine4(SDL_Surface *dst, int x1, int y1, int x2, int y2, Uint32 color, SDL_bool draw_end)
static void SDL_DrawLine1(SDL_Surface *dst, int x1, int y1, int x2, int y2, Uint32 color, SDL_bool draw_end)
void(* DrawLineFunc)(SDL_Surface *dst, int x1, int y1, int x2, int y2, Uint32 color, SDL_bool draw_end)
int SDL_DrawPoint(SDL_Surface *dst, int x, int y, Uint32 color)
#define SDL_IntersectRectAndLine
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 void
GLint GLint GLint GLint GLint GLint y
GLuint GLuint GLsizei count
GLint GLint GLint GLint GLint x
GLfixed GLfixed GLint GLint GLfixed points
GLfixed GLfixed GLfixed y2
GLuint GLfloat GLfloat GLfloat x1
GLuint GLsizei GLsizei * length
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)
The structure that defines a point (integer)
A collection of pixels used in software blitting.