22 #ifndef NUVIE_SCREEN_SURFACE_H 23 #define NUVIE_SCREEN_SURFACE_H 25 #include "graphics/pixelformat.h" 37 DisposeAfterUse::Flag _disposeSurface;
68 RenderSurface(uint32 width, uint32 height, uint32 bpp, uint8 *p);
71 RenderSurface(uint32 width, uint32 height, uint32 bpp, sint32 gb = 0);
84 void create_zbuffer();
90 void set_format565(
int rsft = 11,
int gsft = 5,
int bsft = 0);
93 void set_format555(
int rsft = 10,
int gsft = 5,
int bsft = 0);
96 void set_format888(
int rsft = 16,
int gsft = 8,
int bsft = 0);
100 return _rawSurface->
format;
104 void draw_line(
int sx,
int sy,
int ex,
int ey,
unsigned char col);
105 void draw_3d_line(
int x,
int y,
int sx,
int sy,
int sz,
int ex,
int ey,
int ez,
unsigned char col);
111 static uint8 Rloss16;
112 static uint8 Gloss16;
113 static uint8 Bloss16;
140 const unsigned char *get_pixels();
147 void draw_line16(
int sx,
int sy,
int ex,
int ey,
unsigned char col);
150 void draw_line32(
int sx,
int sy,
int ex,
int ey,
unsigned char col);
154 RenderSurface *CreateRenderSurface(uint32 width, uint32 height, uint32 bpp, uint8 *p);
155 RenderSurface *CreateRenderSurface(uint32 width, uint32 height, uint32 bpp, sint32 gb = 0);
Definition: managed_surface.h:51
Definition: detection.h:27
Definition: renderbuffer.h:27
PixelFormat & format
Definition: managed_surface.h:120