39 void update(uint32_t currentFrame)
override;
42 = std::vector<uint16_t> { 0, 1, 2, 2, 3, 0 };
45 = std::vector<TexturedVertex> { { { -0.5f, -0.5f },
47 { { 0.5f, -0.5f }, { 0.0f, 0.0f } },
48 { { 0.5f, 0.5f }, { 0.0f, 1.0f } },
49 { { -0.5f, 0.5f }, { 1.0f, 1.0f } } };
57 void render(uint32_t currentFrame, uint32_t imageIndex,
58 float bgColor[3], VkViewport& viewport, VkRect2D& scissor,
59 std::vector<VkCommandBuffer>& commandBuffers)
override;
This file includes the structure of a vertex.
Used to store buffers in GPU.
This initializes, manages and destroys the logical and physical devices(GPU).
Abstract class for creating and managing generic graphical objects.
VkCommandPool commandPool
Chronos::Engine::SwapChain * swapChain
Chronos::Engine::Device * device
VkRenderPass * renderPass
This class holds the Vulkan data and objects needed for a texture.
void update(uint32_t currentFrame) override
Updates the object for the current frame.
void destroy() override
Destroys the object and releases associated resources.
Chronos::Engine::Buffer indexBuffer
The index buffer that is used to store the indices.
std::vector< VkShaderStageFlagBits > getDescriptorStages() override
void init(Chronos::Engine::Device *device, VkCommandPool commandPool, Chronos::Engine::SwapChain *swapChain, VkSampler textureSampler, Chronos::Engine::Texture texture, VkRenderPass *renderPass)
void createDescriptorSets() override
const std::vector< uint16_t > indices
const std::vector< TexturedVertex > vertices
void render(uint32_t currentFrame, uint32_t imageIndex, float bgColor[3], VkViewport &viewport, VkRect2D &scissor, std::vector< VkCommandBuffer > &commandBuffers) override
PipelineAttributes getPipelineAttributes() override
std::vector< VkDescriptorType > getDescriptorTypes() override
Chronos::Manager::ShapeParams params
Chronos::Engine::Texture texture
Chronos::Engine::Buffer vertexBuffer
The vertex buffer that is used to store the vertices.
Header file that contains common structs used in Chronos.
Contains the class for creating a generic object.
Structure defining attributes required for creating a graphics pipeline.
Parameters for creating a shape(any)
Contains the functions for image manipulation along with the Texture class.