Top Description Fields Constructors Methods
org.lwjgl.opengles

public final Class OESVertexHalfFloat

extends Object
Class Inheritance

Native bindings to the OES_vertex_half_float extension.

This extension adds a 16-bit floating pt data type (aka half float) to vertex data specified using vertex arrays. The 16-bit floating-point components have 1 sign bit, 5 exponent bits, and 10 mantissa bits.

The half float data type can be very useful in specifying vertex attribute data such as color, normals, texture coordinates etc. By using half floats instead of floats, we reduce the memory requirements by half. Not only does the memory footprint reduce by half, but the memory bandwidth required for vertex transformations also reduces by the same amount approximately. Another advantage of using half floats over short/byte data types is that we do not needto scale the data. For example, using SHORT for texture coordinates implies that we need to scale the input texture coordinates in the shader or set an appropriate scale matrix as the texture matrix for fixed function pipeline. Doing these additional scaling operations impacts vertex transformation performance.

Field Summary

Modifier and TypeField and Description
public static final int
GL_HALF_FLOAT_OES

Accepted by the type parameter of VertexPointer, NormalPointer, ColorPointer, SecondaryColorPointer, IndexPointer, FogCoordPointer, TexCoordPointer, and VertexAttribPointer.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_HALF_FLOAT_OESback to summary
public static final int GL_HALF_FLOAT_OES

Accepted by the type parameter of VertexPointer, NormalPointer, ColorPointer, SecondaryColorPointer, IndexPointer, FogCoordPointer, TexCoordPointer, and VertexAttribPointer.

Constructor Detail

OESVertexHalfFloatback to summary
private OESVertexHalfFloat()