diff options
author | iurii <[email protected]> | 2024-09-07 12:51:36 +0200 |
---|---|---|
committer | iurii <[email protected]> | 2024-09-07 12:51:36 +0200 |
commit | 7019eba5e9fe2500e30b542e8a982a4edae40940 (patch) | |
tree | 23b8a9de581f30022e7c97b2fa0913bfc9ac30db /src/texture.odin | |
parent | c78784795449732a4d7edb72af28506ab16d0117 (diff) | |
download | funhalla-7019eba5e9fe2500e30b542e8a982a4edae40940.tar.gz |
refactored and wip texture loader
Diffstat (limited to '')
-rw-r--r-- | src/texture.odin | 12 |
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 +} |