remove inlines

This commit is contained in:
scawful
2022-07-06 22:35:00 -04:00
parent 8378f6bf2d
commit 6e97649e2f
4 changed files with 14 additions and 14 deletions

View File

@@ -35,7 +35,7 @@ class Controller {
void CreateWindow();
void CreateRenderer();
void CreateGuiContext() const;
inline void quit() { active_ = false; }
void quit() { active_ = false; }
friend int ::main(int argc, char **argv);
struct sdl_deleter {

View File

@@ -33,22 +33,22 @@ class OverworldEditor {
void LoadBlockset();
void LoadGraphics();
app::zelda3::Overworld overworld_;
app::gfx::SNESPalette palette_;
app::gfx::TilePreset current_set_;
zelda3::Overworld overworld_;
gfx::SNESPalette palette_;
gfx::TilePreset current_set_;
app::rom::ROM rom_;
rom::ROM rom_;
app::gfx::Bitmap tile16_blockset_bmp_;
gfx::Bitmap tile16_blockset_bmp_;
uchar *tile16_blockset_ptr_ = new uchar[1048576];
app::gfx::Bitmap current_gfx_bmp_;
gfx::Bitmap current_gfx_bmp_;
uchar *current_gfx_ptr_ = new uchar[(128 * 512) / 2];
app::gfx::Bitmap allgfxBitmap;
gfx::Bitmap allgfxBitmap;
uchar *allGfx16Ptr = new uchar[(128 * 7136) / 2];
app::gfx::Bitmap mapblockset16Bitmap;
gfx::Bitmap mapblockset16Bitmap;
std::unordered_map<unsigned int, SDL_Texture *> all_texture_sheet_;

View File

@@ -36,8 +36,8 @@ class ROM {
char* CreateAllGfxDataRaw();
void CreateAllGraphicsData(uchar* allGfx16Ptr);
inline uchar* data() { return current_rom_; }
inline auto Renderer() { return sdl_renderer_; }
uchar* data() { return current_rom_; }
auto Renderer() { return sdl_renderer_; }
const uchar* getTitle() const { return title; }
long getSize() const { return size_; }
char getVersion() const { return version_; }

View File

@@ -20,9 +20,9 @@ namespace zelda3 {
class Overworld {
public:
void Load(app::rom::ROM& rom, uchar* allGfxPtr);
inline auto GetTiles16() const { return tiles16; }
inline auto GetCurrentGfxSetPtr() { return currentOWgfx16Ptr; }
inline auto GetMapBlockset16Ptr() { return mapblockset16; }
auto GetTiles16() const { return tiles16; }
auto GetCurrentGfxSetPtr() { return currentOWgfx16Ptr; }
auto GetMapBlockset16Ptr() { return mapblockset16; }
std::shared_ptr<uchar[]> overworldMapPointer;
gfx::Bitmap overworldMapBitmap;