1#ifndef YAZE_APP_GFX_ARENA_H
2#define YAZE_APP_GFX_ARENA_H
7#include <unordered_map>
22 SDL_Texture*
AllocateTexture(SDL_Renderer* renderer,
int width,
int height);
24 void UpdateTexture(SDL_Texture* texture, SDL_Surface* surface);
26 SDL_Surface*
AllocateSurface(
int width,
int height,
int depth,
int format);
52 std::unordered_map<SDL_Texture*,
53 std::unique_ptr<SDL_Texture, core::SDL_Texture_Deleter>>
56 std::unordered_map<SDL_Surface*,
57 std::unique_ptr<SDL_Surface, core::SDL_Surface_Deleter>>
SDL_Texture * AllocateTexture(SDL_Renderer *renderer, int width, int height)
SDL_Surface * AllocateSurface(int width, int height, int depth, int format)
static constexpr int kTotalTiles
std::array< uint16_t, kTotalTiles > layer2_buffer_
static constexpr int kTilesPerColumn
static constexpr int kTilesPerRow
auto mutable_gfx_sheets()
std::unordered_map< SDL_Texture *, std::unique_ptr< SDL_Texture, core::SDL_Texture_Deleter > > textures_
std::unordered_map< SDL_Surface *, std::unique_ptr< SDL_Surface, core::SDL_Surface_Deleter > > surfaces_
void FreeSurface(SDL_Surface *surface)
auto mutable_gfx_sheet(int i)
std::array< gfx::Bitmap, 223 > gfx_sheets_
std::array< gfx::Bitmap, 223 > & gfx_sheets()
void FreeTexture(SDL_Texture *texture)
std::array< uint16_t, kTotalTiles > layer1_buffer_
void UpdateTexture(SDL_Texture *texture, SDL_Surface *surface)
Contains classes for handling graphical data.
Main namespace for the application.