22 #ifndef TITANIC_SURFACE_OBJ_H 23 #define TITANIC_SURFACE_OBJ_H 25 #include "titanic/support/rect.h" 26 #include "titanic/support/video_surface.h" 27 #include "titanic/star_control/fpoint.h" 28 #include "titanic/star_control/frect.h" 32 enum SurfaceAreaMode {
33 SA_SOLID = 0, SA_MODE1 = 1, SA_MODE2 = 2, SA_XOR = 3, SA_MODE4 = 4
38 static void plotPoint(
int x,
int y,
int color,
void *data) {
40 if (x >= 0 && x < sa->_width && y >= 0 && y < sa->_height) {
42 *ptr = (*ptr & sa->_colorMask) ^ sa->_color;
54 void setColor(uint rgb);
56 void pixelToRGB(uint pixel, uint *rgb);
76 SurfaceAreaMode _mode;
85 SurfaceAreaMode
setMode(SurfaceAreaMode mode);
Definition: surface_area.h:36
double drawLine(const FRect &rect)
Definition: surface_area.h:101
const void * getBasePtr(int x, int y) const
Definition: surface.h:138
SurfaceAreaMode setMode(SurfaceAreaMode mode)
double drawLine(const FPoint &pt1, const FPoint &pt2)
Definition: video_surface.h:43