Add basic CPP struct reflection
This commit is contained in:
@@ -1,6 +1,28 @@
|
||||
DQN_REFLECT enum struct OpenGLShader
|
||||
enum struct OpenGLShader
|
||||
{
|
||||
Invalid,
|
||||
Rect DQN_REFLECT_META(VertexShaderFilePath = "Rect.vert", FragmentShaderFilePath = "Rect.frag"),
|
||||
Text DQN_REFLECT_META(VertexShaderFilePath = "Text.vert", FragmentShaderFilePath = "Text.frag"),
|
||||
Rect (VertexShaderFilePath = "Rect.vert", FragmentShaderFilePath = "Rect.frag"),
|
||||
Text (VertexShaderFilePath = "Text.vert", FragmentShaderFilePath = "Text.frag"),
|
||||
};
|
||||
|
||||
#if 0
|
||||
#define EXAMPLE_MACRO \
|
||||
X(EndOfStream, "End Of Stream") \
|
||||
X(Hash, "#")
|
||||
|
||||
#define MAXIMUM_MACRO(a, b) (a > b) ? (a) : (b)
|
||||
#endif
|
||||
|
||||
DQN_REFLECT struct OpenGLState
|
||||
{
|
||||
// #if 0
|
||||
// #endif
|
||||
// u32 ebo, vbo, vao;
|
||||
// u32 shaders[(int)OpenGLShader::Count];
|
||||
V4 draw_color;
|
||||
V3 lighting_ambient_coeff;
|
||||
// u8 **bitmaps;
|
||||
// FixedArray<RendererLight, 32> lights;
|
||||
// FixedArray<Mat4, 32> camera_matrixes;
|
||||
int draw_call_count;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user