Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
sdl_image_enums.h
Go to the documentation of this file.
1#pragma once
2
3#include "SDL/sdl_interface.h"
4
5namespace ph
6{
7
9{
10 Unspecified = 0,
11
13 Nearest,
15};
16
18{
19 SdlEnumType sdlEnum("sample-mode");
20 sdlEnum.description("Controls how the image will be sampled.");
21
22 sdlEnum.addEntry(EnumType::Unspecified, "");
23 sdlEnum.addEntry(EnumType::Nearest, "nearest");
24 sdlEnum.addEntry(EnumType::Bilinear, "bilinear");
25 sdlEnum.addEntry(EnumType::Trilinear, "trilinear");
26
27 return sdlEnum;
28}
29
31{
32 Unspecified = 0,
33
35 Repeat,
37};
38
40{
41 SdlEnumType sdlEnum("wrap-mode");
42 sdlEnum.description(
43 "Controls how the image will be sampled when texture coordinates is not within the range [0, 1].");
44
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");
49
50 return sdlEnum;
51}
52
53}// end namespace ph
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