yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
snes_tile.h File Reference
#include <snes_tile.h>
#include <array>
#include <cstdint>
#include <cstring>
#include <stdexcept>
#include <vector>
Include dependency graph for snes_tile.h:

Go to the source code of this file.

Classes

class  yaze::app::gfx::TileInfo
 SNES 16-bit tile metadata container. More...
 
class  yaze::app::gfx::Tile32
 Tile composition of four 16x16 tiles. More...
 
class  yaze::app::gfx::Tile16
 Tile composition of four 8x8 tiles. More...
 
class  yaze::app::gfx::OamTile
 Object Attribute Memory tile abstraction container. More...
 
class  yaze::app::gfx::GraphicsBuffer
 

Namespaces

namespace  yaze
 
namespace  yaze::app
 Main namespace for the ImGui application.
 
namespace  yaze::app::gfx
 Contains classes for handling graphical data.
 

Functions

std::vector< uint8_t > yaze::app::gfx::SnesTo8bppSheet (const std::vector< uint8_t > &sheet, int bpp, int num_sheets)
 
std::vector< uint8_t > yaze::app::gfx::Bpp8SnesToIndexed (std::vector< uint8_t > data, uint64_t bpp)
 
snes_tile8 yaze::app::gfx::UnpackBppTile (const std::vector< uint8_t > &data, const uint32_t offset, const uint32_t bpp)
 
std::vector< uint8_t > yaze::app::gfx::PackBppTile (const snes_tile8 &tile, const uint32_t bpp)
 
std::vector< uint8_t > yaze::app::gfx::ConvertBpp (const std::vector< uint8_t > &tiles, uint32_t from_bpp, uint32_t to_bpp)
 
std::vector< uint8_t > yaze::app::gfx::Convert3bppTo4bpp (const std::vector< uint8_t > &tiles)
 
std::vector< uint8_t > yaze::app::gfx::Convert4bppTo3bpp (const std::vector< uint8_t > &tiles)
 
void yaze::app::gfx::CopyTile8bpp16 (int x, int y, int tile, std::vector< uint8_t > &bitmap, std::vector< uint8_t > &blockset)
 
uint16_t yaze::app::gfx::TileInfoToWord (TileInfo tile_info)
 
TileInfo yaze::app::gfx::WordToTileInfo (uint16_t word)
 
uint16_t yaze::app::gfx::TileInfoToShort (TileInfo tile_info)
 
TileInfo yaze::app::gfx::GetTilesInfo (uint16_t tile)
 

Variables

constexpr int yaze::app::gfx::kTilesheetWidth = 128
 
constexpr int yaze::app::gfx::kTilesheetHeight = 32
 
constexpr int yaze::app::gfx::kTilesheetDepth = 8
 
constexpr uint8_t yaze::app::gfx::kGraphicsBitmap [8]