public final class TextureTemplate2D extends Object implements IEquatable<TextureTemplate2D>, ImmutableValueType
Constructor and Description |
---|
TextureTemplate2D()
Initializes a new instance.
|
TextureTemplate2D(InternalTextureFormat internalFormat,
int width,
int height)
Initializes a 2D texture template with no mipmapping.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicates whether another object is exactly equal to this instance.
|
static boolean |
equals(TextureTemplate2D left,
TextureTemplate2D right)
Returns
true if the two instances are exactly equal. |
boolean |
equalsType(TextureTemplate2D other)
Indicates whether another instance of this type is exactly equal to this instance.
|
int |
getHeight()
Gets the height of the texture in texels.
|
InternalTextureFormat |
getInternalFormat()
Gets the internal format of the texture.
|
int |
getWidth()
Gets the width of the texture in texels.
|
int |
hashCode()
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
|
static boolean |
notEquals(TextureTemplate2D left,
TextureTemplate2D right)
Returns
true if the two instances are not exactly equal. |
String |
toString()
Returns the string representation of the value of this instance.
|
public TextureTemplate2D()
public TextureTemplate2D(@Nonnull InternalTextureFormat internalFormat, int width, int height)
internalFormat
- The InternalFormat
(get
) of the texture.width
- The width of the texture in texels.height
- The height of the texture in texels.@Nonnull public final InternalTextureFormat getInternalFormat()
public final int getWidth()
public final int getHeight()
public boolean equals(Object obj)
equals
in class Object
obj
- The object to compare to this instance.true
if obj
is an instance of this type and represents the same value as this instance; otherwise false
.Object.hashCode()
,
HashMap
public final boolean equalsType(@Nonnull TextureTemplate2D other)
equalsType
in interface IEquatable<TextureTemplate2D>
other
- The instance to compare to this instance.true
if other
represents the same value as this instance; otherwise false
.public int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public String toString()
public static boolean equals(@Nonnull TextureTemplate2D left, @Nonnull TextureTemplate2D right)
true
if the two instances are exactly equal.left
- The instance to compare to right
.right
- The instance to compare to left
.true
if left
represents the same value as right
; otherwise false
.public static boolean notEquals(@Nonnull TextureTemplate2D left, @Nonnull TextureTemplate2D right)
true
if the two instances are not exactly equal.left
- The instance to compare to right
.right
- The instance to compare to left
.true
if left
does not represent the same value as right
; otherwise false
.