Changeset c1ec4f6 in opengl-game for vulkan-game.hpp


Ignore:
Timestamp:
Jun 11, 2021, 2:35:32 PM (3 years ago)
Author:
Dmitry Portnoy <dportnoy@…>
Branches:
feature/imgui-sdl
Children:
6486ba8
Parents:
b7fc3c2
git-author:
Dmitry Portnoy <dportnoy@…> (06/10/21 21:37:02)
git-committer:
Dmitry Portnoy <dportnoy@…> (06/11/21 14:35:32)
Message:

Remove the modified field from the SceneObject object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.hpp

    rb7fc3c2 rc1ec4f6  
    118118   mat4 model_transform;
    119119
    120    bool modified;
    121 
    122120   // TODO: Figure out if I should make child classes that have these fields instead of putting them in the
    123121   // parent class
     
    133131// Could probably use the same approach to make indices optional
    134132// Figure out if there are sufficient use cases to make either of these optional or is it fine to make
    135 // them mamdatory
     133// them mandatory
    136134
    137135
     
    189187
    190188      *reinterpret_cast<float*>(effectedFieldPtr) = startValue + (curTime - startTime) * changePerSecond;
    191 
    192       objects[objectIndex].modified = true;
    193189   }
    194190};
     
    521517   }
    522518
    523    objects.push_back({ vertices, indices, ssbo, mat4(1.0f), mat4(1.0f), false });
     519   objects.push_back({ vertices, indices, ssbo, mat4(1.0f), mat4(1.0f) });
    524520   objectBuffer.add(ssbo);
    525521
Note: See TracChangeset for help on using the changeset viewer.