コード例 #1
0
        public State()
        {
            this.CullFace      = Face.Back;
            this.Culling       = true;
            this.MultiSampling = false;
            this.Blending      = false;
            this.DepthTest     = true;
            this.AlphaTest     = false;
            this.StencilTest   = false;
            this.Lighting      = false;
            this.ClipPlane0    = new ClipPlane();
            this.ClipPlane1    = new ClipPlane();
            this.ClipPlane2    = new ClipPlane();
            this.ClipPlane3    = new ClipPlane();
            this.ClipPlane4    = new ClipPlane();
            this.ClipPlane5    = new ClipPlane();
            this.Lights        = new Light[8];
            for (int i = 0; i < this.Lights.Length; i++)
            {
                this.Lights[i] = new Light();
            }
            this.Fog = new Fog();

            this.PerspectiveCorrectionHint = Hint.Nicest;
            this.PointSmoothHint           = Hint.Nicest;
            this.LineSmoothHint            = Hint.Nicest;
            this.PolygonSmoothHint         = Hint.Nicest;
            this.LineWidth = 1.0f;


            this.PolygonMode   = new PolygonMode();
            this.DepthFunction = new DepthFunction();
            this.AlphaFunction = new AlphaFunction();
            this.BlendFunction = new BlendFunction();
        }
コード例 #2
0
ファイル: State.cs プロジェクト: sinclairzx81/vector-cs
        public State()
        {
            this.CullFace                  = Face.Back;
            this.Culling                   = true;
            this.MultiSampling             = false;
            this.Blending                  = false;
            this.DepthTest                 = true;
            this.AlphaTest                 = false;
            this.StencilTest               = false;
            this.Lighting                  = false;
            this.ClipPlane0                = new ClipPlane();
            this.ClipPlane1                = new ClipPlane();
            this.ClipPlane2                = new ClipPlane();
            this.ClipPlane3                = new ClipPlane();
            this.ClipPlane4                = new ClipPlane();
            this.ClipPlane5                = new ClipPlane();
            this.Lights                    = new Light[8];
            for (int i = 0; i < this.Lights.Length; i++) this.Lights[i] = new Light();
            this.Fog                       = new Fog();

            this.PerspectiveCorrectionHint = Hint.Nicest;
            this.PointSmoothHint           = Hint.Nicest;
            this.LineSmoothHint            = Hint.Nicest;
            this.PolygonSmoothHint         = Hint.Nicest;
            this.LineWidth                 = 1.0f;

            
            this.PolygonMode               = new PolygonMode();
            this.DepthFunction             = new DepthFunction();
            this.AlphaFunction             = new AlphaFunction();
            this.BlendFunction             = new BlendFunction();
        }