add TextureMode

This commit is contained in:
Glenn Maynard
2007-02-13 03:59:00 +00:00
parent 99765bfb0a
commit d7833bb019
2 changed files with 26 additions and 0 deletions
+9
View File
@@ -81,6 +81,15 @@ static const char *BlendModeNames[] =
XToString( BlendMode );
LuaXType( BlendMode );
static const char *TextureModeNames[] =
{
"Modulate",
"Glow",
"Add",
};
XToString( TextureMode );
LuaXType( TextureMode );
static const char *ZTestModeNames[] =
{
+17
View File
@@ -17,6 +17,23 @@ enum BlendMode
};
LuaDeclareType( BlendMode );
enum TextureMode
{
/* Affects one texture stage. Texture is modulated with the diffuse color. */
TextureMode_Modulate,
/* Affects one texture stage. Color is replaced with white, leaving alpha. Used
* with BLEND_ADD to add glow. */
TextureMode_Glow,
/* Affects one texture stage. Color is added to the previous texture stage. */
TextureMode_Add,
NUM_TextureMode,
TextureMode_Invalid
};
LuaDeclareType( TextureMode );
enum CullMode
{
CULL_BACK,