#include "rect.h"
Go to the source code of this file.
Data Structures | |
struct | OPC |
The basic unit of 2D graphical operations. More... | |
struct | OPCShape |
A transparent-packed 2D shape definition Codes (signed char code array): -1~-127 Skip -128: End line 0: End shape 1~MAX_DUMP: Copy MAX_DUMP~127: Fill If 'code' is not NULL, and first 'code' is 0, data is packed somehow. More... | |
Defines | |
#define | OPC_GetOrigin(opc) ((opc)->origin) |
#define | OPC_GetPitch(opc) ((opc)->pitch) |
#define | OPC_GetClip(opc) ((opc)->clip) |
#define | OPC_Init_Basic(opc, org, lineOff, cl, ct, cr, cb) |
Initialize each member from a discreet list of parameters. | |
#define | OPC_Init_SDL_Surface(opc, sdl) OPC_Init_Basic( opc, (sdl)->pixels, (sdl)->pitch, (sdl)->clip_rect.x, (sdl)->clip_rect.y, (sdl)->clip_rect.x + (sdl)->clip_rect.w, (sdl)->clip_rect.y + (sdl)->clip_rect.h ) |
Initialize from SDL (http://libsdl.org). |
Definition in file opc.h.
#define OPC_GetClip | ( | opc | ) | ((opc)->clip) |
#define OPC_GetOrigin | ( | opc | ) | ((opc)->origin) |
#define OPC_GetPitch | ( | opc | ) | ((opc)->pitch) |
#define OPC_Init_Basic | ( | opc, | |||
org, | |||||
lineOff, | |||||
cl, | |||||
ct, | |||||
cr, | |||||
cb | ) |
Value:
{\ (opc)->clip.left = (cl); (opc)->clip.top = (ct); (opc)->clip.right = (cr); (opc)->clip.bottom = (cb);\ (opc)->pitch = (lineOff);\ (opc)->origin = (uint8*)(org) - ((opc)->pitch*(ct)) - (sizeof(PIXEL)*(cl));\ }
opc | OPC to init, at {cl,ct} | |
org | Pointer to buffer | |
lineOff | Width of buffer | |
cl,ct,cr,cb |