Package net.minecraft.client.gl
Class Framebuffer
java.lang.Object
net.minecraft.client.gl.Framebuffer
@Environment(CLIENT) public class Framebuffer extends Object
- Mappings:
Namespace Name official dklintermediary net/minecraft/class_276named net/minecraft/client/gl/Framebuffer
-
Field Summary
Fields Modifier and Type Field Description float[]clearColorprivate intcolorAttachmentprivate intdepthAttachmentintfbointtexFilterinttextureHeightinttextureWidthbooleanuseDepthAttachmentintviewportHeightintviewportWidth -
Constructor Summary
Constructors Constructor Description Framebuffer(int width, int height, boolean useDepth, boolean getError) -
Method Summary
Modifier and Type Method Description voidbeginRead()voidbeginWrite(boolean setViewport)private voidbind(boolean updateViewport)voidcheckFramebufferStatus()voidclear(boolean getError)voidcopyDepthFrom(Framebuffer framebuffer)voiddelete()voiddraw(int width, int height)voiddraw(int width, int height, boolean bool)private voiddrawInternal(int width, int height, boolean bool)voidendRead()voidendWrite()intgetColorAttachment()intgetDepthAttachment()voidinitFbo(int width, int height, boolean getError)voidresize(int width, int height, boolean getError)private voidresizeInternal(int width, int height, boolean getError)voidsetClearColor(float r, float g, float b, float a)voidsetTexFilter(int int2)
-
Field Details
-
textureWidth
public int textureWidth- Mappings:
Namespace Name Mixin selector official aLdkl;a:Iintermediary field_1482Lnet/minecraft/class_276;field_1482:Inamed textureWidthLnet/minecraft/client/gl/Framebuffer;textureWidth:I
-
textureHeight
public int textureHeight- Mappings:
Namespace Name Mixin selector official bLdkl;b:Iintermediary field_1481Lnet/minecraft/class_276;field_1481:Inamed textureHeightLnet/minecraft/client/gl/Framebuffer;textureHeight:I
-
viewportWidth
public int viewportWidth- Mappings:
Namespace Name Mixin selector official cLdkl;c:Iintermediary field_1480Lnet/minecraft/class_276;field_1480:Inamed viewportWidthLnet/minecraft/client/gl/Framebuffer;viewportWidth:I
-
viewportHeight
public int viewportHeight- Mappings:
Namespace Name Mixin selector official dLdkl;d:Iintermediary field_1477Lnet/minecraft/class_276;field_1477:Inamed viewportHeightLnet/minecraft/client/gl/Framebuffer;viewportHeight:I
-
useDepthAttachment
public final boolean useDepthAttachment- Mappings:
Namespace Name Mixin selector official eLdkl;e:Zintermediary field_1478Lnet/minecraft/class_276;field_1478:Znamed useDepthAttachmentLnet/minecraft/client/gl/Framebuffer;useDepthAttachment:Z
-
fbo
public int fbo- Mappings:
Namespace Name Mixin selector official fLdkl;f:Iintermediary field_1476Lnet/minecraft/class_276;field_1476:Inamed fboLnet/minecraft/client/gl/Framebuffer;fbo:I
-
colorAttachment
private int colorAttachment- Mappings:
Namespace Name Mixin selector official iLdkl;i:Iintermediary field_1475Lnet/minecraft/class_276;field_1475:Inamed colorAttachmentLnet/minecraft/client/gl/Framebuffer;colorAttachment:I
-
depthAttachment
private int depthAttachment- Mappings:
Namespace Name Mixin selector official jLdkl;j:Iintermediary field_1474Lnet/minecraft/class_276;field_1474:Inamed depthAttachmentLnet/minecraft/client/gl/Framebuffer;depthAttachment:I
-
clearColor
public final float[] clearColor- Mappings:
Namespace Name Mixin selector official gLdkl;g:[Fintermediary field_1479Lnet/minecraft/class_276;field_1479:[Fnamed clearColorLnet/minecraft/client/gl/Framebuffer;clearColor:[F
-
texFilter
public int texFilter- Mappings:
Namespace Name Mixin selector official hLdkl;h:Iintermediary field_1483Lnet/minecraft/class_276;field_1483:Inamed texFilterLnet/minecraft/client/gl/Framebuffer;texFilter:I
-
-
Constructor Details
-
Framebuffer
public Framebuffer(int width, int height, boolean useDepth, boolean getError)- Mappings:
Namespace Name Mixin selector official <init>Ldkl;<init>(IIZZ)Vintermediary <init>Lnet/minecraft/class_276;<init>(IIZZ)Vnamed <init>Lnet/minecraft/client/gl/Framebuffer;<init>(IIZZ)V
-
-
Method Details
-
resize
public void resize(int width, int height, boolean getError)- Mappings:
Namespace Name Mixin selector official aLdkl;a(IIZ)Vintermediary method_1234Lnet/minecraft/class_276;method_1234(IIZ)Vnamed resizeLnet/minecraft/client/gl/Framebuffer;resize(IIZ)V
-
resizeInternal
private void resizeInternal(int width, int height, boolean getError)- Mappings:
Namespace Name Mixin selector official dLdkl;d(IIZ)Vintermediary method_22596Lnet/minecraft/class_276;method_22596(IIZ)Vnamed resizeInternalLnet/minecraft/client/gl/Framebuffer;resizeInternal(IIZ)V
-
delete
public void delete()- Mappings:
Namespace Name Mixin selector official aLdkl;a()Vintermediary method_1238Lnet/minecraft/class_276;method_1238()Vnamed deleteLnet/minecraft/client/gl/Framebuffer;delete()V
-
copyDepthFrom
- Mappings:
Namespace Name Mixin selector official aLdkl;a(Ldkl;)Vintermediary method_29329Lnet/minecraft/class_276;method_29329(Lnet/minecraft/class_276;)Vnamed copyDepthFromLnet/minecraft/client/gl/Framebuffer;copyDepthFrom(Lnet/minecraft/client/gl/Framebuffer;)V
-
initFbo
public void initFbo(int width, int height, boolean getError)- Mappings:
Namespace Name Mixin selector official bLdkl;b(IIZ)Vintermediary method_1231Lnet/minecraft/class_276;method_1231(IIZ)Vnamed initFboLnet/minecraft/client/gl/Framebuffer;initFbo(IIZ)V
-
setTexFilter
public void setTexFilter(int int2)- Mappings:
Namespace Name Mixin selector official aLdkl;a(I)Vintermediary method_1232Lnet/minecraft/class_276;method_1232(I)Vnamed setTexFilterLnet/minecraft/client/gl/Framebuffer;setTexFilter(I)V
-
checkFramebufferStatus
public void checkFramebufferStatus()- Mappings:
Namespace Name Mixin selector official bLdkl;b()Vintermediary method_1239Lnet/minecraft/class_276;method_1239()Vnamed checkFramebufferStatusLnet/minecraft/client/gl/Framebuffer;checkFramebufferStatus()V
-
beginRead
public void beginRead()- Mappings:
Namespace Name Mixin selector official cLdkl;c()Vintermediary method_1241Lnet/minecraft/class_276;method_1241()Vnamed beginReadLnet/minecraft/client/gl/Framebuffer;beginRead()V
-
endRead
public void endRead()- Mappings:
Namespace Name Mixin selector official dLdkl;d()Vintermediary method_1242Lnet/minecraft/class_276;method_1242()Vnamed endReadLnet/minecraft/client/gl/Framebuffer;endRead()V
-
beginWrite
public void beginWrite(boolean setViewport)- Mappings:
Namespace Name Mixin selector official aLdkl;a(Z)Vintermediary method_1235Lnet/minecraft/class_276;method_1235(Z)Vnamed beginWriteLnet/minecraft/client/gl/Framebuffer;beginWrite(Z)V
-
bind
private void bind(boolean updateViewport)- Mappings:
Namespace Name Mixin selector official cLdkl;c(Z)Vintermediary method_22595Lnet/minecraft/class_276;method_22595(Z)Vnamed bindLnet/minecraft/client/gl/Framebuffer;bind(Z)V
-
endWrite
public void endWrite()- Mappings:
Namespace Name Mixin selector official eLdkl;e()Vintermediary method_1240Lnet/minecraft/class_276;method_1240()Vnamed endWriteLnet/minecraft/client/gl/Framebuffer;endWrite()V
-
setClearColor
public void setClearColor(float r, float g, float b, float a)- Mappings:
Namespace Name Mixin selector official aLdkl;a(FFFF)Vintermediary method_1236Lnet/minecraft/class_276;method_1236(FFFF)Vnamed setClearColorLnet/minecraft/client/gl/Framebuffer;setClearColor(FFFF)V
-
draw
public void draw(int width, int height)- Mappings:
Namespace Name Mixin selector official aLdkl;a(II)Vintermediary method_1237Lnet/minecraft/class_276;method_1237(II)Vnamed drawLnet/minecraft/client/gl/Framebuffer;draw(II)V
-
draw
public void draw(int width, int height, boolean bool)- Mappings:
Namespace Name Mixin selector official cLdkl;c(IIZ)Vintermediary method_22594Lnet/minecraft/class_276;method_22594(IIZ)Vnamed drawLnet/minecraft/client/gl/Framebuffer;draw(IIZ)V
-
drawInternal
private void drawInternal(int width, int height, boolean bool)- Mappings:
Namespace Name Mixin selector official eLdkl;e(IIZ)Vintermediary method_1233Lnet/minecraft/class_276;method_1233(IIZ)Vnamed drawInternalLnet/minecraft/client/gl/Framebuffer;drawInternal(IIZ)V
-
clear
public void clear(boolean getError)- Mappings:
Namespace Name Mixin selector official bLdkl;b(Z)Vintermediary method_1230Lnet/minecraft/class_276;method_1230(Z)Vnamed clearLnet/minecraft/client/gl/Framebuffer;clear(Z)V
-
getColorAttachment
public int getColorAttachment()- Mappings:
Namespace Name Mixin selector official fLdkl;f()Iintermediary method_30277Lnet/minecraft/class_276;method_30277()Inamed getColorAttachmentLnet/minecraft/client/gl/Framebuffer;getColorAttachment()I
-
getDepthAttachment
public int getDepthAttachment()- Mappings:
Namespace Name Mixin selector official gLdkl;g()Iintermediary method_30278Lnet/minecraft/class_276;method_30278()Inamed getDepthAttachmentLnet/minecraft/client/gl/Framebuffer;getDepthAttachment()I
-