Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
aiekick committed Nov 19, 2023
1 parent cbd2c12 commit 32853a4
Show file tree
Hide file tree
Showing 26 changed files with 1,330 additions and 1,445 deletions.
337 changes: 200 additions & 137 deletions Plugins/CodeGenerator/src/Editor/UBOEditor.cpp

Large diffs are not rendered by default.

20 changes: 17 additions & 3 deletions Plugins/CodeGenerator/src/Editor/UBOEditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,28 @@
#include <vector>
class UBOItem : public conf::ConfigAbstract {
private:
std::vector<std::string> m_TypeArray = {
"float", "vec2", "vec3", "vec4", "int", "ivec2", "ivec3", "ivec4", "uint", "uvec2", "uvec3", "uvec4", "bool", "bvec2", "bvec3", "bvec4"};
std::vector<std::string> m_WidgetsArray = {//
"Input", // 0
"Slider", // 1
"Combo Box", // 2
"Check Box", // 3
"Color RGB", // 4
"Color RGBA"}; // 5
int m_WidgetIndex = 0U;
std::vector<std::string> m_TypeArray = {//
"float", "vec2", "vec3", "vec4", //
"int", "ivec2", "ivec3", "ivec4", //
"uint", "uvec2", "uvec3", "uvec4", //
"bool", "bvec2", "bvec3", "bvec4"};
int m_InputTypeIndex = 0U;
ImWidgets::InputText m_InputName;
ImWidgets::InputText m_InputValue_x;
ImWidgets::InputText m_InputValue_y;
ImWidgets::InputText m_InputValue_z;
ImWidgets::InputText m_InputValue_w;
bool m_CheckBoxItem_DefaultValue = false;
ct::fvec3 m_ColorRGBItem_DefaultValue = false;
ct::fvec4 m_ColorRGBAItem_DefaultValue = false;

public:
UBOItem() = default;
Expand Down Expand Up @@ -47,7 +61,7 @@ class UBOEditor : public conf::ConfigAbstract {
std::string Get_Glsl_Header(const std::string& vRendererType, const int32_t& vUboBindingIndex, const int32_t& vUboIndex, const bool& vIsAnEffect);
std::string Get_Cpp_Header(const std::string& vRendererType, const int32_t& vUboIndex, const bool& vIsAnEffect);
std::string Get_Cpp_WriteDescriptors(const std::string& vRendererType, const int32_t& vUboBindingIndex, const int32_t& vUboIndex);
std::string Get_Cpp_LayoutBindings(const std::string& vRendererType, const int32_t& vUboBindingIndex);
std::string Get_Cpp_LayoutBindings(const std::string& vRendererType, const int32_t& vUboBindingIndex, const int32_t& vUboIndex);
std::string Get_Cpp_GetXML(const std::string& vRendererType, const int32_t& vUboIndex, const bool& vIsAnEffect);
std::string Get_Cpp_SetXML(const std::string& vRendererType, const int32_t& vUboIndex, const bool& vIsFirst, const bool& vIsAnEffect);
std::string Get_Create_Header(const std::string& vRendererType, const int32_t& vUboIndex);
Expand Down
4 changes: 2 additions & 2 deletions Plugins/CodeGenerator/src/Headers/CodeGeneratorBuild.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#define CodeGenerator_Prefix "CodeGenerator"
#define CodeGenerator_BuildNumber 606
#define CodeGenerator_BuildNumber 628
#define CodeGenerator_MinorNumber 0
#define CodeGenerator_MajorNumber 0
#define CodeGenerator_BuildId "0.0.606"
#define CodeGenerator_BuildId "0.0.628"
Loading

0 comments on commit 32853a4

Please sign in to comment.