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 bfwintermediary net/minecraft/class_1040named net/minecraft/client/gl/Framebuffer
-
Field Summary
Fields Modifier and Type Field Description float[]clearColorintcolorAttachmentintdepthAttachmentintfbointtexFilterinttextureHeightinttextureWidthbooleanuseDepthAttachmentintviewportHeightintviewportWidth -
Constructor Summary
Constructors Constructor Description Framebuffer(int width, int height, boolean useDepth) -
Method Summary
Modifier and Type Method Description voidattachTexture(int width, int height)voidbeginRead()voidbind(boolean viewPort)voidcheckFramebufferStatus()voidclear()voiddelete()voiddraw(int width, int height)voiddrawInternal(int width, int height, boolean colorMaterial)voidendRead()voidendWrite()voidresize(int width, int height)voidsetClearColor(float r, float g, float b, float a)voidsetTexFilter(int texFilter)
-
Field Details
-
textureWidth
public int textureWidth- Mappings:
Namespace Name Mixin selector official aLbfw;a:Iintermediary field_4476Lnet/minecraft/class_1040;field_4476:Inamed textureWidthLnet/minecraft/client/gl/Framebuffer;textureWidth:I
-
textureHeight
public int textureHeight- Mappings:
Namespace Name Mixin selector official bLbfw;b:Iintermediary field_4477Lnet/minecraft/class_1040;field_4477:Inamed textureHeightLnet/minecraft/client/gl/Framebuffer;textureHeight:I
-
viewportWidth
public int viewportWidth- Mappings:
Namespace Name Mixin selector official cLbfw;c:Iintermediary field_4478Lnet/minecraft/class_1040;field_4478:Inamed viewportWidthLnet/minecraft/client/gl/Framebuffer;viewportWidth:I
-
viewportHeight
public int viewportHeight- Mappings:
Namespace Name Mixin selector official dLbfw;d:Iintermediary field_4479Lnet/minecraft/class_1040;field_4479:Inamed viewportHeightLnet/minecraft/client/gl/Framebuffer;viewportHeight:I
-
useDepthAttachment
public boolean useDepthAttachment- Mappings:
Namespace Name Mixin selector official eLbfw;e:Zintermediary field_4480Lnet/minecraft/class_1040;field_4480:Znamed useDepthAttachmentLnet/minecraft/client/gl/Framebuffer;useDepthAttachment:Z
-
fbo
public int fbo- Mappings:
Namespace Name Mixin selector official fLbfw;f:Iintermediary field_4481Lnet/minecraft/class_1040;field_4481:Inamed fboLnet/minecraft/client/gl/Framebuffer;fbo:I
-
colorAttachment
public int colorAttachment- Mappings:
Namespace Name Mixin selector official gLbfw;g:Iintermediary field_4482Lnet/minecraft/class_1040;field_4482:Inamed colorAttachmentLnet/minecraft/client/gl/Framebuffer;colorAttachment:I
-
depthAttachment
public int depthAttachment- Mappings:
Namespace Name Mixin selector official hLbfw;h:Iintermediary field_4483Lnet/minecraft/class_1040;field_4483:Inamed depthAttachmentLnet/minecraft/client/gl/Framebuffer;depthAttachment:I
-
clearColor
public float[] clearColor- Mappings:
Namespace Name Mixin selector official iLbfw;i:[Fintermediary field_4484Lnet/minecraft/class_1040;field_4484:[Fnamed clearColorLnet/minecraft/client/gl/Framebuffer;clearColor:[F
-
texFilter
public int texFilter- Mappings:
Namespace Name Mixin selector official jLbfw;j:Iintermediary field_4485Lnet/minecraft/class_1040;field_4485:Inamed texFilterLnet/minecraft/client/gl/Framebuffer;texFilter:I
-
-
Constructor Details
-
Framebuffer
public Framebuffer(int width, int height, boolean useDepth)- Mappings:
Namespace Name Mixin selector official <init>Lbfw;<init>(IIZ)Vintermediary <init>Lnet/minecraft/class_1040;<init>(IIZ)Vnamed <init>Lnet/minecraft/client/gl/Framebuffer;<init>(IIZ)V
-
-
Method Details
-
resize
public void resize(int width, int height)- Mappings:
Namespace Name Mixin selector official aLbfw;a(II)Vintermediary method_3557Lnet/minecraft/class_1040;method_3557(II)Vnamed resizeLnet/minecraft/client/gl/Framebuffer;resize(II)V
-
delete
public void delete()- Mappings:
Namespace Name Mixin selector official aLbfw;a()Vintermediary method_3554Lnet/minecraft/class_1040;method_3554()Vnamed deleteLnet/minecraft/client/gl/Framebuffer;delete()V
-
attachTexture
public void attachTexture(int width, int height)- Mappings:
Namespace Name Mixin selector official bLbfw;b(II)Vintermediary method_3561Lnet/minecraft/class_1040;method_3561(II)Vnamed attachTextureLnet/minecraft/client/gl/Framebuffer;attachTexture(II)V
-
setTexFilter
public void setTexFilter(int texFilter)- Mappings:
Namespace Name Mixin selector official aLbfw;a(I)Vintermediary method_3556Lnet/minecraft/class_1040;method_3556(I)Vnamed setTexFilterLnet/minecraft/client/gl/Framebuffer;setTexFilter(I)V
-
checkFramebufferStatus
public void checkFramebufferStatus()- Mappings:
Namespace Name Mixin selector official bLbfw;b()Vintermediary method_3560Lnet/minecraft/class_1040;method_3560()Vnamed checkFramebufferStatusLnet/minecraft/client/gl/Framebuffer;checkFramebufferStatus()V
-
beginRead
public void beginRead()- Mappings:
Namespace Name Mixin selector official cLbfw;c()Vintermediary method_3562Lnet/minecraft/class_1040;method_3562()Vnamed beginReadLnet/minecraft/client/gl/Framebuffer;beginRead()V
-
endRead
public void endRead()- Mappings:
Namespace Name Mixin selector official dLbfw;d()Vintermediary method_3564Lnet/minecraft/class_1040;method_3564()Vnamed endReadLnet/minecraft/client/gl/Framebuffer;endRead()V
-
bind
public void bind(boolean viewPort)- Mappings:
Namespace Name Mixin selector official aLbfw;a(Z)Vintermediary method_3559Lnet/minecraft/class_1040;method_3559(Z)Vnamed bindLnet/minecraft/client/gl/Framebuffer;bind(Z)V
-
endWrite
public void endWrite()- Mappings:
Namespace Name Mixin selector official eLbfw;e()Vintermediary method_3565Lnet/minecraft/class_1040;method_3565()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 aLbfw;a(FFFF)Vintermediary method_3555Lnet/minecraft/class_1040;method_3555(FFFF)Vnamed setClearColorLnet/minecraft/client/gl/Framebuffer;setClearColor(FFFF)V
-
draw
public void draw(int width, int height)- Mappings:
Namespace Name Mixin selector official cLbfw;c(II)Vintermediary method_3563Lnet/minecraft/class_1040;method_3563(II)Vnamed drawLnet/minecraft/client/gl/Framebuffer;draw(II)V
-
drawInternal
public void drawInternal(int width, int height, boolean colorMaterial)- Mappings:
Namespace Name Mixin selector official aLbfw;a(IIZ)Vintermediary method_3558Lnet/minecraft/class_1040;method_3558(IIZ)Vnamed drawInternalLnet/minecraft/client/gl/Framebuffer;drawInternal(IIZ)V
-
clear
public void clear()- Mappings:
Namespace Name Mixin selector official fLbfw;f()Vintermediary method_3566Lnet/minecraft/class_1040;method_3566()Vnamed clearLnet/minecraft/client/gl/Framebuffer;clear()V
-