ScummVM API documentation
M4::GrBuff Class Reference

Public Member Functions

 GrBuff (int32 _w, int32 _h)
 
 GrBuff (int32 _w, int32 _h, int32 _x_off, int32 _y_off, int32 _pitch, int32 _height)
 
Bufferget_buffer ()
 
uint8 * get_pixmap ()
 
void clear ()
 
void lock ()
 
void release ()
 
void refresh_video (int32 scrnX, int32 scrnY, int32 x1, int32 y1, int32 x2, int32 y2)
 

Public Attributes

int32 w
 
int32 h
 
int32 x_off
 
int32 y_off
 
int32 pitch
 
int32 height
 

Protected Member Functions

void alloc_pixmap ()
 

Protected Attributes

Buffer dummy
 
MemHandle pixmap
 

Member Function Documentation

◆ get_buffer()

Buffer* M4::GrBuff::get_buffer ( )

Get buffer pointer

Remarks
Get_buffer will return the whole pixmap, not the subrectangle specified via x_off, y_off, w, h, and pitch. get_buffer will lock the pixmap, unlock it after use, SVP. DO NOT FREE THE RETURNED BUFFER!

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