VertexAttribute


public final class VertexAttribute


Defines the format and offset for a single attribute in a vertex buffer.

Summary

Public constructors

VertexAttribute(int format, long offset, int shaderLocation)

Public methods

final int

The data format of the attribute (e.g., float32x3, unorm8x4).

final long

The offset in bytes from the start of the vertex structure in the buffer.

final int
final void
setFormat(int format)

The data format of the attribute (e.g., float32x3, unorm8x4).

final void
setOffset(long offset)

The offset in bytes from the start of the vertex structure in the buffer.

final void
setShaderLocation(int shaderLocation)

Public constructors

VertexAttribute

Added in 1.0.0-alpha01
public VertexAttribute(int format, long offset, int shaderLocation)

Public methods

getFormat

Added in 1.0.0-alpha01
public final int getFormat()

The data format of the attribute (e.g., float32x3, unorm8x4).

getOffset

Added in 1.0.0-alpha01
public final long getOffset()

The offset in bytes from the start of the vertex structure in the buffer.

getShaderLocation

Added in 1.0.0-alpha01
public final int getShaderLocation()

setFormat

Added in 1.0.0-alpha01
public final void setFormat(int format)

The data format of the attribute (e.g., float32x3, unorm8x4).

setOffset

Added in 1.0.0-alpha01
public final void setOffset(long offset)

The offset in bytes from the start of the vertex structure in the buffer.

setShaderLocation

Added in 1.0.0-alpha01
public final void setShaderLocation(int shaderLocation)