Plasma Engine  2.0
Loading...
Searching...
No Matches
TexConvEnums.h
1#pragma once
2
3#include <Texture/TextureDLL.h>
4
5#include <Foundation/Reflection/Reflection.h>
6
8{
9 enum Enum
10 {
11 None,
12 Texture2D,
13 Volume,
14 Cubemap,
15 Atlas,
16
17 Default = Texture2D
18 };
19
20 using StorageType = plUInt8;
21};
22
24{
25 enum Enum
26 {
27 // note: order of enum values matters
28 None = 0, // uncompressed
29 Medium = 1, // compressed with high quality, if possible
30 High = 2, // strongest compression, if possible
31
32 Default = Medium,
33 };
34
35 using StorageType = plUInt8;
36};
37
38PL_DECLARE_REFLECTABLE_TYPE(PL_TEXTURE_DLL, plTexConvCompressionMode);
39
41{
42 enum Enum
43 {
45
46 // Exact format will be decided together with plTexConvCompressionMode
47
48 Color,
49 Linear,
50 Hdr,
51
52 NormalMap,
53 NormalMap_Inverted,
54
55 BumpMap,
56
57 Default = Auto
58 };
59
60 using StorageType = plUInt8;
61};
62
63PL_DECLARE_REFLECTABLE_TYPE(PL_TEXTURE_DLL, plTexConvUsage);
64
66{
67 enum Enum
68 {
70 Linear,
71 Kaiser,
72
73 Default = Kaiser
74 };
75
76 using StorageType = plUInt8;
77};
78
79PL_DECLARE_REFLECTABLE_TYPE(PL_TEXTURE_DLL, plTexConvMipmapMode);
80
82{
83 enum Enum
84 {
85 PC,
86 Android,
87
88 Default = PC
89 };
90
91 using StorageType = plUInt8;
92};
93
108
111{
112 enum Enum
113 {
117
118 Default = Finite
119 };
120
121 using StorageType = plUInt8;
122};
Defines which filter kernel is used to approximate the x/y bump map gradients.
Definition TexConvEnums.h:111
Enum
Definition TexConvEnums.h:113
@ Finite
Simple finite differences in a 4-Neighborhood.
Definition TexConvEnums.h:114
@ Scharr
Scharr kernel (8-Neighborhood)
Definition TexConvEnums.h:116
@ Sobel
Sobel kernel (8-Neighborhood)
Definition TexConvEnums.h:115
Defines which channel of another texture to read to get a value.
Definition TexConvEnums.h:96
Enum
Definition TexConvEnums.h:98
@ Red
read the RED channel
Definition TexConvEnums.h:99
@ Blue
read the BLUE channel
Definition TexConvEnums.h:101
@ Green
read the GREEN channel
Definition TexConvEnums.h:100
@ White
don't read any channel, just take the constant value 0xFF / 1.0f
Definition TexConvEnums.h:105
@ Black
don't read any channel, just take the constant value 0
Definition TexConvEnums.h:104
@ Alpha
read the ALPHA channel
Definition TexConvEnums.h:102
Definition TexConvEnums.h:24
Definition TexConvEnums.h:66
Enum
Definition TexConvEnums.h:68
@ None
Mipmap generation is disabled, output will have no mipmaps.
Definition TexConvEnums.h:69
Definition TexConvEnums.h:8
Definition TexConvEnums.h:82
Definition TexConvEnums.h:41
Enum
Definition TexConvEnums.h:43
@ Auto
Target format will be detected from heuristics (filename, content)
Definition TexConvEnums.h:44