#include <RmSurface.h>
Public Member Functions | |
| RmSurface () | |
| Constructor. | |
| virtual | ~RmSurface () |
| Destructor. | |
| bool | Create (RmPixelFormatType pixelFormat, int width, int height) |
| Create surface. | |
| virtual void | Destroy () |
| Destroy surface. | |
| int | GetWidth () const |
| Get width. | |
| int | GetHeight () const |
| Get height. | |
| int | GetBytesPerPixel () const |
| Get bytes per pixel. | |
| int | GetPitch () const |
| Get pitch. | |
| RM_BYTE * | GetBuffer () |
| Get buffer. | |
| const RM_BYTE * | GetBuffer () const |
| Get buffer. | |
| RM_BYTE * | GetScanLine (int y) |
| Get scanline buffer. | |
| const RM_BYTE * | GetScanLine (int y) const |
| Get scanline buffer. | |
| RM_BYTE * | GetPixel (int x, int y) |
| Get pixel. | |
| const RM_BYTE * | GetPixel (int x, int y) const |
| Get pixel. | |
| RmPixelFormatType | GetPixelFormat () const |
| Get pixel format. | |
| int | GetTotalSize () const |
| Get total size of buffer. | |
| bool | IsDXTFormat () const |
| Is surface DXT compressed? | |
| int | GetDXTBlockSize () const |
| Get DXT block size. | |
| int | GetDXTBlockWidth () const |
| Get DXT block width. | |
| int | GetDXTBlockHeight () const |
| Get DXT block height. | |
| RM_BYTE * | GetDXTBlock (int bx, int by) |
| Get DXT block. | |
| const RM_BYTE * | GetDXTBlock (int bx, int by) const |
| Get DXT block. | |
|
|
Constructor. Constructor |
|
|
Destructor. Destructor |
|
||||||||||||||||
|
Create surface. Create
|
|
|
Destroy surface. Cleanup surface memory
|
|
|
Get buffer. Buffer Accessing
|
|
|
Get buffer. Buffer Accessing
|
|
|
Get bytes per pixel. Return number of bytes used in one pixel
|
|
||||||||||||
|
Get DXT block. Returns the address of block at give location
|
|
||||||||||||
|
Get DXT block. Returns the address of block at give location
|
|
|
Get DXT block height. Returns number of DXT blocks verticaly.
|
|
|
Get DXT block size. For DXT1, each block takes 8 bytes. For DXT2~5, each block takes 16 bytes. Surface must be created with DXT compressed format
|
|
|
Get DXT block width. Returns number of DXT blocks in each scanline
|
|
|
Get height.
|
|
|
Get pitch. Size of each scanline in bytes
|
|
||||||||||||
|
Get pixel. Returns the address of pixel at given (x,y)
|
|
||||||||||||
|
Get pixel. Returns the address of pixel at given (x,y)
|
|
|
Get pixel format. Return pixel format
|
|
|
Get scanline buffer. Returns the buffer for beginning of scanline
|
|
|
Get scanline buffer. Returns the buffer for beginning of scanline
|
|
|
Get total size of buffer. Total size of buffer in bytes
|
|
|
Get width.
|
|
|
Is surface DXT compressed? DXT compression flag
|
1.3.6