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
ConstructorDescriptionAdvancedFboMutableTextureAttachment
(int attachmentType, int textureId, int layer, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
attach
(int attachment) Attaches this attachment to the provided target under the specified attachment point.clone()
void
create()
Creates the attachment and initializes it with the default properties.int
getId()
void
void
setTexture
(int textureId, int layer) Methods inherited from class foundry.veil.api.client.render.framebuffer.AdvancedFboTextureAttachment
bindAttachment, canSample, free, getAttachmentType, getFormat, getLevels, getName, load, unbindAttachment
Methods inherited from class net.minecraft.client.renderer.texture.AbstractTexture
bind, close, reset, setFilter
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
Constructor Details
-
AdvancedFboMutableTextureAttachment
public AdvancedFboMutableTextureAttachment(int attachmentType, int textureId, int layer, String name)
-
-
Method Details
-
attach
public void attach(int attachment) Description copied from interface:AdvancedFboAttachment
Attaches this attachment to the provided target under the specified attachment point.- Specified by:
attach
in interfaceAdvancedFboAttachment
- Overrides:
attach
in classAdvancedFboTextureAttachment
- Parameters:
attachment
- The attachment point to add this attachment to
-
create
public void create()Description copied from interface:AdvancedFboAttachment
Creates the attachment and initializes it with the default properties.- Specified by:
create
in interfaceAdvancedFboAttachment
- Overrides:
create
in classAdvancedFboTextureAttachment
-
clone
- Specified by:
clone
in interfaceAdvancedFboAttachment
- Overrides:
clone
in classAdvancedFboTextureAttachment
- Returns:
- A new identical attachment to this one
-
releaseId
public void releaseId()- Overrides:
releaseId
in classnet.minecraft.client.renderer.texture.AbstractTexture
-
getId
public int getId()- Overrides:
getId
in classnet.minecraft.client.renderer.texture.AbstractTexture
-
setTexture
public void setTexture(int textureId, int layer)
-