|
CeresEngine 0.2.0
A game development framework
|
A class that wraps a bitmap into a rich class for accessing it. More...
#include <CeresEngine/Texture/Bitmap.hpp>
Public Member Functions | |
| Bitmap (const BitmapExtent &extents, const Format format=Format::RGBA8UInt) | |
| Creates a new bitmap with the given extents. | |
| Bitmap (UInt32 width, const Format format=Format::RGBA8UInt) | |
| Bitmap (UInt32 width, UInt32 height, const Format format=Format::RGBA8UInt) | |
| Bitmap (UInt32 width, UInt32 height, UInt32 depth, const Format format=Format::RGBA8UInt) | |
| const Format & | getFormat () const noexcept |
| The format used by the bitmap data. | |
| const BitmapExtent & | getExtents () const noexcept |
| Determines the size of the bitmap. | |
| BitmapData | getData () const noexcept |
| The raw bitmap data. | |
| void | copyData (const Byte *const source, const size_t length) |
| ByteMemoryView | getByteData () const |
| void | setByteData (const ByteMemoryView &data) |
Private Attributes | |
| Format | mFormat = Format::RGBA8UInt |
| The format used by the bitmap data. | |
| BitmapExtent | mExtents |
| Determines the size of the bitmap. | |
| Vector< Byte > | mData |
| The raw bitmap data. | |
Friends | |
| class | TUserTypeInfo< Bitmap > |
A class that wraps a bitmap into a rich class for accessing it.
|
inline |
Creates a new bitmap with the given extents.
| extents | The size of the bitmap data to be created. |
| format | The format of the bitmap data. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
The raw bitmap data.
To access this data properly it must be interpreted for the given mFormat.
|
inlinenoexcept |
Determines the size of the bitmap.
The format used by the bitmap data.
This will control how the bytes in mData are interpreted into colors.
|
inline |
|
friend |
The raw bitmap data.
To access this data properly it must be interpreted for the given mFormat.
|
private |
Determines the size of the bitmap.
|
private |
The format used by the bitmap data.
This will control how the bytes in mData are interpreted into colors.