1#ifndef YAZE_APP_EDITOR_SPRITE_SPRITE_EDITOR_INTERNAL_H_
2#define YAZE_APP_EDITOR_SPRITE_SPRITE_EDITOR_INTERNAL_H_
27 const std::vector<uint8_t>& gfx_buffer) {
31 bmp.
Create(width, height, depth, gfx_buffer);
Represents a bitmap image optimized for SNES ROM hacking.
void Create(int width, int height, int depth, std::span< uint8_t > data)
Create a bitmap with the given dimensions and data.
void Reformat(int format)
Reformat the bitmap to use a different pixel format.
BitmapMetadata & metadata()
void CreateTexture()
Creates the underlying SDL_Texture to be displayed.
SDL_Surface * surface() const
void EnsureSpritePreviewBitmapReady(gfx::Bitmap &bmp, int width, int height, int depth, const std::vector< uint8_t > &gfx_buffer)