Types
GlTextureObj = object of RootObj texture*: GLuint size*: Vector2Obj
Procs
proc load(file: string; x, y: var float; mode: GLenum = GL_RGB): GLuint {...}{. raises: [ResourceError, GLerror], tags: [].}
-
Loads image from file and returns texture ID.
Arguments:
- file - image path.
proc load(file: string; mode: GLenum = GL_RGB): GlTextureObj {...}{. raises: [ResourceError, GLerror], tags: [].}
-
Loads GL texture.
Arguments:
- file - image path.
proc freeMemory(self: var GlTextureObj) {...}{.raises: [GLerror], tags: [].}