Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GorgonDepthStencilState"/> class.
 /// </summary>
 internal GorgonDepthStencilState()
 {
     IsDepthWriteEnabled = true;
     DepthComparison     = Comparison.Less;
     StencilReadMask     = 0xff;
     StencilWriteMask    = 0xff;
     BackFaceStencilOp   = new GorgonStencilOperation();
     FrontFaceStencilOp  = new GorgonStencilOperation();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GorgonDepthStencilState"/> class.
 /// </summary>
 /// <param name="state">A <see cref="GorgonDepthStencilState"/> to copy the settings from.</param>
 internal GorgonDepthStencilState(GorgonDepthStencilState state)
 {
     BackFaceStencilOp   = new GorgonStencilOperation(state.BackFaceStencilOp);
     FrontFaceStencilOp  = new GorgonStencilOperation(state.FrontFaceStencilOp);
     DepthComparison     = state.DepthComparison;
     IsDepthWriteEnabled = state.IsDepthWriteEnabled;
     IsDepthEnabled      = state.IsDepthEnabled;
     IsStencilEnabled    = state.IsStencilEnabled;
     StencilReadMask     = state.StencilReadMask;
     StencilWriteMask    = state.StencilWriteMask;
 }