Example #1
0
    static int IntToEnum(IntPtr L)
    {
        int        arg0 = (int)LuaDLL.lua_tonumber(L, 1);
        TexGenMode o    = (TexGenMode)arg0;

        LuaScriptMgr.PushEnum(L, o);
        return(1);
    }
Example #2
0
    static int SetGlobalTexGenMode(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        string     arg0 = LuaScriptMgr.GetLuaString(L, 1);
        TexGenMode arg1 = LuaScriptMgr.GetNetObject <TexGenMode>(L, 2);

        Shader.SetGlobalTexGenMode(arg0, arg1);
        return(0);
    }
Example #3
0
 public MaterialDef(string id, int index)
 {
     m_ID                     = id;
     m_Index                  = index;
     m_TextureDefID           = null;
     m_Lights                 = new bool[] { false, false, false, false };
     m_PolygonDrawingFace     = PolygonDrawingFace.Front;
     m_Alpha                  = 255;
     m_WireMode               = false;
     m_PolygonMode            = PolygonMode.Modulation;
     m_FogFlag                = true;
     m_DepthTestDecal         = false;
     m_RenderOnePixelPolygons = false;
     m_FarClipping            = true;
     m_Diffuse                = Color.White;
     m_Ambient                = Color.White;
     m_Specular               = Color.White;
     m_Emission               = Color.Black;
     m_TexTiling              = new TexTiling[] { TexTiling.Repeat, TexTiling.Repeat };
     m_TextureScale           = new Vector2(1f, 1f);
     m_TextureRotation        = 0.0f;
     m_TextureTranslation     = new Vector2(0f, 0f);
     m_TexGenMode             = TexGenMode.None;
 }
 public static extern void SetGlobalTexGenMode(string propertyName, TexGenMode mode);
Example #5
0
 public static void SetGlobalTexGenMode(string propertyName, TexGenMode mode)
 {
 }
Example #6
0
 public static void SetGlobalTexGenMode(string propertyName, TexGenMode mode)
 {
     throw new NotImplementedException("ăȘă«ă“ă‚Œ");
 }
Example #7
0
 public MediaTexGen(byte value)
 {
     HasMedia   = (value & _teMediaMask) != 0;
     TexGenMode = (TexGenMode)((value >> _teTexGenShift) & _teTexGenMask);
 }