Types
TileSetObj = ref object grid*, size*: Vector2Obj texture*: GLuint
Procs
proc TileSet(img: string; tile_size: Vector2Obj; mode: GLenum = GL_RGB): TileSetObj {...}{. raises: [ResourceError, GLerror], tags: [].}
- Creates a new TileSet from image
proc draw(self: TileSetObj; tilex, tiley, x, y, z: float) {...}{.raises: [GLerror], tags: [].}
- Draws tile at position tilex,`tiley` to x,`y` position.
proc freeMemory(self: TileSetObj) {...}{.raises: [GLerror], tags: [].}