Changeset 8e02b6b in opengl-game for vulkan-game.hpp


Ignore:
Timestamp:
Nov 22, 2019, 6:27:13 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
f97c5e7
Parents:
683dd55
git-author:
Dmitry Portnoy <dmitry.portnoy@…> (11/22/19 18:26:59)
git-committer:
Dmitry Portnoy <dmitry.portnoy@…> (11/22/19 18:27:13)
Message:

To move to a more generic way of updating the scene, rename updateUniformBuffers() to updateScene() in VulkanGame and move the code to copy the data into a new copyDataToMemory() function in VulkanUtils.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.hpp

    r683dd55 r8e02b6b  
    2929};
    3030
    31 struct UniformBufferObject {
     31struct UBO_MvpMat {
    3232   alignas(16) mat4 model;
    3333   alignas(16) mat4 view;
     
    5151      vec3 cam_pos;
    5252
    53       UniformBufferObject ubo;
     53      UBO_MvpMat modelMvpMats;
    5454
    5555      GameGui* gui;
     
    120120      void initMatrices();
    121121      void mainLoop();
     122      void updateScene(uint32_t currentImage);
    122123      void renderUI();
    123124      void renderScene();
     
    147148
    148149      void recreateSwapChain();
    149       void updateUniformBuffer(uint32_t currentImage);
    150150
    151151      void cleanupSwapChain();
Note: See TracChangeset for help on using the changeset viewer.