Package com.mojang.blaze3d.platform
Enum Class NativeImage.Format
- All Implemented Interfaces:
- Serializable,- Comparable<NativeImage.Format>,- Constable
- Enclosing class:
- NativeImage
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final intprivate final int(package private) final intprivate final intprivate final intprivate final booleanprivate final booleanprivate final booleanprivate final booleanprivate final booleanprivate final intprivate final intprivate final boolean
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateFormat(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 SummaryModifier and TypeMethodDescriptionintintint(package private) static NativeImage.FormatgetStbFormat(int p_85168_) intglFormat()intbooleanhasAlpha()booleanhasBlue()booleanhasGreen()booleanbooleanbooleanbooleanbooleanbooleanhasRed()intintintintintintvoidvoidbooleanstatic NativeImage.FormatReturns 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- 
componentsfinal int components
- 
glFormatprivate final int glFormat
- 
hasRedprivate final boolean hasRed
- 
hasGreenprivate final boolean hasGreen
- 
hasBlueprivate final boolean hasBlue
- 
hasLuminanceprivate final boolean hasLuminance
- 
hasAlphaprivate final boolean hasAlpha
- 
redOffsetprivate final int redOffset
- 
greenOffsetprivate final int greenOffset
- 
blueOffsetprivate final int blueOffset
- 
luminanceOffsetprivate final int luminanceOffset
- 
alphaOffsetprivate final int alphaOffset
- 
supportedByStbprivate final boolean supportedByStb
 
- 
- 
Constructor Details- 
Formatprivate 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- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
componentspublic int components()
- 
setPackPixelStoreStatepublic void setPackPixelStoreState()
- 
setUnpackPixelStoreStatepublic void setUnpackPixelStoreState()
- 
glFormatpublic int glFormat()
- 
hasRedpublic boolean hasRed()
- 
hasGreenpublic boolean hasGreen()
- 
hasBluepublic boolean hasBlue()
- 
hasLuminancepublic boolean hasLuminance()
- 
hasAlphapublic boolean hasAlpha()
- 
redOffsetpublic int redOffset()
- 
greenOffsetpublic int greenOffset()
- 
blueOffsetpublic int blueOffset()
- 
luminanceOffsetpublic int luminanceOffset()
- 
alphaOffsetpublic int alphaOffset()
- 
hasLuminanceOrRedpublic boolean hasLuminanceOrRed()
- 
hasLuminanceOrGreenpublic boolean hasLuminanceOrGreen()
- 
hasLuminanceOrBluepublic boolean hasLuminanceOrBlue()
- 
hasLuminanceOrAlphapublic boolean hasLuminanceOrAlpha()
- 
luminanceOrRedOffsetpublic int luminanceOrRedOffset()
- 
luminanceOrGreenOffsetpublic int luminanceOrGreenOffset()
- 
luminanceOrBlueOffsetpublic int luminanceOrBlueOffset()
- 
luminanceOrAlphaOffsetpublic int luminanceOrAlphaOffset()
- 
supportedByStbpublic boolean supportedByStb()
- 
getStbFormat
 
-