Changeset 5192672 in opengl-game for vulkan-game.cpp


Ignore:
Timestamp:
Mar 7, 2021, 11:05:27 PM (4 years ago)
Author:
Dmitry Portnoy <dportnoy@…>
Branches:
feature/imgui-sdl
Children:
429ac01
Parents:
317ad13
Message:

Add ui-value\.hpp to the VulkanGame project and make curTime an instance variable of VulkanGame instead of a global

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.cpp

    r317ad13 r5192672  
    823823         }
    824824
    825          switch(e.type) {
     825         switch (e.type) {
    826826            case UI_EVENT_QUIT:
    827827               cout << "Quit event detected" << endl;
     
    10471047         BaseEffectOverTime* eot = *it;
    10481048
    1049          eot->applyEffect();
     1049         eot->applyEffect(curTime);
    10501050
    10511051         it++;
     
    20432043         // TODO: Use some sort of smart pointer instead
    20442044         eot = new EffectOverTime<AsteroidVertex, SSBO_Asteroid>(asteroidPipeline, asteroidObjects, closestAsteroidIndex,
    2045             offset_of(&SSBO_Asteroid::hp), -20.0f);
     2045            offset_of(&SSBO_Asteroid::hp), curTime, -20.0f);
    20462046         effects.push_back(eot);
    20472047      }
     
    20642064   laser.vertices[7].pos.z = -length;
    20652065
    2066    // TODO: Consider if I want to set a flag and do this update in in updateScene() instead
     2066   // TODO: Consider if I want to set a flag and do this update in updateScene() instead
    20672067   updateObjectVertices(this->laserPipeline, laser, index);
    20682068}
Note: See TracChangeset for help on using the changeset viewer.