add EffectMode
This commit is contained in:
@@ -210,6 +210,8 @@ public:
|
||||
virtual void SetTextureWrapping( TextureUnit tu, bool b ) = 0;
|
||||
virtual int GetMaxTextureSize() const = 0;
|
||||
virtual void SetTextureFiltering( TextureUnit tu, bool b ) = 0;
|
||||
virtual void SetEffectMode( EffectMode effect ) { }
|
||||
virtual bool IsEffectModeSupported( EffectMode effect ) { return effect == EffectMode_Normal; }
|
||||
|
||||
bool SupportsRenderToTexture() const { return false; }
|
||||
|
||||
|
||||
@@ -91,6 +91,15 @@ XToString( TextureMode );
|
||||
LuaXType( TextureMode );
|
||||
|
||||
|
||||
static const char *EffectModeNames[] =
|
||||
{
|
||||
/* Normal blending. All supported texture modes have their standard effects. */
|
||||
"Normal",
|
||||
};
|
||||
XToString( EffectMode );
|
||||
LuaXType( EffectMode );
|
||||
|
||||
|
||||
static const char *ZTestModeNames[] =
|
||||
{
|
||||
"Off",
|
||||
|
||||
@@ -34,6 +34,14 @@ enum TextureMode
|
||||
};
|
||||
LuaDeclareType( TextureMode );
|
||||
|
||||
enum EffectMode
|
||||
{
|
||||
EffectMode_Normal,
|
||||
NUM_EffectMode,
|
||||
EffectMode_Invalid
|
||||
};
|
||||
LuaDeclareType( EffectMode );
|
||||
|
||||
enum CullMode
|
||||
{
|
||||
CULL_BACK,
|
||||
|
||||
Reference in New Issue
Block a user