Porytiles
Loading...
Searching...
No Matches
pixel_tile.hpp File Reference
#include <algorithm>
#include <array>
#include <set>
#include "porytiles2/domain/models/supports_transparency.hpp"
#include "porytiles2/xcut/panic/panic.hpp"
Include dependency graph for pixel_tile.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  porytiles2::PixelTile< PixelType >
 An 8x8 tile backed by literal-array-based per-pixel storage of an arbitrary pixel type. More...
 

Namespaces

namespace  porytiles2
 
namespace  porytiles2::tile
 

Functions

constexpr std::pair< std::size_t, std::size_t > porytiles2::tile::index_to_row_col (std::size_t index)
 Converts a linear index to row and column coordinates.
 
constexpr std::size_t porytiles2::tile::row_col_to_index (std::size_t row, std::size_t col)
 Converts row and column coordinates to a linear index.
 

Variables

constexpr std::size_t porytiles2::tile::side_length_pix = 8
 
constexpr std::size_t porytiles2::tile::size_pix = side_length_pix * side_length_pix