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. |