235 lines
7.5 KiB
C++
235 lines
7.5 KiB
C++
// This is an auto generated file using Dqn_Inspect
|
|
|
|
//
|
|
// ..\Data\DqnInspect_TestData.h
|
|
//
|
|
|
|
#ifndef DQN_INSPECT_DQNINSPECT_TESTDATA_H
|
|
#define DQN_INSPECT_DQNINSPECT_TESTDATA_H
|
|
|
|
char const *DqnInspect_OpenGLShader_Strings[] = {"Invalid", "Rect", "Text", "Count", };
|
|
|
|
char const *DqnInspect_EnumString(OpenGLShader val)
|
|
{
|
|
if (val == OpenGLShader::Invalid) return DqnInspect_OpenGLShader_Strings[0]; // "Invalid"
|
|
if (val == OpenGLShader::Rect) return DqnInspect_OpenGLShader_Strings[1]; // "Rect"
|
|
if (val == OpenGLShader::Text) return DqnInspect_OpenGLShader_Strings[2]; // "Text"
|
|
if (val == OpenGLShader::Count) return DqnInspect_OpenGLShader_Strings[3]; // "Count"
|
|
return nullptr;
|
|
}
|
|
|
|
char const *DqnInspect_VertexShaderFilePathMetadata(OpenGLShader val)
|
|
{
|
|
if (val == OpenGLShader::Rect) return "Rect.vert";
|
|
if (val == OpenGLShader::Text) return "Text.vert";
|
|
return nullptr;
|
|
}
|
|
|
|
char const *DqnInspect_FragmentShaderFilePathMetadata(OpenGLShader val)
|
|
{
|
|
if (val == OpenGLShader::Rect) return "Rect.frag";
|
|
if (val == OpenGLShader::Text) return "Text.frag";
|
|
return nullptr;
|
|
}
|
|
|
|
DqnInspect_StructMemberMetadata const DqnInspect_OpenGLState_ebo_StructMemberMetadata[] =
|
|
{
|
|
{
|
|
DqnInspect_StructMemberMetadataType::String,
|
|
STR_AND_LEN("DisplayName"), STR_AND_LEN("Element Buffer Object"),
|
|
},
|
|
};
|
|
|
|
DqnInspect_StructMemberMetadata const DqnInspect_OpenGLState_vao_StructMemberMetadata[] =
|
|
{
|
|
{
|
|
DqnInspect_StructMemberMetadataType::String,
|
|
STR_AND_LEN("DisplayName"), STR_AND_LEN("Vertex Array Object"),
|
|
},
|
|
{
|
|
DqnInspect_StructMemberMetadataType::String,
|
|
STR_AND_LEN("OpenGLVersion"), STR_AND_LEN("330"),
|
|
},
|
|
};
|
|
|
|
DqnInspect_StructMemberMetadata const DqnInspect_OpenGLState_draw_color_StructMemberMetadata[] =
|
|
{
|
|
{
|
|
DqnInspect_StructMemberMetadataType::String,
|
|
STR_AND_LEN("DisplayName"), STR_AND_LEN("HelloWorld"),
|
|
},
|
|
};
|
|
|
|
DqnInspect_StructMember const DqnInspect_OpenGLState_StructMembers[] =
|
|
{
|
|
{
|
|
STR_AND_LEN("Array"), STR_AND_LEN("lights"),
|
|
STR_AND_LEN("V3, 3"), // template_expr
|
|
nullptr, 0, // metadata and metadata_len
|
|
0 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("Array"), STR_AND_LEN("camera_matrixes"),
|
|
STR_AND_LEN("V4, 3"), // template_expr
|
|
nullptr, 0, // metadata and metadata_len
|
|
0 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("char"), STR_AND_LEN("bitmaps"),
|
|
nullptr, 0, // template_expr and template_expr_len
|
|
nullptr, 0, // metadata and metadata_len
|
|
2 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("int"), STR_AND_LEN("shaders"),
|
|
nullptr, 0, // template_expr and template_expr_len
|
|
nullptr, 0, // metadata and metadata_len
|
|
1 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("void"), STR_AND_LEN("win32_handle"),
|
|
nullptr, 0, // template_expr and template_expr_len
|
|
nullptr, 0, // metadata and metadata_len
|
|
1 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("int"), STR_AND_LEN("ebo"),
|
|
nullptr, 0, // template_expr and template_expr_len
|
|
DqnInspect_OpenGLState_ebo_StructMemberMetadata, 1,
|
|
0 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("int"), STR_AND_LEN("vbo"),
|
|
nullptr, 0, // template_expr and template_expr_len
|
|
nullptr, 0, // metadata and metadata_len
|
|
0 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("int"), STR_AND_LEN("vao"),
|
|
nullptr, 0, // template_expr and template_expr_len
|
|
DqnInspect_OpenGLState_vao_StructMemberMetadata, 2,
|
|
0 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("V4"), STR_AND_LEN("draw_color"),
|
|
nullptr, 0, // template_expr and template_expr_len
|
|
DqnInspect_OpenGLState_draw_color_StructMemberMetadata, 1,
|
|
0 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("V3"), STR_AND_LEN("lighting_ambient_coeff"),
|
|
nullptr, 0, // template_expr and template_expr_len
|
|
nullptr, 0, // metadata and metadata_len
|
|
0 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("int"), STR_AND_LEN("draw_call_count"),
|
|
nullptr, 0, // template_expr and template_expr_len
|
|
nullptr, 0, // metadata and metadata_len
|
|
0 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("const"), STR_AND_LEN("int"),
|
|
nullptr, 0, // template_expr and template_expr_len
|
|
nullptr, 0, // metadata and metadata_len
|
|
0 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("const"), STR_AND_LEN("a"),
|
|
nullptr, 0, // template_expr and template_expr_len
|
|
nullptr, 0, // metadata and metadata_len
|
|
0 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("int"), STR_AND_LEN("b"),
|
|
nullptr, 0, // template_expr and template_expr_len
|
|
nullptr, 0, // metadata and metadata_len
|
|
1 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("int"), STR_AND_LEN("c"),
|
|
nullptr, 0, // template_expr and template_expr_len
|
|
nullptr, 0, // metadata and metadata_len
|
|
0 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("int"), STR_AND_LEN("d"),
|
|
nullptr, 0, // template_expr and template_expr_len
|
|
nullptr, 0, // metadata and metadata_len
|
|
1 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("int"), STR_AND_LEN("e"),
|
|
nullptr, 0, // template_expr and template_expr_len
|
|
nullptr, 0, // metadata and metadata_len
|
|
1 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("const"), STR_AND_LEN("int"),
|
|
nullptr, 0, // template_expr and template_expr_len
|
|
nullptr, 0, // metadata and metadata_len
|
|
0 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("int"), STR_AND_LEN("g"),
|
|
nullptr, 0, // template_expr and template_expr_len
|
|
nullptr, 0, // metadata and metadata_len
|
|
0 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("int"), STR_AND_LEN("h"),
|
|
nullptr, 0, // template_expr and template_expr_len
|
|
nullptr, 0, // metadata and metadata_len
|
|
1 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("int"), STR_AND_LEN("i"),
|
|
nullptr, 0, // template_expr and template_expr_len
|
|
nullptr, 0, // metadata and metadata_len
|
|
1 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("int"), STR_AND_LEN("j"),
|
|
nullptr, 0, // template_expr and template_expr_len
|
|
nullptr, 0, // metadata and metadata_len
|
|
9 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("int"), STR_AND_LEN("k"),
|
|
nullptr, 0, // template_expr and template_expr_len
|
|
nullptr, 0, // metadata and metadata_len
|
|
0 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("int"), STR_AND_LEN("l"),
|
|
nullptr, 0, // template_expr and template_expr_len
|
|
nullptr, 0, // metadata and metadata_len
|
|
6 // array_dimensions
|
|
},
|
|
{
|
|
STR_AND_LEN("int"), STR_AND_LEN("m"),
|
|
nullptr, 0, // template_expr and template_expr_len
|
|
nullptr, 0, // metadata and metadata_len
|
|
1 // array_dimensions
|
|
},
|
|
};
|
|
|
|
DqnInspect_Struct const DqnInspect_OpenGLState_Struct =
|
|
{
|
|
STR_AND_LEN("OpenGLState"),
|
|
DqnInspect_OpenGLState_StructMembers, // members
|
|
ARRAY_COUNT(DqnInspect_OpenGLState_StructMembers) // members_len
|
|
};
|
|
|
|
DqnInspect_Struct const *DqnInspect_GetStruct(OpenGLState const *val)
|
|
{
|
|
(void)val;
|
|
DqnInspect_Struct const *result = &DqnInspect_OpenGLState_Struct;
|
|
return result;
|
|
}
|
|
|
|
void RenderRect(V3 pos, V2 size = {}, char const *texture = nullptr, bool depth_test = false, int type = 1, char *user_msg = "Hello world");
|
|
|
|
#endif // DQN_INSPECT_DQNINSPECT_TESTDATA_H
|
|
|