Types
GlTextureObj = object texture*: GLuint size*: Vector2Ref
Procs
proc load(file: cstring; size: var Vector2Ref; mode: GLenum = GL_RGB): GLuint {...}{. raises: [GLerror], tags: [].}
-
Loads image from file and returns texture ID.
Arguments:
- file - image path.
proc load(file: cstring; mode: GLenum = GL_RGB): GlTextureObj {...}{.raises: [GLerror], tags: [].}
-
Loads GL texture.
Arguments:
- file - image path.