
| Graph axis blend color color bar fog freetype light line material node point plot polygon render scene stencil texcoord text texture vertex Utility array bio hdf make math netcdf Auxiliary curl expact sqlite window |
zeTexCoordUse .new("texcoord") to create the object. It is used to hold texture coordinates of vertices and can be shared by multiple shape objects. :add(s, t) Adds a texture coordinate to the object. :add{s, t, ...} Adds texture coordinates to the object through Lua table, which should contain s and t coordinates. :add(array) Transfers data in the array of double type 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(index) Returns the coordinate s and t at the index (the first index is 0). :get(arr) Transfers texture coordinate data to the array. The array must have two vectors and the same number of records as the texture coordinate object. :size() Returns the number of texture coordinates the object contains.
|