Example #1
0
 public Mesh(GxContext context)
 {
     mContext        = context;
     VertexBuffer    = new VertexBuffer(context);
     IndexBuffer     = new IndexBuffer(context);
     DepthState      = new DepthState(context);
     RasterizerState = new RasterState(context);
     BlendState      = new BlendState(context);
 }
Example #2
0
 public Mesh(GxContext context)
 {
     mContext = context;
     VertexBuffer = new VertexBuffer(context);
     IndexBuffer = new IndexBuffer(context);
     DepthState = new DepthState(context);
     RasterizerState = new RasterState(context);
     BlendState = new BlendState(context);
 }
Example #3
0
File: Mesh.cs Project: veserine/Neo
        public void UpdateDepthState(DepthState state)
        {
            if (mContext.Context.OutputMerger.DepthStencilState != state.Native)
            {
                mContext.Context.OutputMerger.DepthStencilState = state.Native;
            }

            DepthState = state;
        }