Class AdvancedFboMutableTextureAttachment
java.lang.Object
net.minecraft.client.renderer.texture.AbstractTexture
foundry.veil.api.client.render.framebuffer.AdvancedFboTextureAttachment
foundry.veil.api.client.render.framebuffer.AdvancedFboMutableTextureAttachment
- All Implemented Interfaces:
AdvancedFboAttachment,AutoCloseable,Cloneable,org.lwjgl.system.NativeResource
-
Field Summary
Fields inherited from class net.minecraft.client.renderer.texture.AbstractTexture
blur, id, mipmap, NOT_ASSIGNED -
Constructor Summary
ConstructorsConstructorDescriptionAdvancedFboMutableTextureAttachment(int attachmentType, int textureId, int layer, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoidattach(AdvancedFbo framebuffer, int attachment) Attaches this attachment to the provided target under the specified attachment point.clone()voidcreate()Creates the attachment and initializes it with the default properties.intgetId()voidvoidsetTexture(int textureId, int layer) Methods inherited from class foundry.veil.api.client.render.framebuffer.AdvancedFboTextureAttachment
bindAttachment, canSample, equals, free, getAttachmentType, getFilter, getFormat, getHeight, getLevels, getName, getWidth, hashCode, load, setFilter, unbindAttachmentMethods inherited from class net.minecraft.client.renderer.texture.AbstractTexture
bind, close, resetMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.lwjgl.system.NativeResource
close
-
Constructor Details
-
AdvancedFboMutableTextureAttachment
public AdvancedFboMutableTextureAttachment(int attachmentType, int textureId, int layer, String name)
-
-
Method Details
-
attach
Description copied from interface:AdvancedFboAttachmentAttaches this attachment to the provided target under the specified attachment point.- Specified by:
attachin interfaceAdvancedFboAttachment- Overrides:
attachin classAdvancedFboTextureAttachment- Parameters:
framebuffer- The framebuffer to attach toattachment- The attachment point to add this attachment to
-
create
public void create()Description copied from interface:AdvancedFboAttachmentCreates the attachment and initializes it with the default properties.- Specified by:
createin interfaceAdvancedFboAttachment- Overrides:
createin classAdvancedFboTextureAttachment
-
clone
- Specified by:
clonein interfaceAdvancedFboAttachment- Overrides:
clonein classAdvancedFboTextureAttachment- Returns:
- A new identical attachment to this one
-
releaseId
public void releaseId()- Overrides:
releaseIdin classnet.minecraft.client.renderer.texture.AbstractTexture
-
getId
public int getId()- Overrides:
getIdin classAdvancedFboTextureAttachment
-
setTexture
public void setTexture(int textureId, int layer)
-