From 66b1e02847e08b8e66e9969f0a3d138c15cc70f4 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 21 Jul 2024 17:48:00 +1000 Subject: terrain/hmap skeleton --- src/ral/backends/opengl/backend_opengl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ral/backends/opengl/backend_opengl.c') diff --git a/src/ral/backends/opengl/backend_opengl.c b/src/ral/backends/opengl/backend_opengl.c index ec01214..7929a16 100644 --- a/src/ral/backends/opengl/backend_opengl.c +++ b/src/ral/backends/opengl/backend_opengl.c @@ -246,6 +246,8 @@ BufferHandle GPU_BufferCreate(u64 size, GPU_BufferType buf_type, GPU_BufferFlags return handle; } +void GPU_BufferDestroy(BufferHandle handle) { glDeleteBuffers(1, &handle.raw); } + TextureHandle GPU_TextureCreate(TextureDesc desc, bool create_view, const void* data) { // "allocating" the cpu-side struct TextureHandle handle; -- cgit v1.2.3-70-g09d2