![]() |
| home | graph lib | utility lib | custom lib | auxiliary lib | tutorials | |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
zeLineUse .new("line") to create the object. It is one of the shape objects that the OpenGL display list is implemented. Rendering of the line object is compiled into the display list if activated by the render. By default the object is treated as GL_LINE_STRIP with line width of one and style of solid. Improperly setting the line type is the most misuse of the object. When the rendered result is not what you anticipated, check the call object:set{type="?"}. The order of callig translate, scale, and rotate functions are important. :rotatex(angle) angle - rotation angle in degree. These functions rotate the object around the x-, y- and z-axis, respectively. The order they are called is important. :reset() Resets transformations to none. :scale(xs, ys, zs) xs, ys, zs - numbers. Scales the object in x, y, and z direction for the factors of xs, ys, and zs. :translate(dx, dy, dz) dx, dy, dz - numbers. Moves the object dx, dy, and dz away from the current position. :update() Forces updating in the rendering of the object. It should be used in such a case as the data of its vertex are changed because the object is aware of the change of its vertex but but vertex contents. :set(table) table - a Lua table. Sets line properties. Valid key-value paris are listed in the table.
|