Package com.mojang.blaze3d.platform
Enum Class NativeImage.Format
- All Implemented Interfaces:
Serializable
,Comparable<NativeImage.Format>
,Constable
- Enclosing class:
- NativeImage
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final int
(package private) final int
private final int
private final int
private final boolean
private final boolean
private final boolean
private final boolean
private final boolean
private final int
private final int
private final boolean
-
Constructor Summary
ModifierConstructorDescriptionprivate
Format
(int p_85148_, int p_85149_, boolean p_85150_, boolean p_85151_, boolean p_85152_, boolean p_85153_, boolean p_85154_, int p_85155_, int p_85156_, int p_85157_, int p_85158_, int p_85159_, boolean p_85160_) -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
(package private) static NativeImage.Format
getStbFormat
(int p_85168_) int
glFormat()
int
boolean
hasAlpha()
boolean
hasBlue()
boolean
hasGreen()
boolean
boolean
boolean
boolean
boolean
boolean
hasRed()
int
int
int
int
int
int
void
void
boolean
static NativeImage.Format
Returns the enum constant of this class with the specified name.static NativeImage.Format[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RGBA
-
RGB
-
LUMINANCE_ALPHA
-
LUMINANCE
-
-
Field Details
-
components
final int components -
glFormat
private final int glFormat -
hasRed
private final boolean hasRed -
hasGreen
private final boolean hasGreen -
hasBlue
private final boolean hasBlue -
hasLuminance
private final boolean hasLuminance -
hasAlpha
private final boolean hasAlpha -
redOffset
private final int redOffset -
greenOffset
private final int greenOffset -
blueOffset
private final int blueOffset -
luminanceOffset
private final int luminanceOffset -
alphaOffset
private final int alphaOffset -
supportedByStb
private final boolean supportedByStb
-
-
Constructor Details
-
Format
private Format(int p_85148_, int p_85149_, boolean p_85150_, boolean p_85151_, boolean p_85152_, boolean p_85153_, boolean p_85154_, int p_85155_, int p_85156_, int p_85157_, int p_85158_, int p_85159_, boolean p_85160_)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
components
public int components() -
setPackPixelStoreState
public void setPackPixelStoreState() -
setUnpackPixelStoreState
public void setUnpackPixelStoreState() -
glFormat
public int glFormat() -
hasRed
public boolean hasRed() -
hasGreen
public boolean hasGreen() -
hasBlue
public boolean hasBlue() -
hasLuminance
public boolean hasLuminance() -
hasAlpha
public boolean hasAlpha() -
redOffset
public int redOffset() -
greenOffset
public int greenOffset() -
blueOffset
public int blueOffset() -
luminanceOffset
public int luminanceOffset() -
alphaOffset
public int alphaOffset() -
hasLuminanceOrRed
public boolean hasLuminanceOrRed() -
hasLuminanceOrGreen
public boolean hasLuminanceOrGreen() -
hasLuminanceOrBlue
public boolean hasLuminanceOrBlue() -
hasLuminanceOrAlpha
public boolean hasLuminanceOrAlpha() -
luminanceOrRedOffset
public int luminanceOrRedOffset() -
luminanceOrGreenOffset
public int luminanceOrGreenOffset() -
luminanceOrBlueOffset
public int luminanceOrBlueOffset() -
luminanceOrAlphaOffset
public int luminanceOrAlphaOffset() -
supportedByStb
public boolean supportedByStb() -
getStbFormat
-