summary refs log tree commit diff
path: root/src/texture.odin
blob: 45edf5650c8c2ac9cd0d9dbaef50b740cb09db93 (plain)
1
2
3
4
5
6
7
8
9
10
11
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
}