diff options
| author | Adrian Ulbrich <adrian.ulbrich.2003@gmail.com> | 2019-11-04 00:36:44 +0100 |
|---|---|---|
| committer | Adrian Ulbrich <adrian.ulbrich.2003@gmail.com> | 2019-11-04 00:36:44 +0100 |
| commit | 5d4b4023bddd12e27c6756793aea2ff36d49e124 (patch) | |
| tree | 7d66eac7b7b2d7ffe647aa8a34bc544fd770a23b /Unicity.Renderer/Shapes/Shape.cs | |
| parent | 0fec6725547868de242aaf9035eedf99f7be3233 (diff) | |
| download | Unicity-5d4b4023bddd12e27c6756793aea2ff36d49e124.tar.gz Unicity-5d4b4023bddd12e27c6756793aea2ff36d49e124.tar.bz2 Unicity-5d4b4023bddd12e27c6756793aea2ff36d49e124.zip | |
Upload code
Diffstat (limited to 'Unicity.Renderer/Shapes/Shape.cs')
| -rw-r--r-- | Unicity.Renderer/Shapes/Shape.cs | 17 |
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() { } + } +} |
