public final class JCGLRGB32FByteBuffered extends Object implements JCGLRGB32FType
ByteBuffer based implementation of the JCGLRGB32F record type.| Modifier and Type | Method and Description |
|---|---|
float |
getB() |
float |
getG() |
float |
getR() |
int |
metaBOffsetFromCursor() |
int |
metaBOffsetFromType() |
static int |
metaBStaticOffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAFloat |
metaBType() |
int |
metaGOffsetFromCursor() |
int |
metaGOffsetFromType() |
static int |
metaGStaticOffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAFloat |
metaGType() |
int |
metaROffsetFromCursor() |
int |
metaROffsetFromType() |
static int |
metaRStaticOffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAFloat |
metaRType() |
static JCGLRGB32FType |
newValue(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer)
Construct a view of a type.
|
static JCGLRGB32FType |
newValueWithOffset(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer,
int in_base_offset)
Construct a view of a type.
|
void |
setB(float x)
Set the value of the
b field |
void |
setG(float x)
Set the value of the
g field |
void |
setR(float x)
Set the value of the
r field |
static int |
sizeInOctets() |
int |
sizeOctets() |
public static JCGLRGB32FType newValueWithOffset(ByteBuffer in_buffer, com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer, int in_base_offset)
in_buffer - A byte bufferin_pointer - A cursorin_base_offset - The base offset from the cursorpublic static JCGLRGB32FType newValue(ByteBuffer in_buffer, com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer)
in_buffer - A byte bufferin_pointer - A cursorpublic int sizeOctets()
sizeOctets in interface com.io7m.jpra.runtime.java.JPRAValueTypepublic static int sizeInOctets()
public int metaROffsetFromType()
metaROffsetFromType in interface JCGLRGB32FReadableTyper field, from the start of the typepublic static int metaRStaticOffsetFromType()
r from the start of the typepublic int metaROffsetFromCursor()
metaROffsetFromCursor in interface JCGLRGB32FReadableTyper field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAFloat metaRType()
metaRType in interface JCGLRGB32FReadableTyper fieldpublic float getR()
getR in interface JCGLRGB32FReadableTyper fieldpublic void setR(float x)
JCGLRGB32FWritableTyper fieldsetR in interface JCGLRGB32FWritableTypex - The new valuepublic int metaGOffsetFromType()
metaGOffsetFromType in interface JCGLRGB32FReadableTypeg field, from the start of the typepublic static int metaGStaticOffsetFromType()
g from the start of the typepublic int metaGOffsetFromCursor()
metaGOffsetFromCursor in interface JCGLRGB32FReadableTypeg field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAFloat metaGType()
metaGType in interface JCGLRGB32FReadableTypeg fieldpublic float getG()
getG in interface JCGLRGB32FReadableTypeg fieldpublic void setG(float x)
JCGLRGB32FWritableTypeg fieldsetG in interface JCGLRGB32FWritableTypex - The new valuepublic int metaBOffsetFromType()
metaBOffsetFromType in interface JCGLRGB32FReadableTypeb field, from the start of the typepublic static int metaBStaticOffsetFromType()
b from the start of the typepublic int metaBOffsetFromCursor()
metaBOffsetFromCursor in interface JCGLRGB32FReadableTypeb field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAFloat metaBType()
metaBType in interface JCGLRGB32FReadableTypeb fieldpublic float getB()
getB in interface JCGLRGB32FReadableTypeb fieldpublic void setB(float x)
JCGLRGB32FWritableTypeb fieldsetB in interface JCGLRGB32FWritableTypex - The new valueCopyright © 2016 <code@io7m.com> http://io7m.com