ScummVM API documentation
Ultima::Nuvie::RenderSurface Class Reference

Public Member Functions

 RenderSurface (uint32 width, uint32 height, uint32 bpp, uint8 *p)
 
 RenderSurface (uint32 width, uint32 height, uint32 bpp, sint32 gb=0)
 
 RenderSurface (Graphics::ManagedSurface *surf)
 
 RenderSurface (OpenGL *ogl)
 
void create_zbuffer ()
 
void set_format (const Graphics::PixelFormat *format)
 
void set_format565 (int rsft=11, int gsft=5, int bsft=0)
 
void set_format555 (int rsft=10, int gsft=5, int bsft=0)
 
void set_format888 (int rsft=16, int gsft=8, int bsft=0)
 
const Graphics::PixelFormatgetFormat () const
 
void draw_line (int sx, int sy, int ex, int ey, unsigned char col)
 
void draw_3d_line (int x, int y, int sx, int sy, int sz, int ex, int ey, int ez, unsigned char col)
 
Graphics::ManagedSurfaceget_sdl_surface ()
 
const unsigned char * get_pixels ()
 

Static Public Member Functions

static Graphics::ManagedSurfacecreateSurface (int w, int h, const Graphics::PixelFormat &format)
 

Public Attributes

OpenGL * opengl
 
int bytes_per_pixel
 
int bits_per_pixel
 
int format_type
 
uint8 * pixels
 
uint16 * zbuffer
 
uint32 colour32 [256]
 
uint32 w
 
uint32 h
 
uint32 pitch
 
uint32 gl
 
uint32 gr
 
uint32 gt
 
uint32 gb
 
uint32 lock_count
 

Static Public Attributes

static uint8 Rloss
 
static uint8 Gloss
 
static uint8 Bloss
 
static uint8 Rloss16
 
static uint8 Gloss16
 
static uint8 Bloss16
 
static uint8 Rshift
 
static uint8 Gshift
 
static uint8 Bshift
 
static uint32 Rmask
 
static uint32 Gmask
 
static uint32 Bmask
 

The documentation for this class was generated from the following file: