diff options
Diffstat (limited to 'src/vk/rectangle.hpp')
-rw-r--r-- | src/vk/rectangle.hpp | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/src/vk/rectangle.hpp b/src/vk/rectangle.hpp index fc21135..faee927 100644 --- a/src/vk/rectangle.hpp +++ b/src/vk/rectangle.hpp @@ -29,36 +29,12 @@ namespace VK struct Rectangle { - static const uint32_t vertex_count{4}; + static const int VertexCount; - float x{0}; - float y{0}; - float width{1}; - float height{1}; + glm::vec4 position; + glm::vec3 color; - QueueFamily *queue_family; - - std::vector<SourceBuffer> source_buffers; - std::vector<DestinationBuffer> vertex_buffers; - - std::vector<UniformBuffer> ub_rectangle; - - VkDescriptorPool descriptor_pool; - std::vector<VkDescriptorSet> descriptor_sets; - - Rectangle() = default; - Rectangle(float x, float y, float width, float height); - ~Rectangle(); - - bool - align_vertically(const Rectangle &that) const; - bool - align_horizontally(const Rectangle &that) const; - bool - collide(const Rectangle &that) const; - - void - update_vertex_buffer(); + Rectangle(glm::vec4 position, glm::vec3 color); }; } |