|
|
PixelBullet
0.0.1
A C++ game engine
|
Packed RGBA8 CPU bitmap storage. More...
#include <bitmap.h>
Public Member Functions | |
| Bitmap (const Filesystem &filesystem, const VirtualPath &asset_path) | |
| Bitmap (const glm::uvec2 &size) | |
| Bitmap (const glm::uvec2 &size, std::vector< std::uint8_t > pixels) | |
| bool | load (const Filesystem &filesystem, const VirtualPath &asset_path) |
| bool | write (const std::filesystem::path &path) const |
| operator bool () const noexcept | |
| std::size_t | byte_length () const noexcept |
| void | clear () noexcept |
| const std::string & | filename () const noexcept |
| const std::vector< std::uint8_t > & | data () const noexcept |
| std::span< std::uint8_t > | mutable_data () noexcept |
| const glm::uvec2 & | size () const noexcept |
| bool | replace_rgba8 (const glm::uvec2 &size, std::vector< std::uint8_t > pixels) |
| bool | has_valid_storage () const noexcept |
Static Public Attributes | |
| static constexpr std::uint32_t | bytes_per_pixel = 4u |
Packed RGBA8 CPU bitmap storage.