Класс модели без индексов

This commit is contained in:
2022-04-07 12:15:15 +03:00
parent 7fd9bbd4d9
commit 688d404c6a
2 changed files with 49 additions and 0 deletions

20
include/Model.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef MODEL_H
#define MODEL_H
#include "I_Model.h"
#include "Vertex.h"
// Класс модели без индексов
class Model_wo_indexes : public I_Model
{
public:
Model_wo_indexes(Vertex* vertexArray, uint32_t verteciesCount);
~Model_wo_indexes();
virtual void render(VkCommandBuffer commandBuffer);
private:
uint32_t verteciesCount; // Количество вершин
VkBuffer vertexBuffer; // Буфер вершин
};
#endif // MODEL_H