From 2d8b61bf9fc36e933a0091e1098e62faf143412c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 27 Dec 2017 21:52:21 +0100 Subject: Add triangle type --- include/RenderBackend/OpenGL/DeviceMemory.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/RenderBackend') 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 namespace amalgine @@ -36,7 +37,8 @@ namespace amalgine }; ~DeviceMemory(); - void copy(const DataView &data, StorageType storageType, PrimitiveType primitiveType = PrimitiveType::TRIANGLE); + //void copy(const DataView &data, StorageType storageType, PrimitiveType primitiveType = PrimitiveType::TRIANGLE); + void copy(const DataView &triangles, StorageType storageType); void draw(); private: DeviceMemory(); -- cgit v1.2.3