Changeset 771b33a in opengl-game for vulkan-game.hpp


Ignore:
Timestamp:
Oct 4, 2019, 8:39:46 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
b794178
Parents:
0b1b52d
Message:

In openglgame, port over some more of the pipeline creation code and the functionality to specify and initialize varying attributes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.hpp

    r0b1b52d r771b33a  
    11#ifndef _VULKAN_GAME_H
    22#define _VULKAN_GAME_H
     3
     4#include <glm/glm.hpp>
    35
    46#include "game-gui-sdl.hpp"
     
    1113#endif
    1214
     15// TODO: Figure out if these structs should be defined in the VulkanGame class
     16
     17struct Vertex {
     18   glm::vec3 pos;
     19   glm::vec3 color;
     20   glm::vec2 texCoord;
     21};
     22
     23struct OverlayVertex {
     24   glm::vec3 pos;
     25   glm::vec2 texCoord;
     26};
     27
    1328class VulkanGame {
    1429   public:
     
    2035   private:
    2136      GameGui* gui;
     37      Viewport viewport;
    2238
    2339      vector<GraphicsPipeline_Vulkan> graphicsPipelines;
     
    3955      vector<VkImage> swapChainImages;
    4056      VkFormat swapChainImageFormat;
    41       VkExtent2D swapChainExtent;
    4257      vector<VkImageView> swapChainImageViews;
    4358
Note: See TracChangeset for help on using the changeset viewer.