zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SDL_draw.h File Reference
#include "SDL_config.h"
#include "../../video/SDL_blit.h"

Go to the source code of this file.

Macros

#define AALINE(x1, y1, x2, y2, opaque_op, blend_op, draw_end)   BLINE(x1, y1, x2, y2, opaque_op, draw_end)
 
#define ABS(_x)   ((_x) < 0 ? -(_x) : (_x))
 
#define BLINE(x1, y1, x2, y2, op, draw_end)
 
#define DLINE(type, op, draw_end)
 
#define DRAW_FASTSETPIXEL(type)   *pixel = (type) color
 
#define DRAW_FASTSETPIXEL1   DRAW_FASTSETPIXEL(Uint8)
 
#define DRAW_FASTSETPIXEL2   DRAW_FASTSETPIXEL(Uint16)
 
#define DRAW_FASTSETPIXEL4   DRAW_FASTSETPIXEL(Uint32)
 
#define DRAW_FASTSETPIXELXY(x, y, type, bpp, color)
 
#define DRAW_FASTSETPIXELXY1(x, y)   DRAW_FASTSETPIXELXY(x, y, Uint8, 1, color)
 
#define DRAW_FASTSETPIXELXY2(x, y)   DRAW_FASTSETPIXELXY(x, y, Uint16, 2, color)
 
#define DRAW_FASTSETPIXELXY4(x, y)   DRAW_FASTSETPIXELXY(x, y, Uint32, 4, color)
 
#define DRAW_MUL(_a, _b)   (((unsigned)(_a)*(_b))/255)
 
#define DRAW_SETPIXEL(setpixel)
 
#define DRAW_SETPIXEL_ADD(getpixel, setpixel)
 
#define DRAW_SETPIXEL_ADD_ARGB8888
 
#define DRAW_SETPIXEL_ADD_RGB
 
#define DRAW_SETPIXEL_ADD_RGB555
 
#define DRAW_SETPIXEL_ADD_RGB565
 
#define DRAW_SETPIXEL_ADD_RGB888
 
#define DRAW_SETPIXEL_ADD_RGBA
 
#define DRAW_SETPIXEL_ARGB8888   DRAW_SETPIXEL(ARGB8888_FROM_RGBA(*pixel, sr, sg, sb, sa))
 
#define DRAW_SETPIXEL_BLEND(getpixel, setpixel)
 
#define DRAW_SETPIXEL_BLEND_ARGB8888
 
#define DRAW_SETPIXEL_BLEND_RGB
 
#define DRAW_SETPIXEL_BLEND_RGB555
 
#define DRAW_SETPIXEL_BLEND_RGB565
 
#define DRAW_SETPIXEL_BLEND_RGB888
 
#define DRAW_SETPIXEL_BLEND_RGBA
 
#define DRAW_SETPIXEL_MOD(getpixel, setpixel)
 
#define DRAW_SETPIXEL_MOD_ARGB8888
 
#define DRAW_SETPIXEL_MOD_RGB
 
#define DRAW_SETPIXEL_MOD_RGB555
 
#define DRAW_SETPIXEL_MOD_RGB565
 
#define DRAW_SETPIXEL_MOD_RGB888
 
#define DRAW_SETPIXEL_MOD_RGBA
 
#define DRAW_SETPIXEL_RGB   DRAW_SETPIXEL(PIXEL_FROM_RGB(*pixel, fmt, sr, sg, sb))
 
#define DRAW_SETPIXEL_RGB555   DRAW_SETPIXEL(RGB555_FROM_RGB(*pixel, sr, sg, sb))
 
#define DRAW_SETPIXEL_RGB565   DRAW_SETPIXEL(RGB565_FROM_RGB(*pixel, sr, sg, sb))
 
#define DRAW_SETPIXEL_RGB888   DRAW_SETPIXEL(RGB888_FROM_RGB(*pixel, sr, sg, sb))
 
#define DRAW_SETPIXEL_RGBA   DRAW_SETPIXEL(PIXEL_FROM_RGBA(*pixel, fmt, sr, sg, sb, sa))
 
#define DRAW_SETPIXELXY(x, y, type, bpp, op)
 
#define DRAW_SETPIXELXY2_ADD_RGB(x, y)   DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_ADD_RGB)
 
#define DRAW_SETPIXELXY2_BLEND_RGB(x, y)   DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_BLEND_RGB)
 
#define DRAW_SETPIXELXY2_MOD_RGB(x, y)   DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_MOD_RGB)
 
#define DRAW_SETPIXELXY2_RGB(x, y)   DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_RGB)
 
#define DRAW_SETPIXELXY4_ADD_RGB(x, y)   DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_ADD_RGB)
 
#define DRAW_SETPIXELXY4_ADD_RGBA(x, y)   DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_ADD_RGBA)
 
#define DRAW_SETPIXELXY4_BLEND_RGB(x, y)   DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_BLEND_RGB)
 
#define DRAW_SETPIXELXY4_BLEND_RGBA(x, y)   DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_BLEND_RGBA)
 
#define DRAW_SETPIXELXY4_MOD_RGB(x, y)   DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_MOD_RGB)
 
#define DRAW_SETPIXELXY4_MOD_RGBA(x, y)   DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_MOD_RGBA)
 
#define DRAW_SETPIXELXY4_RGB(x, y)   DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_RGB)
 
#define DRAW_SETPIXELXY4_RGBA(x, y)   DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_RGBA)
 
#define DRAW_SETPIXELXY_ADD_ARGB8888(x, y)   DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_ADD_ARGB8888)
 
#define DRAW_SETPIXELXY_ADD_RGB555(x, y)   DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_ADD_RGB555)
 
#define DRAW_SETPIXELXY_ADD_RGB565(x, y)   DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_ADD_RGB565)
 
#define DRAW_SETPIXELXY_ADD_RGB888(x, y)   DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_ADD_RGB888)
 
#define DRAW_SETPIXELXY_ARGB8888(x, y)   DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_ARGB8888)
 
#define DRAW_SETPIXELXY_BLEND_ARGB8888(x, y)   DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_BLEND_ARGB8888)
 
#define DRAW_SETPIXELXY_BLEND_RGB555(x, y)   DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_BLEND_RGB555)
 
#define DRAW_SETPIXELXY_BLEND_RGB565(x, y)   DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_BLEND_RGB565)
 
#define DRAW_SETPIXELXY_BLEND_RGB888(x, y)   DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_BLEND_RGB888)
 
#define DRAW_SETPIXELXY_MOD_ARGB8888(x, y)   DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_MOD_ARGB8888)
 
#define DRAW_SETPIXELXY_MOD_RGB555(x, y)   DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_MOD_RGB555)
 
#define DRAW_SETPIXELXY_MOD_RGB565(x, y)   DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_MOD_RGB565)
 
#define DRAW_SETPIXELXY_MOD_RGB888(x, y)   DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_MOD_RGB888)
 
#define DRAW_SETPIXELXY_RGB555(x, y)   DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_RGB555)
 
#define DRAW_SETPIXELXY_RGB565(x, y)   DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_RGB565)
 
#define DRAW_SETPIXELXY_RGB888(x, y)   DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_RGB888)
 
#define FILLRECT(type, op)
 
#define HLINE(type, op, draw_end)
 
#define VLINE(type, op, draw_end)
 
#define WULINE(x1, y1, x2, y2, opaque_op, blend_op, draw_end)
 

Macro Definition Documentation

#define AALINE (   x1,
  y1,
  x2,
  y2,
  opaque_op,
  blend_op,
  draw_end 
)    BLINE(x1, y1, x2, y2, opaque_op, draw_end)
#define ABS (   _x)    ((_x) < 0 ? -(_x) : (_x))

Definition at line 292 of file SDL_draw.h.

#define BLINE (   x1,
  y1,
  x2,
  y2,
  op,
  draw_end 
)

Definition at line 374 of file SDL_draw.h.

Referenced by SDL_DrawLine1().

#define DRAW_FASTSETPIXEL (   type)    *pixel = (type) color

Definition at line 31 of file SDL_draw.h.

#define DRAW_FASTSETPIXEL1   DRAW_FASTSETPIXEL(Uint8)

Definition at line 34 of file SDL_draw.h.

Referenced by SDL_DrawLine1().

#define DRAW_FASTSETPIXEL2   DRAW_FASTSETPIXEL(Uint16)

Definition at line 35 of file SDL_draw.h.

Referenced by SDL_DrawLine2().

#define DRAW_FASTSETPIXEL4   DRAW_FASTSETPIXEL(Uint32)

Definition at line 36 of file SDL_draw.h.

Referenced by SDL_DrawLine4().

#define DRAW_FASTSETPIXELXY (   x,
  y,
  type,
  bpp,
  color 
)
Value:
*(type *)((Uint8 *)dst->pixels + (y) * dst->pitch \
+ (x) * bpp) = (type) color
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum GLenum type
Definition: gl2ext.h:845
GLuint color
Definition: glew.h:7185
EGLSurface EGLint x
Definition: eglext.h:293
GLenum GLenum dst
Definition: glew.h:2396
EGLSurface EGLint EGLint y
Definition: eglext.h:293
uint8_t Uint8
An unsigned 8-bit integer type.
Definition: SDL_stdinc.h:129

Definition at line 38 of file SDL_draw.h.

#define DRAW_FASTSETPIXELXY1 (   x,
  y 
)    DRAW_FASTSETPIXELXY(x, y, Uint8, 1, color)

Definition at line 42 of file SDL_draw.h.

Referenced by SDL_DrawLine1(), SDL_DrawPoint(), and SDL_DrawPoints().

#define DRAW_FASTSETPIXELXY2 (   x,
  y 
)    DRAW_FASTSETPIXELXY(x, y, Uint16, 2, color)

Definition at line 43 of file SDL_draw.h.

Referenced by SDL_DrawLine2(), SDL_DrawPoint(), and SDL_DrawPoints().

#define DRAW_FASTSETPIXELXY4 (   x,
  y 
)    DRAW_FASTSETPIXELXY(x, y, Uint32, 4, color)

Definition at line 44 of file SDL_draw.h.

Referenced by SDL_DrawLine4(), SDL_DrawPoint(), and SDL_DrawPoints().

#define DRAW_SETPIXEL (   setpixel)
Value:
do { \
unsigned sr = r, sg = g, sb = b, sa = a; (void) sa; \
setpixel; \
} while (0)
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
Definition: glew.h:1824
GLboolean GLboolean g
Definition: glew.h:8736
GLboolean GLboolean GLboolean GLboolean a
Definition: glew.h:8736
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 46 of file SDL_draw.h.

#define DRAW_SETPIXEL_ADD (   getpixel,
  setpixel 
)
Value:
do { \
unsigned sr, sg, sb, sa; (void) sa; \
getpixel; \
sr += r; if (sr > 0xff) sr = 0xff; \
sg += g; if (sg > 0xff) sg = 0xff; \
sb += b; if (sb > 0xff) sb = 0xff; \
setpixel; \
} while (0)
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
Definition: glew.h:1824
GLboolean GLboolean g
Definition: glew.h:8736
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
GLdouble GLdouble GLdouble b
Definition: glew.h:8383

Definition at line 62 of file SDL_draw.h.

#define DRAW_SETPIXEL_ADD_ARGB8888
Value:
DRAW_SETPIXEL_ADD(RGBA_FROM_ARGB8888(*pixel, sr, sg, sb, sa), \
ARGB8888_FROM_RGBA(*pixel, sr, sg, sb, sa))
#define DRAW_SETPIXEL_ADD(getpixel, setpixel)
Definition: SDL_draw.h:62
#define RGBA_FROM_ARGB8888(Pixel, r, g, b, a)
Definition: SDL_blit.h:324
#define ARGB8888_FROM_RGBA(Pixel, r, g, b, a)
Definition: SDL_blit.h:236

Definition at line 193 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_ARGB8888(), and SDL_BlendLine_ARGB8888().

#define DRAW_SETPIXEL_ADD_RGB
Value:
DRAW_SETPIXEL_ADD(RGB_FROM_PIXEL(*pixel, fmt, sr, sg, sb), \
PIXEL_FROM_RGB(*pixel, fmt, sr, sg, sb))
#define DRAW_SETPIXEL_ADD(getpixel, setpixel)
Definition: SDL_draw.h:62
#define RGB_FROM_PIXEL(Pixel, fmt, r, g, b)
Definition: SDL_blit.h:121
#define PIXEL_FROM_RGB(Pixel, fmt, r, g, b)
Definition: SDL_blit.h:217

Definition at line 224 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_RGB(), SDL_BlendLine_RGB2(), and SDL_BlendLine_RGB4().

#define DRAW_SETPIXEL_ADD_RGB555
Value:
DRAW_SETPIXEL_ADD(RGB_FROM_RGB555(*pixel, sr, sg, sb), \
RGB555_FROM_RGB(*pixel, sr, sg, sb))
#define DRAW_SETPIXEL_ADD(getpixel, setpixel)
Definition: SDL_draw.h:62
#define RGB555_FROM_RGB(Pixel, r, g, b)
Definition: SDL_blit.h:228
#define RGB_FROM_RGB555(Pixel, r, g, b)
Definition: SDL_blit.h:133

Definition at line 100 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_RGB555(), and SDL_BlendLine_RGB555().

#define DRAW_SETPIXEL_ADD_RGB565
Value:
DRAW_SETPIXEL_ADD(RGB_FROM_RGB565(*pixel, sr, sg, sb), \
RGB565_FROM_RGB(*pixel, sr, sg, sb))
#define DRAW_SETPIXEL_ADD(getpixel, setpixel)
Definition: SDL_draw.h:62
#define RGB565_FROM_RGB(Pixel, r, g, b)
Definition: SDL_blit.h:224
#define RGB_FROM_RGB565(Pixel, r, g, b)
Definition: SDL_blit.h:127

Definition at line 131 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_RGB565(), and SDL_BlendLine_RGB565().

#define DRAW_SETPIXEL_ADD_RGB888
Value:
DRAW_SETPIXEL_ADD(RGB_FROM_RGB888(*pixel, sr, sg, sb), \
RGB888_FROM_RGB(*pixel, sr, sg, sb))
#define DRAW_SETPIXEL_ADD(getpixel, setpixel)
Definition: SDL_draw.h:62
#define RGB888_FROM_RGB(Pixel, r, g, b)
Definition: SDL_blit.h:232
#define RGB_FROM_RGB888(Pixel, r, g, b)
Definition: SDL_blit.h:139

Definition at line 162 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_RGB888(), and SDL_BlendLine_RGB888().

#define DRAW_SETPIXEL_ADD_RGBA
Value:
DRAW_SETPIXEL_ADD(RGBA_FROM_PIXEL(*pixel, fmt, sr, sg, sb, sa), \
PIXEL_FROM_RGBA(*pixel, fmt, sr, sg, sb, sa))
#define DRAW_SETPIXEL_ADD(getpixel, setpixel)
Definition: SDL_draw.h:62
#define PIXEL_FROM_RGBA(Pixel, fmt, r, g, b, a)
Definition: SDL_blit.h:394
#define RGBA_FROM_PIXEL(Pixel, fmt, r, g, b, a)
Definition: SDL_blit.h:303

Definition at line 268 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_RGBA(), and SDL_BlendLine_RGBA4().

#define DRAW_SETPIXEL_ARGB8888   DRAW_SETPIXEL(ARGB8888_FROM_RGBA(*pixel, sr, sg, sb, sa))

Definition at line 186 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_ARGB8888(), and SDL_BlendLine_ARGB8888().

#define DRAW_SETPIXEL_BLEND (   getpixel,
  setpixel 
)
Value:
do { \
unsigned sr, sg, sb, sa; (void) sa; \
getpixel; \
sr = DRAW_MUL(inva, sr) + r; \
sg = DRAW_MUL(inva, sg) + g; \
sb = DRAW_MUL(inva, sb) + b; \
setpixel; \
} while (0)
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
Definition: glew.h:1824
GLboolean GLboolean g
Definition: glew.h:8736
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
GLdouble GLdouble GLdouble b
Definition: glew.h:8383
#define DRAW_MUL(_a, _b)
Definition: SDL_draw.h:29

Definition at line 52 of file SDL_draw.h.

#define DRAW_SETPIXEL_BLEND_ARGB8888
Value:
DRAW_SETPIXEL_BLEND(RGBA_FROM_ARGB8888(*pixel, sr, sg, sb, sa), \
ARGB8888_FROM_RGBA(*pixel, sr, sg, sb, sa))
#define DRAW_SETPIXEL_BLEND(getpixel, setpixel)
Definition: SDL_draw.h:52
#define RGBA_FROM_ARGB8888(Pixel, r, g, b, a)
Definition: SDL_blit.h:324
#define ARGB8888_FROM_RGBA(Pixel, r, g, b, a)
Definition: SDL_blit.h:236

Definition at line 189 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_ARGB8888(), and SDL_BlendLine_ARGB8888().

#define DRAW_SETPIXEL_BLEND_RGB
Value:
DRAW_SETPIXEL_BLEND(RGB_FROM_PIXEL(*pixel, fmt, sr, sg, sb), \
PIXEL_FROM_RGB(*pixel, fmt, sr, sg, sb))
#define DRAW_SETPIXEL_BLEND(getpixel, setpixel)
Definition: SDL_draw.h:52
#define RGB_FROM_PIXEL(Pixel, fmt, r, g, b)
Definition: SDL_blit.h:121
#define PIXEL_FROM_RGB(Pixel, fmt, r, g, b)
Definition: SDL_blit.h:217

Definition at line 220 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_RGB(), SDL_BlendLine_RGB2(), and SDL_BlendLine_RGB4().

#define DRAW_SETPIXEL_BLEND_RGB555
Value:
DRAW_SETPIXEL_BLEND(RGB_FROM_RGB555(*pixel, sr, sg, sb), \
RGB555_FROM_RGB(*pixel, sr, sg, sb))
#define DRAW_SETPIXEL_BLEND(getpixel, setpixel)
Definition: SDL_draw.h:52
#define RGB555_FROM_RGB(Pixel, r, g, b)
Definition: SDL_blit.h:228
#define RGB_FROM_RGB555(Pixel, r, g, b)
Definition: SDL_blit.h:133

Definition at line 96 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_RGB555(), and SDL_BlendLine_RGB555().

#define DRAW_SETPIXEL_BLEND_RGB565
Value:
DRAW_SETPIXEL_BLEND(RGB_FROM_RGB565(*pixel, sr, sg, sb), \
RGB565_FROM_RGB(*pixel, sr, sg, sb))
#define DRAW_SETPIXEL_BLEND(getpixel, setpixel)
Definition: SDL_draw.h:52
#define RGB565_FROM_RGB(Pixel, r, g, b)
Definition: SDL_blit.h:224
#define RGB_FROM_RGB565(Pixel, r, g, b)
Definition: SDL_blit.h:127

Definition at line 127 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_RGB565(), and SDL_BlendLine_RGB565().

#define DRAW_SETPIXEL_BLEND_RGB888
Value:
DRAW_SETPIXEL_BLEND(RGB_FROM_RGB888(*pixel, sr, sg, sb), \
RGB888_FROM_RGB(*pixel, sr, sg, sb))
#define DRAW_SETPIXEL_BLEND(getpixel, setpixel)
Definition: SDL_draw.h:52
#define RGB888_FROM_RGB(Pixel, r, g, b)
Definition: SDL_blit.h:232
#define RGB_FROM_RGB888(Pixel, r, g, b)
Definition: SDL_blit.h:139

Definition at line 158 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_RGB888(), and SDL_BlendLine_RGB888().

#define DRAW_SETPIXEL_BLEND_RGBA
Value:
DRAW_SETPIXEL_BLEND(RGBA_FROM_PIXEL(*pixel, fmt, sr, sg, sb, sa), \
PIXEL_FROM_RGBA(*pixel, fmt, sr, sg, sb, sa))
#define DRAW_SETPIXEL_BLEND(getpixel, setpixel)
Definition: SDL_draw.h:52
#define PIXEL_FROM_RGBA(Pixel, fmt, r, g, b, a)
Definition: SDL_blit.h:394
#define RGBA_FROM_PIXEL(Pixel, fmt, r, g, b, a)
Definition: SDL_blit.h:303

Definition at line 264 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_RGBA(), and SDL_BlendLine_RGBA4().

#define DRAW_SETPIXEL_MOD (   getpixel,
  setpixel 
)
Value:
do { \
unsigned sr, sg, sb, sa; (void) sa; \
getpixel; \
sr = DRAW_MUL(sr, r); \
sg = DRAW_MUL(sg, g); \
sb = DRAW_MUL(sb, b); \
setpixel; \
} while (0)
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
Definition: glew.h:1824
GLboolean GLboolean g
Definition: glew.h:8736
GLdouble GLdouble GLdouble r
Definition: glew.h:1392
GLdouble GLdouble GLdouble b
Definition: glew.h:8383
#define DRAW_MUL(_a, _b)
Definition: SDL_draw.h:29

Definition at line 72 of file SDL_draw.h.

#define DRAW_SETPIXEL_MOD_ARGB8888
Value:
DRAW_SETPIXEL_MOD(RGBA_FROM_ARGB8888(*pixel, sr, sg, sb, sa), \
ARGB8888_FROM_RGBA(*pixel, sr, sg, sb, sa))
#define RGBA_FROM_ARGB8888(Pixel, r, g, b, a)
Definition: SDL_blit.h:324
#define DRAW_SETPIXEL_MOD(getpixel, setpixel)
Definition: SDL_draw.h:72
#define ARGB8888_FROM_RGBA(Pixel, r, g, b, a)
Definition: SDL_blit.h:236

Definition at line 197 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_ARGB8888(), and SDL_BlendLine_ARGB8888().

#define DRAW_SETPIXEL_MOD_RGB
Value:
DRAW_SETPIXEL_MOD(RGB_FROM_PIXEL(*pixel, fmt, sr, sg, sb), \
PIXEL_FROM_RGB(*pixel, fmt, sr, sg, sb))
#define DRAW_SETPIXEL_MOD(getpixel, setpixel)
Definition: SDL_draw.h:72
#define RGB_FROM_PIXEL(Pixel, fmt, r, g, b)
Definition: SDL_blit.h:121
#define PIXEL_FROM_RGB(Pixel, fmt, r, g, b)
Definition: SDL_blit.h:217

Definition at line 228 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_RGB(), SDL_BlendLine_RGB2(), and SDL_BlendLine_RGB4().

#define DRAW_SETPIXEL_MOD_RGB555
Value:
DRAW_SETPIXEL_MOD(RGB_FROM_RGB555(*pixel, sr, sg, sb), \
RGB555_FROM_RGB(*pixel, sr, sg, sb))
#define DRAW_SETPIXEL_MOD(getpixel, setpixel)
Definition: SDL_draw.h:72
#define RGB555_FROM_RGB(Pixel, r, g, b)
Definition: SDL_blit.h:228
#define RGB_FROM_RGB555(Pixel, r, g, b)
Definition: SDL_blit.h:133

Definition at line 104 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_RGB555(), and SDL_BlendLine_RGB555().

#define DRAW_SETPIXEL_MOD_RGB565
Value:
DRAW_SETPIXEL_MOD(RGB_FROM_RGB565(*pixel, sr, sg, sb), \
RGB565_FROM_RGB(*pixel, sr, sg, sb))
#define DRAW_SETPIXEL_MOD(getpixel, setpixel)
Definition: SDL_draw.h:72
#define RGB565_FROM_RGB(Pixel, r, g, b)
Definition: SDL_blit.h:224
#define RGB_FROM_RGB565(Pixel, r, g, b)
Definition: SDL_blit.h:127

Definition at line 135 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_RGB565(), and SDL_BlendLine_RGB565().

#define DRAW_SETPIXEL_MOD_RGB888
Value:
DRAW_SETPIXEL_MOD(RGB_FROM_RGB888(*pixel, sr, sg, sb), \
RGB888_FROM_RGB(*pixel, sr, sg, sb))
#define RGB888_FROM_RGB(Pixel, r, g, b)
Definition: SDL_blit.h:232
#define DRAW_SETPIXEL_MOD(getpixel, setpixel)
Definition: SDL_draw.h:72
#define RGB_FROM_RGB888(Pixel, r, g, b)
Definition: SDL_blit.h:139

Definition at line 166 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_RGB888(), and SDL_BlendLine_RGB888().

#define DRAW_SETPIXEL_MOD_RGBA
Value:
DRAW_SETPIXEL_MOD(RGBA_FROM_PIXEL(*pixel, fmt, sr, sg, sb, sa), \
PIXEL_FROM_RGBA(*pixel, fmt, sr, sg, sb, sa))
#define DRAW_SETPIXEL_MOD(getpixel, setpixel)
Definition: SDL_draw.h:72
#define PIXEL_FROM_RGBA(Pixel, fmt, r, g, b, a)
Definition: SDL_blit.h:394
#define RGBA_FROM_PIXEL(Pixel, fmt, r, g, b, a)
Definition: SDL_blit.h:303

Definition at line 272 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_RGBA(), and SDL_BlendLine_RGBA4().

#define DRAW_SETPIXEL_RGB   DRAW_SETPIXEL(PIXEL_FROM_RGB(*pixel, fmt, sr, sg, sb))

Definition at line 217 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_RGB(), SDL_BlendLine_RGB2(), and SDL_BlendLine_RGB4().

#define DRAW_SETPIXEL_RGB555   DRAW_SETPIXEL(RGB555_FROM_RGB(*pixel, sr, sg, sb))

Definition at line 93 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_RGB555(), and SDL_BlendLine_RGB555().

#define DRAW_SETPIXEL_RGB565   DRAW_SETPIXEL(RGB565_FROM_RGB(*pixel, sr, sg, sb))

Definition at line 124 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_RGB565(), and SDL_BlendLine_RGB565().

#define DRAW_SETPIXEL_RGB888   DRAW_SETPIXEL(RGB888_FROM_RGB(*pixel, sr, sg, sb))

Definition at line 155 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_RGB888(), and SDL_BlendLine_RGB888().

#define DRAW_SETPIXEL_RGBA   DRAW_SETPIXEL(PIXEL_FROM_RGBA(*pixel, fmt, sr, sg, sb, sa))

Definition at line 261 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_RGBA(), and SDL_BlendLine_RGBA4().

#define DRAW_SETPIXELXY (   x,
  y,
  type,
  bpp,
  op 
)
Value:
do { \
type *pixel = (type *)((Uint8 *)dst->pixels + (y) * dst->pitch \
+ (x) * bpp); \
op; \
} while (0)
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum GLenum type
Definition: gl2ext.h:845
EGLSurface EGLint x
Definition: eglext.h:293
GLenum GLenum dst
Definition: glew.h:2396
EGLSurface EGLint EGLint y
Definition: eglext.h:293
uint8_t Uint8
An unsigned 8-bit integer type.
Definition: SDL_stdinc.h:129

Definition at line 82 of file SDL_draw.h.

#define DRAW_SETPIXELXY2_ADD_RGB (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_ADD_RGB)

Definition at line 244 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGB2(), and SDL_BlendPoint_RGB().

#define DRAW_SETPIXELXY2_BLEND_RGB (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_BLEND_RGB)

Definition at line 238 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGB2(), SDL_BlendPoint_RGB(), and SDL_DrawLine2().

#define DRAW_SETPIXELXY2_MOD_RGB (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_MOD_RGB)

Definition at line 250 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGB2(), and SDL_BlendPoint_RGB().

#define DRAW_SETPIXELXY2_RGB (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_RGB)

Definition at line 232 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGB2(), and SDL_BlendPoint_RGB().

#define DRAW_SETPIXELXY4_ADD_RGB (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_ADD_RGB)

Definition at line 247 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGB4(), and SDL_BlendPoint_RGB().

#define DRAW_SETPIXELXY4_ADD_RGBA (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_ADD_RGBA)

Definition at line 282 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGBA4(), and SDL_BlendPoint_RGBA().

#define DRAW_SETPIXELXY4_BLEND_RGB (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_BLEND_RGB)

Definition at line 241 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGB4(), SDL_BlendPoint_RGB(), and SDL_DrawLine4().

#define DRAW_SETPIXELXY4_BLEND_RGBA (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_BLEND_RGBA)

Definition at line 279 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGBA4(), and SDL_BlendPoint_RGBA().

#define DRAW_SETPIXELXY4_MOD_RGB (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_MOD_RGB)

Definition at line 253 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGB4(), and SDL_BlendPoint_RGB().

#define DRAW_SETPIXELXY4_MOD_RGBA (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_MOD_RGBA)

Definition at line 285 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGBA4(), and SDL_BlendPoint_RGBA().

#define DRAW_SETPIXELXY4_RGB (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_RGB)

Definition at line 235 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGB4(), and SDL_BlendPoint_RGB().

#define DRAW_SETPIXELXY4_RGBA (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_RGBA)

Definition at line 276 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGBA4(), and SDL_BlendPoint_RGBA().

#define DRAW_SETPIXELXY_ADD_ARGB8888 (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_ADD_ARGB8888)

Definition at line 207 of file SDL_draw.h.

Referenced by SDL_BlendLine_ARGB8888(), and SDL_BlendPoint_ARGB8888().

#define DRAW_SETPIXELXY_ADD_RGB555 (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_ADD_RGB555)

Definition at line 114 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGB555(), and SDL_BlendPoint_RGB555().

#define DRAW_SETPIXELXY_ADD_RGB565 (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_ADD_RGB565)

Definition at line 145 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGB565(), and SDL_BlendPoint_RGB565().

#define DRAW_SETPIXELXY_ADD_RGB888 (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_ADD_RGB888)

Definition at line 176 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGB888(), and SDL_BlendPoint_RGB888().

#define DRAW_SETPIXELXY_ARGB8888 (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_ARGB8888)

Definition at line 201 of file SDL_draw.h.

Referenced by SDL_BlendLine_ARGB8888(), and SDL_BlendPoint_ARGB8888().

#define DRAW_SETPIXELXY_BLEND_ARGB8888 (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_BLEND_ARGB8888)

Definition at line 204 of file SDL_draw.h.

Referenced by SDL_BlendLine_ARGB8888(), SDL_BlendPoint_ARGB8888(), and SDL_DrawLine4().

#define DRAW_SETPIXELXY_BLEND_RGB555 (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_BLEND_RGB555)

Definition at line 111 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGB555(), SDL_BlendPoint_RGB555(), and SDL_DrawLine2().

#define DRAW_SETPIXELXY_BLEND_RGB565 (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_BLEND_RGB565)

Definition at line 142 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGB565(), SDL_BlendPoint_RGB565(), and SDL_DrawLine2().

#define DRAW_SETPIXELXY_BLEND_RGB888 (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_BLEND_RGB888)

Definition at line 173 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGB888(), SDL_BlendPoint_RGB888(), and SDL_DrawLine4().

#define DRAW_SETPIXELXY_MOD_ARGB8888 (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_MOD_ARGB8888)

Definition at line 210 of file SDL_draw.h.

Referenced by SDL_BlendLine_ARGB8888(), and SDL_BlendPoint_ARGB8888().

#define DRAW_SETPIXELXY_MOD_RGB555 (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_MOD_RGB555)

Definition at line 117 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGB555(), and SDL_BlendPoint_RGB555().

#define DRAW_SETPIXELXY_MOD_RGB565 (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_MOD_RGB565)

Definition at line 148 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGB565(), and SDL_BlendPoint_RGB565().

#define DRAW_SETPIXELXY_MOD_RGB888 (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_MOD_RGB888)

Definition at line 179 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGB888(), and SDL_BlendPoint_RGB888().

#define DRAW_SETPIXELXY_RGB555 (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_RGB555)

Definition at line 108 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGB555(), and SDL_BlendPoint_RGB555().

#define DRAW_SETPIXELXY_RGB565 (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint16, 2, DRAW_SETPIXEL_RGB565)

Definition at line 139 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGB565(), and SDL_BlendPoint_RGB565().

#define DRAW_SETPIXELXY_RGB888 (   x,
  y 
)    DRAW_SETPIXELXY(x, y, Uint32, 4, DRAW_SETPIXEL_RGB888)

Definition at line 170 of file SDL_draw.h.

Referenced by SDL_BlendLine_RGB888(), and SDL_BlendPoint_RGB888().

#define FILLRECT (   type,
  op 
)
Value:
do { \
int width = rect->w; \
int height = rect->h; \
int pitch = (dst->pitch / dst->format->BytesPerPixel); \
int skip = pitch - width; \
type *pixel = (type *)dst->pixels + rect->y * pitch + rect->x; \
while (height--) { \
{ int n = (width+3)/4; \
switch (width & 3) { \
case 0: do { op; pixel++; \
case 3: op; pixel++; \
case 2: op; pixel++; \
case 1: op; pixel++; \
} while ( --n > 0 ); \
} \
} \
pixel += skip; \
} \
} while (0)
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum GLenum type
Definition: gl2ext.h:845
GLclampd n
Definition: glew.h:7287
EGLSurface EGLint EGLint EGLint EGLint height
Definition: eglext.h:293
switch(yytype)
GLenum GLenum dst
Definition: glew.h:2396
int
Definition: SDL_systhread.c:37
EGLSurface EGLint EGLint EGLint width
Definition: eglext.h:293
png_uint_32 skip
Definition: pngrutil.c:1241
while(1)

Definition at line 554 of file SDL_draw.h.

Referenced by SDL_BlendFillRect_ARGB8888(), SDL_BlendFillRect_RGB(), SDL_BlendFillRect_RGB555(), SDL_BlendFillRect_RGB565(), SDL_BlendFillRect_RGB888(), and SDL_BlendFillRect_RGBA().

#define HLINE (   type,
  op,
  draw_end 
)
Value:
{ \
int pitch = (dst->pitch / dst->format->BytesPerPixel); \
type *pixel; \
if (x1 <= x2) { \
pixel = (type *)dst->pixels + y1 * pitch + x1; \
length = draw_end ? (x2-x1+1) : (x2-x1); \
} else { \
pixel = (type *)dst->pixels + y1 * pitch + x2; \
if (!draw_end) { \
++pixel; \
} \
length = draw_end ? (x1-x2+1) : (x1-x2); \
} \
while (length--) { \
op; \
++pixel; \
} \
}
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum GLenum type
Definition: gl2ext.h:845
if(!yyg->yy_init)
GLuint GLfloat GLfloat GLfloat GLfloat y1
Definition: glew.h:11582
GLenum GLenum dst
Definition: glew.h:2396
int
Definition: SDL_systhread.c:37
GLsizei GLsizei * length
Definition: gl2ext.h:792
GLuint GLfloat GLfloat GLfloat x1
Definition: glew.h:11582
GLfixed GLfixed x2
Definition: glext.h:4559
while(1)

Definition at line 295 of file SDL_draw.h.

Referenced by SDL_BlendLine_ARGB8888(), SDL_BlendLine_RGB2(), SDL_BlendLine_RGB4(), SDL_BlendLine_RGB555(), SDL_BlendLine_RGB565(), SDL_BlendLine_RGB888(), SDL_BlendLine_RGBA4(), SDL_DrawLine2(), and SDL_DrawLine4().

#define VLINE (   type,
  op,
  draw_end 
)
Value:
{ \
int pitch = (dst->pitch / dst->format->BytesPerPixel); \
type *pixel; \
if (y1 <= y2) { \
pixel = (type *)dst->pixels + y1 * pitch + x1; \
length = draw_end ? (y2-y1+1) : (y2-y1); \
} else { \
pixel = (type *)dst->pixels + y2 * pitch + x1; \
if (!draw_end) { \
pixel += pitch; \
} \
length = draw_end ? (y1-y2+1) : (y1-y2); \
} \
while (length--) { \
op; \
pixel += pitch; \
} \
}
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum GLenum type
Definition: gl2ext.h:845
if(!yyg->yy_init)
GLuint GLfloat GLfloat GLfloat GLfloat y1
Definition: glew.h:11582
GLfixed GLfixed GLfixed y2
Definition: glext.h:4559
GLenum GLenum dst
Definition: glew.h:2396
int
Definition: SDL_systhread.c:37
GLsizei GLsizei * length
Definition: gl2ext.h:792
GLuint GLfloat GLfloat GLfloat x1
Definition: glew.h:11582
while(1)

Definition at line 317 of file SDL_draw.h.

Referenced by SDL_BlendLine_ARGB8888(), SDL_BlendLine_RGB2(), SDL_BlendLine_RGB4(), SDL_BlendLine_RGB555(), SDL_BlendLine_RGB565(), SDL_BlendLine_RGB888(), SDL_BlendLine_RGBA4(), SDL_DrawLine1(), SDL_DrawLine2(), and SDL_DrawLine4().

#define WULINE (   x1,
  y1,
  x2,
  y2,
  opaque_op,
  blend_op,
  draw_end 
)

Definition at line 434 of file SDL_draw.h.