#include <bitmap.h>
Definition at line 15 of file bitmap.h.
Public Member Functions | |
OE_BITMAP () | |
Construct empty bitmap with size 0x0. | |
~OE_BITMAP () | |
Free bitmap object and memory it allocated for itself. | |
void | clear_to_black () |
Clear all bitmap pixels to black color. | |
void | create (uint32 w, uint32 h, uint32 bpp) |
Create bitmap of width w and height h, using bpp bits per pixel. | |
void | destroy () |
Destroy the bitmap. | |
void | put_pix (uint32 x, uint32 y, uint32 R, uint32 G, uint32 B, uint32 A) |
Put single pixel in a bitmap (slow). | |
void | put_pix (uint32 x, uint32 y, uint32 R, uint32 G, uint32 B) |
Put single pixel in a bitmap (slow). | |
void | put_pix (uint32 x, uint32 y, OE_RGBA RGB) |
Put single pixel in a bitmap (slow). | |
void | put_pix (uint32 x, uint32 y, OE_RGBA *RGB) |
Put single pixel in a bitmap (slow). | |
Public Attributes | |
uint32 | w |
Bitmap width in pixels. | |
uint32 | h |
Bitmap height in pixels. | |
uint8 | bpp |
Bits per pixel (pixel color format). 32 and 64 are assumed to mean FP. | |
void * | dat |
Data buffer. Actual pixel colors are stored here. |
OE_BITMAP::OE_BITMAP | ( | ) |
OE_BITMAP::~OE_BITMAP | ( | ) |
void OE_BITMAP::clear_to_black | ( | ) |
Clear all bitmap pixels to black color.
Definition at line 36 of file bitmap.cpp.
Referenced by create().
void OE_BITMAP::create | ( | uint32 | w, | |
uint32 | h, | |||
uint32 | bpp | |||
) |
Create bitmap of width w and height h, using bpp bits per pixel.
Definition at line 18 of file bitmap.cpp.
void OE_BITMAP::destroy | ( | ) |
Destroy the bitmap.
Frees memory allocated to the internal pixel map.
Definition at line 27 of file bitmap.cpp.
Referenced by create(), and ~OE_BITMAP().
void OE_BITMAP::put_pix | ( | uint32 | x, | |
uint32 | y, | |||
uint32 | R, | |||
uint32 | G, | |||
uint32 | B, | |||
uint32 | A | |||
) |
void OE_BITMAP::put_pix | ( | uint32 | x, | |
uint32 | y, | |||
uint32 | R, | |||
uint32 | G, | |||
uint32 | B | |||
) |
void OE_BITMAP::put_pix | ( | uint32 | x, | |
uint32 | y, | |||
OE_RGBA | RGB | |||
) |
void OE_BITMAP::put_pix | ( | uint32 | x, | |
uint32 | y, | |||
OE_RGBA * | RGB | |||
) |
uint32 OE_BITMAP::w |
Bitmap width in pixels.
Definition at line 41 of file bitmap.h.
Referenced by destroy(), OE_BITMAP(), and put_pix().
uint32 OE_BITMAP::h |
Bitmap height in pixels.
Definition at line 42 of file bitmap.h.
Referenced by destroy(), and OE_BITMAP().
uint8 OE_BITMAP::bpp |
Bits per pixel (pixel color format). 32 and 64 are assumed to mean FP.
Definition at line 43 of file bitmap.h.
Referenced by destroy(), and OE_BITMAP().
void* OE_BITMAP::dat |
Data buffer. Actual pixel colors are stored here.
Definition at line 44 of file bitmap.h.
Referenced by clear_to_black(), create(), destroy(), OE_BITMAP(), and put_pix().