add TextureMode
This commit is contained in:
@@ -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,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,
|
||||
|
||||
Reference in New Issue
Block a user