19 SdlEnumType sdlEnum(
"sample-mode");
20 sdlEnum.description(
"Controls how the image will be sampled.");
22 sdlEnum.addEntry(EnumType::Unspecified,
"");
23 sdlEnum.addEntry(EnumType::Nearest,
"nearest");
24 sdlEnum.addEntry(EnumType::Bilinear,
"bilinear");
25 sdlEnum.addEntry(EnumType::Trilinear,
"trilinear");
41 SdlEnumType sdlEnum(
"wrap-mode");
43 "Controls how the image will be sampled when texture coordinates is not within the range [0, 1].");
45 sdlEnum.addEntry(EnumType::Unspecified,
"");
46 sdlEnum.addEntry(EnumType::Repeat,
"repeat");
47 sdlEnum.addEntry(EnumType::ClampToEdge,
"clamp-to-edge");
48 sdlEnum.addEntry(EnumType::FlippedClampToEdge,
"flipped-clamp-to-edge");
SDL enum implementation with common features. Enum value and string mapping are done in a brute-force...
Definition TSdlGeneralEnum.h:26
The root for all renderer implementations.
Definition EEngineProject.h:6
EImageSampleMode
Definition sdl_image_enums.h:9
EImageWrapMode
Definition sdl_image_enums.h:31
#define PH_DEFINE_SDL_ENUM(...)
Define a SDL enum with function-like syntax.
Definition sdl_interface.h:142