Class StencilManager

java.lang.Object
net.minecraftforge.client.StencilManager

public final class StencilManager extends Object
  • Field Details

    • BITS

      private static final BitSet BITS
  • Constructor Details

    • StencilManager

      private StencilManager()
  • Method Details

    • reserveBit

      public static int reserveBit()
      Reserve a stencil bit for use in rendering

      Note: you must check the RenderTarget you are working with to determine if stencil bits are enabled on it before use.

      Returns:
      A bit, or -1 if no further stencil bits are available
    • releaseBit

      public static void releaseBit(int bit)
      Release the stencil bit for other use
      Parameters:
      bit - The bit obtained from reserveBit()