Basic Entity Components implementation
This commit is contained in:
@ -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]);
|
||||
|
Reference in New Issue
Block a user