diff options
author | hnOsmium0001 <[email protected]> | 2022-04-30 13:55:20 -0700 |
---|---|---|
committer | hnOsmium0001 <[email protected]> | 2022-04-30 13:55:20 -0700 |
commit | 242317c1f7f2a6abdfbdbc99d5297539bbdc842f (patch) | |
tree | 4ccaae8f20b9b2534022419eb9eb7744b913cac7 /source/SceneThings.cpp | |
parent | 5f467c899d1024b01c0d7ba86d9ac2f28878eb55 (diff) |
Add ImGuizmo for GameObjects, start to make things actually render
Diffstat (limited to 'source/SceneThings.cpp')
-rw-r--r-- | source/SceneThings.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/SceneThings.cpp b/source/SceneThings.cpp index 2a25fb6..0413725 100644 --- a/source/SceneThings.cpp +++ b/source/SceneThings.cpp @@ -11,16 +11,19 @@ SimpleGeometryObject::SimpleGeometryObject(GameWorld* world) , mSize{ 20.0f, 20.0f } , mColor(60, 60, 60) { mRenderObject.SetMaterial(gDefaultMaterial.Get()); - mRenderObject.SetFormat(gVformatStandardPacked.Get(), Tags::IT_16Bit); + mRenderObject.SetFormat(gVformatStandard.Get(), Tags::IT_16Bit); mRenderObject.RebuildIfNecessary(); + UpdateRenderObject(); } void SimpleGeometryObject::SetSize(glm::vec2 size) { mSize = size; + UpdateRenderObject(); } void SimpleGeometryObject::SetColor(RgbaColor color) { mColor = color; + UpdateRenderObject(); } std::span<const RenderObject> SimpleGeometryObject::GetRenderObjects() const { @@ -44,7 +47,7 @@ void SimpleGeometryObject::UpdateRenderObject() { BuildingObject::BuildingObject(GameWorld* world) : GameObject(KD_Building, world) { mRenderObject.SetMaterial(gDefaultMaterial.Get()); - mRenderObject.SetFormat(gVformatStandardPacked.Get(), Tags::IT_32Bit); + mRenderObject.SetFormat(gVformatStandard.Get(), Tags::IT_32Bit); mRenderObject.RebuildIfNecessary(); } |