remove pseudo vram

This commit is contained in:
scawful
2022-09-11 14:23:46 -05:00
parent cfb84481ed
commit 0896f51c39
2 changed files with 0 additions and 77 deletions

View File

@@ -1,30 +0,0 @@
#include "pseudo_vram.h"
namespace yaze {
namespace app {
namespace gfx {
void pseudo_vram::ChangeGraphicsTileset(
const std::vector<Bitmap>& graphics_set) {}
void pseudo_vram::ChangeGraphicsPalette(const SNESPalette& graphics_pal) {}
void pseudo_vram::ChangeSpriteTileset(const std::vector<Bitmap>& sprite_set) {}
void pseudo_vram::ChangeSpritePalette(const SNESPalette& sprite_pal) {}
std::vector<Bitmap> CreateGraphicsSet(
int id, const std::unordered_map<int, Bitmap>& all_graphics) {
std::vector<Bitmap> graphics_set;
return graphics_set;
}
std::vector<Bitmap> CreateSpriteSet(
int id, const std::unordered_map<int, Bitmap>& all_graphics) {
std::vector<Bitmap> graphics_set;
return graphics_set;
}
} // namespace gfx
} // namespace app
} // namespace yaze

View File

@@ -1,47 +0,0 @@
#ifndef YAZE_APP_GFX_PSEUDO_VRAM_H
#define YAZE_APP_GFX_PSEUDO_VRAM_H
#include <SDL.h>
#include <cstdint>
#include <unordered_map>
#include <vector>
#include "app/gfx/bitmap.h"
#include "app/gfx/snes_palette.h"
#include "app/gfx/snes_tile.h"
namespace yaze {
namespace app {
namespace gfx {
// VRAM: 64 KB of VRAM for screen maps and tile sets (backgrounds and objects)
// OAM: 512 + 32 bytes for objects (Object Attribute Memory)
// CGRAM: 512 bytes for palette data
// Palette: 256 entries; 15-Bit color (BGR555) for a total of 32,768 colors.
// Resolution: between 256x224 and 512x448.
class pseudo_vram {
public:
void ChangeGraphicsTileset(const std::vector<Bitmap>& graphics_set);
void ChangeGraphicsPalette(const SNESPalette& graphics_pal);
void ChangeSpriteTileset(const std::vector<Bitmap>& sprite_set);
void ChangeSpritePalette(const SNESPalette& sprite_pal);
auto GetTileset(int index) const { return m_vram.at(index); }
private:
static const uint32_t REAL_VRAM_SIZE = 0x8000;
std::unordered_map<int, Bitmap> m_vram;
};
std::vector<Bitmap> CreateGraphicsSet(
int id, const std::unordered_map<int, Bitmap>& all_graphics);
std::vector<Bitmap> CreateSpriteSet(
int id, const std::unordered_map<int, Bitmap>& all_graphics);
} // namespace gfx
} // namespace app
} // namespace yaze
#endif // YAZE_APP_GFX_PSEUDO_VRAM_H