Photon Engine 2.0.0-beta
A physically based renderer.
|
A helper for accessing SDL enum properties. More...
#include <TSdlEnum.h>
Public Member Functions | |
EnumType | operator[] (std::string_view entryName) const |
Get enum value from its name. | |
std::string_view | operator[] (EnumType enumValue) const |
Get enum name from its value. | |
A helper for accessing SDL enum properties.
This is a base type without any functionality implemented. Specializations are required to provide implementation for the methods, and this is generally done by providing an enum definition via PH_DEFINE_SDL_ENUM()
.
|
inline |
Get enum name from its value.
The memory for the view object is backed by the class instance.
|
inline |
Get enum value from its name.