Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
Arquivo: Mesh.cs Projeto: veserine/Neo
        public void UpdateDepthState(DepthState state)
        {
            if (mContext.Context.OutputMerger.DepthStencilState != state.Native)
            {
                mContext.Context.OutputMerger.DepthStencilState = state.Native;
            }

            DepthState = state;
        }