summary refs log tree commit diff
path: root/src/texture.odin
diff options
context:
space:
mode:
authoriurii <[email protected]>2024-09-07 12:51:36 +0200
committeriurii <[email protected]>2024-09-07 12:51:36 +0200
commit7019eba5e9fe2500e30b542e8a982a4edae40940 (patch)
tree23b8a9de581f30022e7c97b2fa0913bfc9ac30db /src/texture.odin
parentc78784795449732a4d7edb72af28506ab16d0117 (diff)
downloadfunhalla-7019eba5e9fe2500e30b542e8a982a4edae40940.tar.gz
refactored and wip texture loader
Diffstat (limited to '')
-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
+}