Vivid
Loading...
Searching...
No Matches
Shape.h
1#pragma once
2
3#include "core/renderer/VertexBuffer.h"
4#include "common/types/SmartPointers.h"
5
6namespace Vivid
7{
8 class Shape
9 {
10 protected:
11 Vector<Vertex> m_Pos;
12 Vector<unsigned int> m_Ind;
13
14 public:
15 Shape() = default;
16
17 Vector<Vertex>& GetPositions() { return m_Pos; };
18
19 Vector<unsigned int>& GetIndices() { return m_Ind; };
20
21 size_t GetPositionsSize() { return sizeof(m_Pos); };
22
23 size_t GetIndicesSize() { return sizeof(m_Ind); };
24 };
25}