summary refs log tree commit diff
path: root/src/texture.odin
diff options
context:
space:
mode:
Diffstat (limited to 'src/texture.odin')
-rw-r--r--src/texture.odin12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/texture.odin b/src/texture.odin
new file mode 100644
index 0000000..45edf56
--- /dev/null
+++ b/src/texture.odin
@@ -0,0 +1,12 @@
+package funhalla
+
+import gl "vendor:OpenGL"
+import "vendor:stb/image"
+
+load_texture :: proc(path: cstring) {
+  texture_id : u32
+
+  gl.GenTextures(1, &texture_id)
+
+  width, height, nr_components : u32
+}