Draws batched quads using indices.
コード例 #1
0
		public SkeletonRegionRenderer (GraphicsDevice device) {
			this.device = device;

			batcher = new RegionBatcher();

			effect = new BasicEffect(device);
			effect.World = Matrix.Identity;
			effect.View = Matrix.CreateLookAt(new Vector3(0.0f, 0.0f, 1.0f), Vector3.Zero, Vector3.Up);
			effect.TextureEnabled = true;
			effect.VertexColorEnabled = true;

			rasterizerState = new RasterizerState();
			rasterizerState.CullMode = CullMode.None;

			Bone.yDown = true;
		}
コード例 #2
0
        public SkeletonRegionRenderer(GraphicsDevice device)
        {
            this.device = device;

            batcher = new RegionBatcher();

            effect                    = new BasicEffect(device);
            effect.World              = Matrix.Identity;
            effect.View               = Matrix.CreateLookAt(new Vector3(0.0f, 0.0f, 1.0f), Vector3.Zero, Vector3.Up);
            effect.TextureEnabled     = true;
            effect.VertexColorEnabled = true;

            rasterizerState          = new RasterizerState();
            rasterizerState.CullMode = CullMode.None;

            Bone.yDown = true;
        }