zenilib
0.5.3.0
|
Go to the source code of this file.
Typedefs | |
typedef void(* | DrawLineFunc )(SDL_Surface *dst, int x1, int y1, int x2, int y2, Uint32 color, SDL_bool draw_end) |
Functions | |
static DrawLineFunc | SDL_CalculateDrawLineFunc (const SDL_PixelFormat *fmt) |
int | SDL_DrawLine (SDL_Surface *dst, int x1, int y1, int x2, int y2, Uint32 color) |
static void | SDL_DrawLine1 (SDL_Surface *dst, int x1, int y1, int x2, int y2, Uint32 color, SDL_bool draw_end) |
static void | SDL_DrawLine2 (SDL_Surface *dst, int x1, int y1, int x2, int y2, Uint32 color, SDL_bool draw_end) |
static void | SDL_DrawLine4 (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) |
typedef void(* DrawLineFunc)(SDL_Surface *dst, int x1, int y1, int x2, int y2, Uint32 color, SDL_bool draw_end) |
Definition at line 120 of file SDL_drawline.c.
|
static |
Definition at line 125 of file SDL_drawline.c.
References SDL_PixelFormat::BitsPerPixel, SDL_PixelFormat::BytesPerPixel, NULL, SDL_DrawLine1(), SDL_DrawLine2(), and SDL_DrawLine4().
Referenced by SDL_DrawLine(), and SDL_DrawLines().
Definition at line 142 of file SDL_drawline.c.
References SDL_Surface::clip_rect, SDL_Surface::format, SDL_CalculateDrawLineFunc(), SDL_IntersectRectAndLine(), SDL_SetError(), and SDL_TRUE.
|
static |
Definition at line 31 of file SDL_drawline.c.
References ABS, BLINE, SDL_PixelFormat::BytesPerPixel, DLINE, DRAW_FASTSETPIXEL1, DRAW_FASTSETPIXELXY1, SDL_Surface::format, if(), SDL_Surface::pitch, SDL_Surface::pixels, SDL_memset(), and VLINE.
Referenced by SDL_CalculateDrawLineFunc().
|
static |
Definition at line 59 of file SDL_drawline.c.
References AALINE, ABS, DLINE, DRAW_FASTSETPIXEL2, DRAW_FASTSETPIXELXY2, DRAW_SETPIXELXY2_BLEND_RGB, DRAW_SETPIXELXY_BLEND_RGB555, DRAW_SETPIXELXY_BLEND_RGB565, SDL_Surface::format, HLINE, SDL_PixelFormat::Rmask, SDL_GetRGBA(), and VLINE.
Referenced by SDL_CalculateDrawLineFunc().
|
static |
Definition at line 89 of file SDL_drawline.c.
References AALINE, ABS, SDL_PixelFormat::Amask, DLINE, DRAW_FASTSETPIXEL4, DRAW_FASTSETPIXELXY4, DRAW_SETPIXELXY4_BLEND_RGB, DRAW_SETPIXELXY_BLEND_ARGB8888, DRAW_SETPIXELXY_BLEND_RGB888, SDL_Surface::format, HLINE, SDL_PixelFormat::Rmask, SDL_GetRGBA(), and VLINE.
Referenced by SDL_CalculateDrawLineFunc().
Definition at line 166 of file SDL_drawline.c.
References SDL_Surface::clip_rect, SDL_Surface::format, i, SDL_CalculateDrawLineFunc(), SDL_DrawPoint(), SDL_IntersectRectAndLine(), SDL_SetError(), SDL_Point::x, and SDL_Point::y.
Referenced by SW_RenderDrawLines().