Exemple #1
0
 /// <summary>
 /// Sets stencil test state.
 /// </summary>
 /// <param name="frontFace">The stencil state to use for front faces.</param>
 public void SetStencil(StencilFlags frontFace)
 {
     SetStencil(frontFace, StencilFlags.None);
 }
Exemple #2
0
 /// <summary>
 /// Sets stencil test state.
 /// </summary>
 /// <param name="frontFace">The stencil state to use for front faces.</param>
 /// <param name="backFace">The stencil state to use for back faces.</param>
 public void SetStencil(StencilFlags frontFace, StencilFlags backFace)
 {
     NativeMethods.bgfx_encoder_set_stencil(ptr, (uint)frontFace, (uint)backFace);
 }
Exemple #3
0
 /// <summary>
 /// Sets stencil test state.
 /// </summary>
 /// <param name="frontFace">The stencil state to use for front faces.</param>
 /// <param name="backFace">The stencil state to use for back faces.</param>
 public static void SetStencil(StencilFlags frontFace, StencilFlags backFace)
 {
     NativeMethods.bgfx_set_stencil((uint)frontFace, (uint)backFace);
 }