Bitmap housekeeping
This commit is contained in:
@@ -59,7 +59,8 @@ void Bitmap::Create(int width, int height, int depth, int size) {
|
||||
surface_->pixels = pixel_data_;
|
||||
}
|
||||
|
||||
void Bitmap::Create(int width, int height, int depth, uchar *data, int size, const SNESPalette &palette) {
|
||||
void Bitmap::Create(int width, int height, int depth, uchar *data, int size,
|
||||
SNESPalette &palette) {
|
||||
width_ = width;
|
||||
height_ = height;
|
||||
depth_ = depth;
|
||||
|
||||
@@ -19,7 +19,8 @@ class Bitmap {
|
||||
|
||||
void Create(int width, int height, int depth, uchar *data);
|
||||
void Create(int width, int height, int depth, int data_size);
|
||||
void Create(int width, int height, int depth, uchar *data, int size, const SNESPalette &palette);
|
||||
void Create(int width, int height, int depth, uchar *data, int size,
|
||||
SNESPalette &palette);
|
||||
void CreateTexture(std::shared_ptr<SDL_Renderer> renderer);
|
||||
|
||||
void ApplyPalette(const SNESPalette &palette);
|
||||
|
||||
Reference in New Issue
Block a user