Enum NativeImage.PixelFormat
- java.lang.Object
-
- java.lang.Enum<NativeImage.PixelFormat>
-
- net.minecraft.client.renderer.texture.NativeImage.PixelFormat
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NativeImage.PixelFormat>
- Enclosing class:
- NativeImage
public static enum NativeImage.PixelFormat extends java.lang.Enum<NativeImage.PixelFormat>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LUMINANCE
LUMINANCE_ALPHA
RGB
RGBA
-
Field Summary
Fields Modifier and Type Field Description private int
alphaOffset
private int
blueOffset
private int
components
private int
glFormat
private int
greenOffset
private boolean
hasAlpha
private boolean
hasBlue
private boolean
hasGreen
private boolean
hasLuminance
private boolean
hasRed
private int
luminanceOffset
private int
redOffset
private boolean
supportedByStb
-
Constructor Summary
Constructors Modifier Constructor Description private
PixelFormat(int p_i49762_3_, int p_i49762_4_, boolean p_i49762_5_, boolean p_i49762_6_, boolean p_i49762_7_, boolean p_i49762_8_, boolean p_i49762_9_, int p_i49762_10_, int p_i49762_11_, int p_i49762_12_, int p_i49762_13_, int p_i49762_14_, boolean p_i49762_15_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
alphaOffset()
int
components()
private static NativeImage.PixelFormat
getStbFormat(int p_211646_0_)
int
glFormat()
boolean
hasAlpha()
boolean
hasLuminanceOrAlpha()
int
luminanceOrAlphaOffset()
void
setPackPixelStoreState()
void
setUnpackPixelStoreState()
boolean
supportedByStb()
static NativeImage.PixelFormat
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static NativeImage.PixelFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RGBA
public static final NativeImage.PixelFormat RGBA
-
RGB
public static final NativeImage.PixelFormat RGB
-
LUMINANCE_ALPHA
public static final NativeImage.PixelFormat LUMINANCE_ALPHA
-
LUMINANCE
public static final NativeImage.PixelFormat LUMINANCE
-
-
Field Detail
-
components
private 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 Detail
-
PixelFormat
private PixelFormat(int p_i49762_3_, int p_i49762_4_, boolean p_i49762_5_, boolean p_i49762_6_, boolean p_i49762_7_, boolean p_i49762_8_, boolean p_i49762_9_, int p_i49762_10_, int p_i49762_11_, int p_i49762_12_, int p_i49762_13_, int p_i49762_14_, boolean p_i49762_15_)
-
-
Method Detail
-
values
public static NativeImage.PixelFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NativeImage.PixelFormat c : NativeImage.PixelFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NativeImage.PixelFormat valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
components
public int components()
-
setPackPixelStoreState
public void setPackPixelStoreState()
-
setUnpackPixelStoreState
public void setUnpackPixelStoreState()
-
glFormat
public int glFormat()
-
hasAlpha
public boolean hasAlpha()
-
alphaOffset
public int alphaOffset()
-
hasLuminanceOrAlpha
public boolean hasLuminanceOrAlpha()
-
luminanceOrAlphaOffset
public int luminanceOrAlphaOffset()
-
supportedByStb
public boolean supportedByStb()
-
getStbFormat
private static NativeImage.PixelFormat getStbFormat(int p_211646_0_)
-
-