![]() |
| home | graph lib | utility lib | custom lib | auxiliary lib | tutorials | |
|
zeTexCoordUse .new("texcoord") to create the object. It is used to hold texture coordinates of vertices. It can be shared by multiple shape objects. :add(s, t) s - a number between 0 and 1 for the s-coordinate of texture.t - a number between 0 and 1 for the t-coordinate of texture. Adds a texture coordinate to the object. :add(table) table - a Lua table containing only numbers Adds texture coordinates to the object using Lua table, which should contain s and t coordinates. :add(array) array - a zeArray object od double floating type. Transfers data in the array to the texture coordinate object. The number of vectors of the array must larger than or equal to two. Texture coordinates of s and t should be in the first and the second vectors. :clear() Clears data in the object. :get(idx) idx - the index number. Returns s and t at the index. The first s and t are at index 0. :size() Returns the number of texture coordinates the object contains.
|