Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

target_generic.cpp File Reference

#include "Core/precomp.h"
#include <API/Display/Display/cliprect.h>
#include <API/Display/Display/target.h>
#include <API/Display/Display/pixelformat.h>
#include <API/Display/Display/palette.h>
#include <API/Core/System/cl_assert.h>
#include <Display/Display/Generic/colormap.h>

Include dependency graph for target_generic.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define SGN(x)   ((x)>0 ? 1 : ((x)==0 ? 0 :(-1)))
#define ABS(x)   ((x)>0 ? (x) : (-x))
#define CLIP_CODE_C   0x0000
#define CLIP_CODE_N   0x0008
#define CLIP_CODE_S   0x0004
#define CLIP_CODE_E   0x0002
#define CLIP_CODE_W   0x0001
#define CLIP_CODE_NE   0x000a
#define CLIP_CODE_SE   0x0006
#define CLIP_CODE_NW   0x0009
#define CLIP_CODE_SW   0x0005

Functions

void fast_draw_pixel_32bpp (unsigned char *data, int x, int y, int color, unsigned int pitch)
void fast_draw_pixel_24bpp (unsigned char *data, int x, int y, unsigned char *color, unsigned int pitch)
void fast_draw_pixel_16bpp (unsigned char *data, int x, int y, unsigned short color, unsigned int pitch)
void fast_draw_pixel_8bpp (unsigned char *data, int x, int y, unsigned char color, unsigned int pitch)
int clip_line (int &x1, int &y1, int &x2, int &y2, int min_clip_x, int max_clip_x, int min_clip_y, int max_clip_y)
void cl_fill_rect_opaque (CL_Target *target, int _x1, int _y1, int _x2, int _y2, int color)


Define Documentation

#define ABS( x )   ((x)>0 ? (x) : (-x))
 

Definition at line 27 of file target_generic.cpp.

#define CLIP_CODE_C   0x0000
 

#define CLIP_CODE_E   0x0002
 

#define CLIP_CODE_N   0x0008
 

#define CLIP_CODE_NE   0x000a
 

#define CLIP_CODE_NW   0x0009
 

#define CLIP_CODE_S   0x0004
 

#define CLIP_CODE_SE   0x0006
 

#define CLIP_CODE_SW   0x0005
 

#define CLIP_CODE_W   0x0001
 

#define SGN( x )   ((x)>0 ? 1 : ((x)==0 ? 0 :(-1)))
 

Definition at line 26 of file target_generic.cpp.


Function Documentation

void cl_fill_rect_opaque ( CL_Target * target,
int _x1,
int _y1,
int _x2,
int _y2,
int color )
 

Definition at line 651 of file target_generic.cpp.

int clip_line ( int & x1,
int & y1,
int & x2,
int & y2,
int min_clip_x,
int max_clip_x,
int min_clip_y,
int max_clip_y )
 

Definition at line 1043 of file target_generic.cpp.

void fast_draw_pixel_16bpp ( unsigned char * data,
int x,
int y,
unsigned short color,
unsigned int pitch ) [inline]
 

Definition at line 802 of file target_generic.cpp.

void fast_draw_pixel_24bpp ( unsigned char * data,
int x,
int y,
unsigned char * color,
unsigned int pitch ) [inline]
 

Definition at line 789 of file target_generic.cpp.

void fast_draw_pixel_32bpp ( unsigned char * data,
int x,
int y,
int color,
unsigned int pitch ) [inline]
 

Definition at line 775 of file target_generic.cpp.

void fast_draw_pixel_8bpp ( unsigned char * data,
int x,
int y,
unsigned char color,
unsigned int pitch ) [inline]
 

Definition at line 817 of file target_generic.cpp.


Generated at Wed Apr 4 19:56:30 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001