12const char scl::scene_object_config_window::AddComponentComboItemsCames[7][64] = {
14 "Transform Component",
16 "Point Light Component",
17 "Directional Light Component",
18 "Spot Light Component"
25 this->ConfiguringObject = ConfiguringObject;
29void scl::scene_object_config_window::ResetData()
31 CurrentSubmeshIndex = 0;
32 GBufferPreviewColorAttachment = 0;
33 CurrentAddingComponentIndex = 0;
34 CameraProjectionTypeIndex = 0;
36 memset(NameTextBuffer, 0, 128);
38 SubmeshSelectComboItems.clear();
43 if (submeshes_count != SubmeshSelectComboItems.size())
45 SubmeshSelectComboItems.resize(submeshes_count);
46 for (
int i = 0; i < submeshes_count; i++)
47 SubmeshSelectComboItems[i] = std::string(
"Mesh No.") + std::to_string(i);
54 ImGui::Begin(
"Scene Object Configuration");
56 if (!ConfiguringObject.IsOk())
62 auto window_size = ImGui::GetWindowSize();
63 PanelWidth = (float)window_size.x - 15;
66 DrawComponentPanel<name_component>();
68 DrawComponentPanel<transform_component>();
70 DrawComponentPanel<native_script_component>();
71 if ((IsMeshComponent = ConfiguringObject.HasComponent<
mesh_component>()))
72 DrawComponentPanel<mesh_component>();
73 if ((IsCameraComponent = ConfiguringObject.HasComponent<
camera_component>()))
74 DrawComponentPanel<camera_component>();
76 DrawComponentPanel<point_light_component>();
78 DrawComponentPanel<directional_light_component>();
80 DrawComponentPanel<spot_light_component>();
83 DrawAddComponentPanel();
std::vector< submesh_data > SubMeshes
void SetConfiguringObject(scene_object ConfiguringObject)
scene_object GetConfiguringObject() const
Scene object components configuration GUI window class declaration module.
Sculpto library prehompiled header. Defines common definitions, includes commonly used modules.