yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
snes_tile.cc File Reference
#include "snes_tile.h"
#include <cassert>
#include <cstdint>
#include <stdexcept>
#include <vector>
#include "app/core/constants.h"
Include dependency graph for snes_tile.cc:

Go to the source code of this file.

Namespaces

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

Functions

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 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)
 
std::vector< uint8_t > yaze::app::gfx::SnesTo8bppSheet (const std::vector< uint8_t > &sheet, int bpp)
 
std::vector< uint8_t > yaze::app::gfx::Bpp8SnesToIndexed (std::vector< uint8_t > data, uint64_t bpp)
 
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 ushort yaze::app::gfx::TilePriorityBit = 0x2000
 
constexpr ushort yaze::app::gfx::TileHFlipBit = 0x4000
 
constexpr ushort yaze::app::gfx::TileVFlipBit = 0x8000
 
constexpr ushort yaze::app::gfx::TileNameMask = 0x03FF