Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
VulkanVertexArrayObject.hpp
1#pragma once
2
3#include <vector>
4
5#include <Common/Graphics/VertexArrayObject.hpp>
6
7namespace Grindstone::GraphicsAPI::Vulkan {
8 class VertexBuffer;
9 class IndexBuffer;
10
12 public:
13 VertexArrayObject(const CreateInfo& createInfo);
14
15 // Inherited from VertexArrayObject
16 virtual ~VertexArrayObject() override;
17 virtual void Bind() override;
18 virtual void Unbind() override;
19 public:
20 std::vector<GraphicsAPI::VertexBuffer*>& GetVertexBuffers();
21 GraphicsAPI::IndexBuffer* GetIndexBuffer() const;
22 private:
23 std::vector<GraphicsAPI::VertexBuffer*> vertexBuffers;
24 GraphicsAPI::IndexBuffer* indexBuffer = nullptr;
25 };
26}
Definition IndexBuffer.hpp:11
Definition VertexArrayObject.hpp:10
Definition VulkanVertexArrayObject.hpp:11