Package net.neoforged.neoforge.client
Class StencilManager
java.lang.Object
net.neoforged.neoforge.client.StencilManager
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
releaseBit
(int bit) Release the stencil bit for other usestatic int
Reserve a stencil bit for use in rendering
-
Field Details
-
BITS
-
-
Constructor Details
-
StencilManager
private StencilManager()
-
-
Method Details
-
reserveBit
public static int reserveBit()Reserve a stencil bit for use in renderingNote: 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 fromreserveBit()
-