generated from TropheusJ/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
129 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
...main/java/io/github/fabricators_of_create/porting_lib/item/impl/client/GlStateBackup.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package io.github.fabricators_of_create.porting_lib.item.impl.client; | ||
|
||
import com.mojang.blaze3d.systems.RenderSystem; | ||
|
||
/** | ||
* 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. | ||
* | ||
* <p>Create a backup before changing the global render state with {@link RenderSystem#backupGlState(GlStateBackup)}, | ||
* and apply the backup with {@link RenderSystem#restoreGlState(GlStateBackup)}. | ||
*/ | ||
public final class GlStateBackup { | ||
public boolean blendEnabled; | ||
public int blendSrcRgb; | ||
public int blendDestRgb; | ||
public int blendSrcAlpha; | ||
public int blendDestAlpha; | ||
public boolean depthEnabled; | ||
public boolean depthMask; | ||
public int depthFunc; | ||
public boolean cullEnabled; | ||
public boolean polyOffsetFillEnabled; | ||
public boolean polyOffsetLineEnabled; | ||
public float polyOffsetFactor; | ||
public float polyOffsetUnits; | ||
public boolean colorLogicEnabled; | ||
public int colorLogicOp; | ||
public int stencilFuncFunc; | ||
public int stencilFuncRef; | ||
public int stencilFuncMask; | ||
public int stencilMask; | ||
public int stencilFail; | ||
public int stencilZFail; | ||
public int stencilZPass; | ||
public boolean scissorEnabled; | ||
public boolean colorMaskRed; | ||
public boolean colorMaskGreen; | ||
public boolean colorMaskBlue; | ||
public boolean colorMaskAlpha; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
accessWidener v2 named | ||
accessible field com/mojang/blaze3d/platform/GlStateManager BLEND Lcom/mojang/blaze3d/platform/GlStateManager$BlendState; | ||
accessible field com/mojang/blaze3d/platform/GlStateManager DEPTH Lcom/mojang/blaze3d/platform/GlStateManager$DepthState; | ||
accessible field com/mojang/blaze3d/platform/GlStateManager CULL Lcom/mojang/blaze3d/platform/GlStateManager$CullState; | ||
accessible field com/mojang/blaze3d/platform/GlStateManager POLY_OFFSET Lcom/mojang/blaze3d/platform/GlStateManager$PolygonOffsetState; | ||
accessible field com/mojang/blaze3d/platform/GlStateManager COLOR_LOGIC Lcom/mojang/blaze3d/platform/GlStateManager$ColorLogicState; | ||
accessible field com/mojang/blaze3d/platform/GlStateManager STENCIL Lcom/mojang/blaze3d/platform/GlStateManager$StencilState; | ||
accessible field com/mojang/blaze3d/platform/GlStateManager SCISSOR Lcom/mojang/blaze3d/platform/GlStateManager$ScissorState; | ||
accessible field com/mojang/blaze3d/platform/GlStateManager COLOR_MASK Lcom/mojang/blaze3d/platform/GlStateManager$ColorMask; | ||
|
||
accessible class com/mojang/blaze3d/platform/GlStateManager$BlendState | ||
accessible class com/mojang/blaze3d/platform/GlStateManager$DepthState | ||
accessible class com/mojang/blaze3d/platform/GlStateManager$CullState | ||
accessible class com/mojang/blaze3d/platform/GlStateManager$PolygonOffsetState | ||
accessible class com/mojang/blaze3d/platform/GlStateManager$ColorLogicState | ||
accessible class com/mojang/blaze3d/platform/GlStateManager$StencilState | ||
accessible class com/mojang/blaze3d/platform/GlStateManager$ScissorState | ||
accessible class com/mojang/blaze3d/platform/GlStateManager$ColorMask | ||
|
||
accessible class com/mojang/blaze3d/platform/GlStateManager$BooleanState | ||
accessible field com/mojang/blaze3d/platform/GlStateManager$BooleanState enabled Z | ||
|
||
accessible class com/mojang/blaze3d/platform/GlStateManager$StencilFunc |