Dqn/Data/DqnInspect_TestData.h

48 lines
1.2 KiB
C
Raw Normal View History

DQN_INSPECT enum struct OpenGLShader
{
Invalid,
2019-02-23 01:32:08 +00:00
Rect DQN_INSPECT_META(VertexShaderFilePath = "Rect.vert", FragmentShaderFilePath = "Rect.frag"),
Text DQN_INSPECT_META(VertexShaderFilePath = "Text.vert", FragmentShaderFilePath = "Text.frag"),
2019-02-23 04:23:40 +00:00
Count,
2019-02-22 12:15:39 +00:00
};
#if 0
#define EXAMPLE_MACRO \
X(EndOfStream, "End Of Stream") \
X(Hash, "#")
#define MAXIMUM_MACRO(a, b) (a > b) ? (a) : (b)
#endif
2019-02-23 04:23:40 +00:00
struct V3 { float test; };
struct V4 { float test; };
2019-02-23 04:23:40 +00:00
template <typename T, int Size>
struct Array
{
2019-02-23 04:23:40 +00:00
T data[Size];
};
DQN_INSPECT struct OpenGLState
2019-02-22 12:15:39 +00:00
{
// #if 0
// #endif
2019-02-23 04:23:40 +00:00
Array<V3, 32> lights;
Array<V4, 32> camera_matrixes;
char **bitmaps;
int shaders[(int)OpenGLShader::Count];
void *win32_handle;
int ebo DQN_INSPECT_META(DisplayName = "Element Buffer Object"), vbo, vao DQN_INSPECT_META(DisplayName = "Vertex Array Object", OpenGLVersion = "330");
V4 draw_color DQN_INSPECT_META(DisplayName = "HelloWorld");
V3 lighting_ambient_coeff;
int draw_call_count;
2019-02-23 02:19:36 +00:00
2019-02-23 03:04:35 +00:00
const int *const a;
2019-02-23 03:22:09 +00:00
int const *const b, c, *d, *e;
2019-02-23 03:04:35 +00:00
const int f;
int const g;
int *const h;
int const* i;
2019-02-23 03:22:09 +00:00
int *********const j, k, ******l, *m;
};