Package net.neoforged.neoforge.client
Class GlStateBackup
java.lang.Object
net.neoforged.neoforge.client.GlStateBackup
Backup of the OpenGL render state, for use in GUI rendering that needs to be able to go back to the previous
 render state after calling third-party renderers which may apply arbitrary modifications to the render state.
 
Create a backup before changing the global render state with RenderSystem.backupGlState(GlStateBackup),
 and apply the backup with RenderSystem.restoreGlState(GlStateBackup).
- 
Field SummaryFieldsModifier and TypeFieldDescriptionintintbooleanintintbooleanintbooleanbooleanbooleanbooleanbooleanbooleanintbooleanfloatbooleanbooleanfloatbooleanintintintintintintint
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
blendEnabledpublic boolean blendEnabled
- 
blendSrcRgbpublic int blendSrcRgb
- 
blendDestRgbpublic int blendDestRgb
- 
blendSrcAlphapublic int blendSrcAlpha
- 
blendDestAlphapublic int blendDestAlpha
- 
depthEnabledpublic boolean depthEnabled
- 
depthMaskpublic boolean depthMask
- 
depthFuncpublic int depthFunc
- 
cullEnabledpublic boolean cullEnabled
- 
polyOffsetFillEnabledpublic boolean polyOffsetFillEnabled
- 
polyOffsetLineEnabledpublic boolean polyOffsetLineEnabled
- 
polyOffsetFactorpublic float polyOffsetFactor
- 
polyOffsetUnitspublic float polyOffsetUnits
- 
colorLogicEnabledpublic boolean colorLogicEnabled
- 
colorLogicOppublic int colorLogicOp
- 
stencilFuncFuncpublic int stencilFuncFunc
- 
stencilFuncRefpublic int stencilFuncRef
- 
stencilFuncMaskpublic int stencilFuncMask
- 
stencilMaskpublic int stencilMask
- 
stencilFailpublic int stencilFail
- 
stencilZFailpublic int stencilZFail
- 
stencilZPasspublic int stencilZPass
- 
scissorEnabledpublic boolean scissorEnabled
- 
colorMaskRedpublic boolean colorMaskRed
- 
colorMaskGreenpublic boolean colorMaskGreen
- 
colorMaskBluepublic boolean colorMaskBlue
- 
colorMaskAlphapublic boolean colorMaskAlpha
 
- 
- 
Constructor Details- 
GlStateBackuppublic GlStateBackup()
 
-