Logo
GfxTypes.h
1#pragma once
2
3namespace SharpKmyGfx
4{
5 struct PCTVTX {
6 f32 x, y, z;
7 f32 r, g, b, a;
8 f32 u, v;
9 };
10
11 struct PCVTX {
12 f32 x, y, z;
13 f32 r, g, b, a;
14 };
15
16 public enum class BLENDTYPE {
17 kOPAQUE,
18 kALPHA,
19 kADD,
20 kSUB,
23 kCOUNT,
24 };
25
26 public enum class CULLTYPE {
27 kBACK,
28 kNONE,
29 kFRONT,
30 kDOUBLE,
31 };
32
33 public enum class STENCILOP {
34 kKEEP,
36 kINC,
37 kDEC,
38 };
39
40 public enum class FUNCTYPE {
41 kNEVER,
42 kLESS,
43 kEQUAL,
44 kLEQUAL,
47 kGEQUAL,
48 kALWAYS,
49 };
50
51 public enum class DrawEvent
52 {
57 AfterUI,
58 };
59
60 public enum class ModelBoundSphereDrawType {
61 None,
62 All,
64 };
65
66 public enum class GameViewDrawHookPoint
67 {
74 };
75
76 public enum class PrimitiveType {
77 Points,
78 Lines,
83 };
84
85 public enum class IndexType {
86 U8,
87 U16,
88 U32,
89 };
90
91 public enum class BlendFactor {
92 Zero,
93 One,
100 DstAlpha,
102 };
103
104 public enum class EquationType {
105 Add,
106 Subtract,
108 Min,
109 Max,
110 };
111
112 public enum class CullType {
113 Back,
114 None,
115 Front,
116 Double,
117 };
118
119 public enum class PolygonMode {
120 Point,
121 Line,
122 Fill,
123 };
124
125 public enum class UNIFORMPARAMTYPE {
126 kFLOAT,
127 kVEC2,
128 kVEC3,
129 kVEC4,
130 kCOLOR3,
131 kCOLOR4,
132 kMATRIX,
133 kINT,
134 kINT2,
135 kINT3,
136 kBOOL,
138 kENUM,
140
141 kTEXTURE,
142 kINVALID,
143 };
144
145 public enum class TEXTUREFILTER {
146 kNEAREST,
147 kBILINEAR,
148 };
149
150 public enum class WRAPTYPE {
151 kREPEAT,
152 kCLAMP,
153 kMIRROR,
154 };
155
156 public enum class TEXTUREFFORMAT {
157
158 kINVALID = -1,
159 kRGBA,
160 kRGB8,
161 kR8,
162 kR16,
163 kR16F,
164 kRGBA16F,
165 kRGB32F,
166 kRGBA32F,
167 kDEPTH16,
169 kSHADOW16,
170 kSRGBA8,
171 kSRGB8,
172 kRGB10_A2,
173
180
187
188 kCOUNT,
189 };
190
191 public enum class TEXTUREUSAGE
192 {
193 kDefault,
194 kNormal,
195 k2D,
196 };
197
198 public enum class TEXTURESHAPE
199 {
200 k2D,
201 kCube,
202 k3D
203 };
204}
Definition: Asset.h:4
UNIFORMPARAMTYPE
Definition: GfxTypes.h:125
GameViewDrawHookPoint
Definition: GfxTypes.h:67
TEXTURESHAPE
Definition: GfxTypes.h:199
PrimitiveType
Definition: GfxTypes.h:76
DrawEvent
Definition: GfxTypes.h:52
BLENDTYPE
Definition: GfxTypes.h:16
TEXTUREFFORMAT
Definition: GfxTypes.h:156
CullType
Definition: GfxTypes.h:112
TEXTUREUSAGE
Definition: GfxTypes.h:192
CULLTYPE
Definition: GfxTypes.h:26
BlendFactor
Definition: GfxTypes.h:91
ModelBoundSphereDrawType
Definition: GfxTypes.h:60
TEXTUREFILTER
Definition: GfxTypes.h:145
FUNCTYPE
Definition: GfxTypes.h:40
WRAPTYPE
Definition: GfxTypes.h:150
PolygonMode
Definition: GfxTypes.h:119
STENCILOP
Definition: GfxTypes.h:33
EquationType
Definition: GfxTypes.h:104
IndexType
Definition: GfxTypes.h:85
Definition: GfxTypes.h:5
f32 r
Definition: GfxTypes.h:7
f32 a
Definition: GfxTypes.h:7
f32 z
Definition: GfxTypes.h:6
f32 v
Definition: GfxTypes.h:8
f32 b
Definition: GfxTypes.h:7
f32 g
Definition: GfxTypes.h:7
f32 u
Definition: GfxTypes.h:8
f32 x
Definition: GfxTypes.h:6
f32 y
Definition: GfxTypes.h:6
Definition: GfxTypes.h:11
f32 r
Definition: GfxTypes.h:13
f32 x
Definition: GfxTypes.h:12
f32 y
Definition: GfxTypes.h:12
f32 z
Definition: GfxTypes.h:12
f32 g
Definition: GfxTypes.h:13
f32 a
Definition: GfxTypes.h:13
f32 b
Definition: GfxTypes.h:13