Record Class VolumeTexture
java.lang.Object
java.lang.Record
gaiasky.util.gdx.graphics.VolumeTexture
public record VolumeTexture(com.badlogic.gdx.graphics.Texture3D texture, int width, int height, int depth, VolumeType type, com.badlogic.gdx.math.Vector3 boundsMin, com.badlogic.gdx.math.Vector3 boundsMax)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionVolumeTexture(com.badlogic.gdx.graphics.Texture3D texture, int width, int height, int depth, VolumeType type, com.badlogic.gdx.math.Vector3 boundsMin, com.badlogic.gdx.math.Vector3 boundsMax) Creates an instance of aVolumeTexturerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.math.Vector3Returns the value of theboundsMaxrecord component.com.badlogic.gdx.math.Vector3Returns the value of theboundsMinrecord component.intdepth()Returns the value of thedepthrecord 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.com.badlogic.gdx.graphics.Texture3Dtexture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
VolumeTexture
public VolumeTexture(com.badlogic.gdx.graphics.Texture3D texture, int width, int height, int depth, VolumeType type, com.badlogic.gdx.math.Vector3 boundsMin, com.badlogic.gdx.math.Vector3 boundsMax) Creates an instance of aVolumeTexturerecord class.- Parameters:
texture- the value for thetexturerecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentdepth- the value for thedepthrecord componenttype- the value for thetyperecord componentboundsMin- the value for theboundsMinrecord componentboundsMax- the value for theboundsMaxrecord 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. -
texture
public com.badlogic.gdx.graphics.Texture3D texture()Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
depth
public int depth()Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
boundsMin
public com.badlogic.gdx.math.Vector3 boundsMin()Returns the value of theboundsMinrecord component.- Returns:
- the value of the
boundsMinrecord component
-
boundsMax
public com.badlogic.gdx.math.Vector3 boundsMax()Returns the value of theboundsMaxrecord component.- Returns:
- the value of the
boundsMaxrecord component
-