le2d v0.4.7
2D game engine framework
 
Loading...
Searching...
No Matches
vsync.hpp File Reference
#include <klib/enum_array.hpp>
#include <cstdint>
#include <optional>
#include <string_view>

Go to the source code of this file.

Namespaces

namespace  le
 

Enumerations

enum class  le::Vsync : std::int8_t {
  le::Strict , le::Adaptive , le::MultiBuffer , le::Off ,
  le::COUNT_
}
 

Functions

constexpr auto le::parse_vsync (std::string_view const in) -> std::optional< Vsync >
 

Variables

constexpr auto le::vsync_str_v = klib::EnumArray<Vsync, std::string_view>{"strict", "adaptive", "multi", "off"}