aboutsummaryrefslogtreecommitdiff
path: root/include/RenderBackend/OpenGL
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2017-12-27 21:52:21 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-18 15:21:48 +0100
commit2d8b61bf9fc36e933a0091e1098e62faf143412c (patch)
tree6b82990f2f61e0c55085ef65ebaa21e41e55dd43 /include/RenderBackend/OpenGL
parentce271c4c6d0f9c440d90397c07eaa96b0443ff47 (diff)
Add triangle type
Diffstat (limited to 'include/RenderBackend/OpenGL')
-rw-r--r--include/RenderBackend/OpenGL/DeviceMemory.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/RenderBackend/OpenGL/DeviceMemory.hpp b/include/RenderBackend/OpenGL/DeviceMemory.hpp
index 10ed040..c37acfb 100644
--- a/include/RenderBackend/OpenGL/DeviceMemory.hpp
+++ b/include/RenderBackend/OpenGL/DeviceMemory.hpp
@@ -2,6 +2,7 @@
#include "../../DataView.hpp"
#include "../../utils.hpp"
+#include "../../Triangle2D.hpp"
#include <stdexcept>
namespace amalgine
@@ -36,7 +37,8 @@ namespace amalgine
};
~DeviceMemory();
- void copy(const DataView<f32> &data, StorageType storageType, PrimitiveType primitiveType = PrimitiveType::TRIANGLE);
+ //void copy(const DataView<f32> &data, StorageType storageType, PrimitiveType primitiveType = PrimitiveType::TRIANGLE);
+ void copy(const DataView<Triangle2D> &triangles, StorageType storageType);
void draw();
private:
DeviceMemory();