Replace BuildAndRenderBitmap with Rom::CreateAndRenderBitmap
This commit is contained in:
@@ -22,8 +22,6 @@ namespace app {
|
||||
*/
|
||||
namespace gfx {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @brief Convert SDL_Surface to PNG image data.
|
||||
*/
|
||||
@@ -52,6 +50,16 @@ class Bitmap {
|
||||
: width_(width), height_(height), depth_(depth), data_(data) {
|
||||
InitializeFromData(width, height, depth, data);
|
||||
}
|
||||
Bitmap(int width, int height, int depth, const Bytes &data,
|
||||
const SnesPalette &palette)
|
||||
: width_(width),
|
||||
height_(height),
|
||||
depth_(depth),
|
||||
data_(data),
|
||||
palette_(palette) {
|
||||
InitializeFromData(width, height, depth, data);
|
||||
ApplyPalette(palette);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Creates a bitmap object and reserves space for graphical data.
|
||||
|
||||
Reference in New Issue
Block a user