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


Ignore:
Timestamp:
Dec 24, 2019, 12:48:49 AM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
0fe8433
Parents:
a79be34
git-author:
Dmitry Portnoy <dmitry.portnoy@…> (12/22/19 03:45:12)
git-committer:
Dmitry Portnoy <dmitry.portnoy@…> (12/24/19 00:48:49)
Message:

In VulkanGame, make the ship move when the player holds down the right or left arrow keys

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.hpp

    ra79be34 rcd1cb0f  
    189189      vector<VertexType> centerObject(vector<VertexType> vertices);
    190190
     191      template<class VertexType>
     192      void transformObject(SceneObject<VertexType>& obj, mat4 mat);
     193
    191194      void createBufferSet(VkDeviceSize bufferSize, VkBufferUsageFlags flags,
    192195         vector<VkBuffer>& buffers, vector<VkDeviceMemory>& buffersMemory, vector<VkDescriptorBufferInfo>& bufferInfoList);
     
    269272}
    270273
     274template<class VertexType>
     275void VulkanGame::transformObject(SceneObject<VertexType>& obj, mat4 mat) {
     276   obj.model_transform = mat * obj.model_transform;
     277}
     278
    271279#endif // _VULKAN_GAME_H
Note: See TracChangeset for help on using the changeset viewer.