Porytiles
Loading...
Searching...
No Matches
layer.hpp File Reference
#include <cstdint>
#include <format>
#include <optional>
#include <ostream>
#include <string>
#include "porytiles/utilities/panic/panic.hpp"
#include "porytiles/utilities/result/chainable_result.hpp"
Include dependency graph for layer.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  std::formatter< porytiles::LayerMode >
 
struct  std::formatter< porytiles::LayerType >
 

Namespaces

namespace  porytiles
 

Enumerations

enum class  porytiles::LayerMode { porytiles::dual , porytiles::triple }
 Specifies whether a metatile uses dual-layer or triple-layer mode. More...
 
enum class  porytiles::LayerType : unsigned int { porytiles::normal = 0 , porytiles::covered = 1 , porytiles::split = 2 }
 Specifies which layers of a metatile are used for rendering. More...
 

Functions

LayerMode porytiles::layer_mode_from_val (std::size_t s)
 Converts a numeric value to LayerMode.
 
std::optional< LayerModeporytiles::layer_mode_from_str (const std::string &s)
 Converts a string to LayerMode.
 
std::string porytiles::to_string (LayerMode mode)
 Converts LayerMode to string representation.
 
std::ostream & porytiles::operator<< (std::ostream &os, const LayerMode mode)
 Stream insertion operator for LayerMode.
 
std::string porytiles::to_string (LayerType layer_type)
 Converts LayerType to string representation.
 
ChainableResult< LayerTypeporytiles::layer_type_from_int (unsigned int i)
 Converts an integer to LayerType.