|
| Bitmap ()=default |
|
| Bitmap (int width, int height, int depth, int data_size) |
|
| Bitmap (int width, int height, int depth, const std::vector< uint8_t > &data) |
|
| Bitmap (int width, int height, int depth, const std::vector< uint8_t > &data, const SnesPalette &palette) |
|
void | SaveSurfaceToFile (std::string_view filename) |
|
void | Initialize (int width, int height, int depth, std::span< uint8_t > &data) |
|
void | Create (int width, int height, int depth, int data_size) |
|
void | Create (int width, int height, int depth, std::span< uint8_t > data) |
|
void | Create (int width, int height, int depth, const std::vector< uint8_t > &data) |
|
void | Create (int width, int height, int depth, int format, const std::vector< uint8_t > &data) |
|
void | Reformat (int format) |
|
void | CreateTexture (SDL_Renderer *renderer) |
| Creates the underlying SDL_Texture to be displayed.
|
|
void | UpdateTexture (SDL_Renderer *renderer) |
| Updates the underlying SDL_Texture when it already exists.
|
|
absl::Status | SetPalette (const SnesPalette &palette) |
| Copy color data from the SnesPalette into the SDL_Palette.
|
|
void | SetPalette (const std::vector< SDL_Color > &palette) |
|
absl::Status | SetPaletteWithTransparent (const SnesPalette &palette, size_t index, int length=7) |
|
absl::Status | SetPaletteFromPaletteGroup (const SnesPalette &palette, int palette_id) |
|
void | Get8x8Tile (int tile_index, int x, int y, std::vector< uint8_t > &tile_data, int &tile_data_offset) |
|
void | Get16x16Tile (int tile_x, int tile_y, std::vector< uint8_t > &tile_data, int &tile_data_offset) |
|
void | WriteToPixel (int position, uint8_t value) |
|
void | WriteColor (int position, const ImVec4 &color) |
|
void | Cleanup () |
|
auto | palette () const |
|
auto | mutable_palette () |
|
int | width () const |
|
int | height () const |
|
auto | depth () const |
|
auto | size () const |
|
auto | data () const |
|
auto & | mutable_data () |
|
auto | surface () const |
|
auto | vector () const |
|
auto | at (int i) const |
|
auto | texture () const |
|
auto | modified () const |
|
auto | is_active () const |
|
void | set_active (bool active) |
|
void | set_data (const std::vector< uint8_t > &data) |
|
void | set_modified (bool modified) |
|
Represents a bitmap image.
The Bitmap
class provides functionality to create, manipulate, and display bitmap images. It supports various operations such as creating a bitmap object, creating and updating textures, applying palettes, and accessing pixel data.
Definition at line 67 of file bitmap.h.