public final class JCGLRGBA16ByteBuffered extends Object implements JCGLRGBA16Type
ByteBuffer based implementation of the JCGLRGBA16 record type.| Modifier and Type | Method and Description |
|---|---|
double |
getA() |
short |
getARaw() |
double |
getB() |
short |
getBRaw() |
double |
getG() |
short |
getGRaw() |
double |
getR() |
short |
getRRaw() |
int |
metaAOffsetFromCursor() |
int |
metaAOffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized |
metaAType() |
int |
metaBOffsetFromCursor() |
int |
metaBOffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized |
metaBType() |
int |
metaGOffsetFromCursor() |
int |
metaGOffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized |
metaGType() |
int |
metaROffsetFromCursor() |
int |
metaROffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized |
metaRType() |
static JCGLRGBA16Type |
newValue(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer)
Construct a view of a type.
|
static JCGLRGBA16Type |
newValueWithOffset(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer,
int in_base_offset)
Construct a view of a type.
|
void |
setA(double x)
Set the value of the
a field |
void |
setARaw(short x)
Set the value of the
a field |
void |
setB(double x)
Set the value of the
b field |
void |
setBRaw(short x)
Set the value of the
b field |
void |
setG(double x)
Set the value of the
g field |
void |
setGRaw(short x)
Set the value of the
g field |
void |
setR(double x)
Set the value of the
r field |
void |
setRRaw(short x)
Set the value of the
r field |
int |
sizeOctets() |
public static JCGLRGBA16Type 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 JCGLRGBA16Type 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 int metaROffsetFromType()
metaROffsetFromType in interface JCGLRGBA16ReadableTyper field, from the start of the typepublic int metaROffsetFromCursor()
metaROffsetFromCursor in interface JCGLRGBA16ReadableTyper field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized metaRType()
metaRType in interface JCGLRGBA16ReadableTyper fieldpublic short getRRaw()
getRRaw in interface JCGLRGBA16ReadableTyper fieldpublic void setRRaw(short x)
JCGLRGBA16WritableTyper fieldsetRRaw in interface JCGLRGBA16WritableTypex - The new valuepublic double getR()
getR in interface JCGLRGBA16ReadableTyper fieldpublic void setR(double x)
JCGLRGBA16WritableTyper fieldsetR in interface JCGLRGBA16WritableTypex - The new valuepublic int metaGOffsetFromType()
metaGOffsetFromType in interface JCGLRGBA16ReadableTypeg field, from the start of the typepublic int metaGOffsetFromCursor()
metaGOffsetFromCursor in interface JCGLRGBA16ReadableTypeg field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized metaGType()
metaGType in interface JCGLRGBA16ReadableTypeg fieldpublic short getGRaw()
getGRaw in interface JCGLRGBA16ReadableTypeg fieldpublic void setGRaw(short x)
JCGLRGBA16WritableTypeg fieldsetGRaw in interface JCGLRGBA16WritableTypex - The new valuepublic double getG()
getG in interface JCGLRGBA16ReadableTypeg fieldpublic void setG(double x)
JCGLRGBA16WritableTypeg fieldsetG in interface JCGLRGBA16WritableTypex - The new valuepublic int metaBOffsetFromType()
metaBOffsetFromType in interface JCGLRGBA16ReadableTypeb field, from the start of the typepublic int metaBOffsetFromCursor()
metaBOffsetFromCursor in interface JCGLRGBA16ReadableTypeb field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized metaBType()
metaBType in interface JCGLRGBA16ReadableTypeb fieldpublic short getBRaw()
getBRaw in interface JCGLRGBA16ReadableTypeb fieldpublic void setBRaw(short x)
JCGLRGBA16WritableTypeb fieldsetBRaw in interface JCGLRGBA16WritableTypex - The new valuepublic double getB()
getB in interface JCGLRGBA16ReadableTypeb fieldpublic void setB(double x)
JCGLRGBA16WritableTypeb fieldsetB in interface JCGLRGBA16WritableTypex - The new valuepublic int metaAOffsetFromType()
metaAOffsetFromType in interface JCGLRGBA16ReadableTypea field, from the start of the typepublic int metaAOffsetFromCursor()
metaAOffsetFromCursor in interface JCGLRGBA16ReadableTypea field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized metaAType()
metaAType in interface JCGLRGBA16ReadableTypea fieldpublic short getARaw()
getARaw in interface JCGLRGBA16ReadableTypea fieldpublic void setARaw(short x)
JCGLRGBA16WritableTypea fieldsetARaw in interface JCGLRGBA16WritableTypex - The new valuepublic double getA()
getA in interface JCGLRGBA16ReadableTypea fieldpublic void setA(double x)
JCGLRGBA16WritableTypea fieldsetA in interface JCGLRGBA16WritableTypex - The new valueCopyright © 2016 <code@io7m.com> http://io7m.com