Basic Entity Components implementation

This commit is contained in:
2022-10-23 00:14:47 +02:00
parent b359a940ba
commit 7458254b2d
40 changed files with 160 additions and 344 deletions

View File

@ -68,8 +68,8 @@ void SceneView(Framebuffer& framebuffer ) {
ImGui::End();
}
void transformWindow(Transform& transform, std::string PanelName) {
/*
* void transformWindow(Transform& transform, std::string PanelName) {
ImGui::Begin(PanelName.c_str());
ImGui::InputFloat3("Position:", (float*)&transform.Position[0]);
ImGui::InputFloat3("Rotation:", (float*)&transform.Rotation[0]);
@ -78,6 +78,8 @@ void transformWindow(Transform& transform, std::string PanelName) {
}
*/
void materialWindow(Material& material, std::string PanelName) {
ImGui::Begin(PanelName.c_str());
ImGui::ColorPicker3("Color:", &material.Color[0]);