1.2

| home | graph lib | utility lib | custom lib | auxiliary lib | tutorials |

   Axis
   Blend
   Color
   ColorBar
   Fog
   Freetype
   Light
   Line
   Material
   Node
   Point
   Plot
   Polygon
   Render
   Scene
   Stencil
   TexCoord
   Text
   Texture
   Vertex

zeTexture

Use .new("texture") to create the object. It loads an image from a file and uses it as the texture of objects that has texture coordinates.

:set(table)

table - a Lua table. Sets texture properties. Valid key-value paris are listed in the table.

Key Value Type Remark
env modulater String Sets the texture environment parameter of the OpenGL glTexEnvi() function to GL_MODULATE (default).
  decal String Sets the texture environment parameter of the OpenGL glTexEnvi() function to GL_DECAL.
  blend String Sets the texture environment parameter of the OpenGL glTexEnvi() function to GL_BLEND.
warps clamp String Sets the texture parameter of the OpenGL glTexParameteri() function to GL_TEXTURE_WRAP_S and GL_CLAMP.
  repeat String Sets the texture parameter of the OpenGL glTexParameteri() function to GL_TEXTURE_WRAP_S and GL_REPEAT.
warpt clamp String Sets the texture parameter of the OpenGL glTexParameteri() function to GL_TEXTURE_WRAP_T and GL_CLAMP.
  repeat String Sets the texture parameter of the OpenGL glTexParameteri() function to GL_TEXTURE_WRAP_T and GL_REPEAT.
min linear String Sets the texture parameter of the OpenGL glTexParameteri() function to GL_TEXTURE_MIN_FILTE and GL_LINEAR.
  nearest String Sets the texture parameter of the OpenGL glTexParameteri() function to GL_TEXTURE_MIN_FILTE and GL_NEAREST.
mag linear String Sets the texture parameter of the OpenGL glTexParameteri() function to GL_TEXTURE_MAG_FILTE and GL_LINEAR.
  nearest String Sets the texture parameter of the OpenGL glTexParameteri() function to GL_TEXTURE_MAG_FILTE and GL_NEAREST.
enable flag Boolean If true, enables the object; otherwise disables it.
image file String Loads the image as the texture.