Record Class Framebuffer
java.lang.Object
java.lang.Record
lol.trq.helios.fbo.Framebuffer
- Record Components:
id- the GL framebuffertexture- the colour attachment texturewidth- width in pixelsheight- height in pixelsdepthStencil- whether a depth-stencil buffer is attachedids- the raw ids the backend created
public record Framebuffer(int id, int texture, int width, int height, boolean depthStencil, int[] ids)
extends Record
An offscreen framebuffer with an RGBA8 colour texture and an optional depth-stencil buffer, lent out by a
FramebufferPool.-
Constructor Summary
ConstructorsConstructorDescriptionFramebuffer(int id, int texture, int width, int height, boolean depthStencil, int[] ids) Creates an instance of aFramebufferrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thedepthStencilrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.intid()Returns the value of theidrecord component.int[]ids()Returns the value of theidsrecord component.inttexture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
Framebuffer
public Framebuffer(int id, int texture, int width, int height, boolean depthStencil, int[] ids) Creates an instance of aFramebufferrecord class.- Parameters:
id- the value for theidrecord componenttexture- the value for thetexturerecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentdepthStencil- the value for thedepthStencilrecord componentids- the value for theidsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
texture
-
width
-
height
-
depthStencil
public boolean depthStencil()Returns the value of thedepthStencilrecord component.- Returns:
- the value of the
depthStencilrecord component
-
ids
-