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_;
|
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;
|
width_ = width;
|
||||||
height_ = height;
|
height_ = height;
|
||||||
depth_ = depth;
|
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, uchar *data);
|
||||||
void Create(int width, int height, int depth, int data_size);
|
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 CreateTexture(std::shared_ptr<SDL_Renderer> renderer);
|
||||||
|
|
||||||
void ApplyPalette(const SNESPalette &palette);
|
void ApplyPalette(const SNESPalette &palette);
|
||||||
|
|||||||
Reference in New Issue
Block a user