Most visited

Recently visited

Texture.Format

public static final enum Texture.Format
extends Enum<Texture.Format>

java.lang.Object
   ↳ java.lang.Enum<com.viro.core.Texture.Format>
     ↳ com.viro.core.Texture.Format


Texture.Format identifies the format of the pixel-data underlying the Texture.

Summary

Enum values

Texture.Format  RGB565

Texture data is stored with 5 bits red, 6 bits blue, 5 bits green, and no alpha. 

Texture.Format  RGB9_E5

Texture data is stored with 9 bits for R, G, and B, and a 5 bit exponent. 

Texture.Format  RGBA8

Texture data is stored in standard RGBA8 format. 

Public methods

static Texture.Format forString(String string)
String getStringValue()
static Texture.Format valueOf(String name)
static final Format[] values()

Enum values

RGB565

Texture.Format RGB565

Texture data is stored with 5 bits red, 6 bits blue, 5 bits green, and no alpha. This provides decent quality for much less memory than RGBA8, but loses the alpha channel.

RGB9_E5

Texture.Format RGB9_E5

Texture data is stored with 9 bits for R, G, and B, and a 5 bit exponent. This format is used for HDR images, as it takes less memory than floating point textures.

RGBA8

Texture.Format RGBA8

Texture data is stored in standard RGBA8 format.

Public methods

forString

Texture.Format forString (String string)

Parameters
string String

Returns
Texture.Format

getStringValue

String getStringValue ()

Returns
String

valueOf

Texture.Format valueOf (String name)

Parameters
name String

Returns
Texture.Format

values

Format[] values ()

Returns
Format[]

Hooray!