diff options
Diffstat (limited to 'src/texture.odin')
-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 +} |