aboutsummaryrefslogtreecommitdiff
path: root/Unicity.Renderer/Shapes/Shape.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Unicity.Renderer/Shapes/Shape.cs')
-rw-r--r--Unicity.Renderer/Shapes/Shape.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/Unicity.Renderer/Shapes/Shape.cs b/Unicity.Renderer/Shapes/Shape.cs
new file mode 100644
index 0000000..b051a89
--- /dev/null
+++ b/Unicity.Renderer/Shapes/Shape.cs
@@ -0,0 +1,17 @@
+using System;
+using static Unicity.Renderer.GraphicsRenderer;
+
+namespace Unicity.Renderer.Shapes
+{
+ public class Shape : IDisposable
+ {
+ protected uint[] buffers = new uint[1];
+
+ public void Dispose()
+ {
+ GL.DeleteBuffers(1, buffers);
+ }
+
+ internal virtual void Render() { }
+ }
+}