public final class JCGLRGBA32ByteBuffered extends Object implements JCGLRGBA32Type
ByteBuffer based implementation of the JCGLRGBA32 record type.| Modifier and Type | Method and Description |
|---|---|
double |
getA() |
int |
getARaw() |
double |
getB() |
int |
getBRaw() |
double |
getG() |
int |
getGRaw() |
double |
getR() |
int |
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 JCGLRGBA32Type |
newValue(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer)
Construct a view of a type.
|
static JCGLRGBA32Type |
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(int x)
Set the value of the
a field |
void |
setB(double x)
Set the value of the
b field |
void |
setBRaw(int x)
Set the value of the
b field |
void |
setG(double x)
Set the value of the
g field |
void |
setGRaw(int x)
Set the value of the
g field |
void |
setR(double x)
Set the value of the
r field |
void |
setRRaw(int x)
Set the value of the
r field |
int |
sizeOctets() |
public static JCGLRGBA32Type 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 JCGLRGBA32Type 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 JCGLRGBA32ReadableTyper field, from the start of the typepublic int metaROffsetFromCursor()
metaROffsetFromCursor in interface JCGLRGBA32ReadableTyper field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized metaRType()
metaRType in interface JCGLRGBA32ReadableTyper fieldpublic int getRRaw()
getRRaw in interface JCGLRGBA32ReadableTyper fieldpublic void setRRaw(int x)
JCGLRGBA32WritableTyper fieldsetRRaw in interface JCGLRGBA32WritableTypex - The new valuepublic double getR()
getR in interface JCGLRGBA32ReadableTyper fieldpublic void setR(double x)
JCGLRGBA32WritableTyper fieldsetR in interface JCGLRGBA32WritableTypex - The new valuepublic int metaGOffsetFromType()
metaGOffsetFromType in interface JCGLRGBA32ReadableTypeg field, from the start of the typepublic int metaGOffsetFromCursor()
metaGOffsetFromCursor in interface JCGLRGBA32ReadableTypeg field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized metaGType()
metaGType in interface JCGLRGBA32ReadableTypeg fieldpublic int getGRaw()
getGRaw in interface JCGLRGBA32ReadableTypeg fieldpublic void setGRaw(int x)
JCGLRGBA32WritableTypeg fieldsetGRaw in interface JCGLRGBA32WritableTypex - The new valuepublic double getG()
getG in interface JCGLRGBA32ReadableTypeg fieldpublic void setG(double x)
JCGLRGBA32WritableTypeg fieldsetG in interface JCGLRGBA32WritableTypex - The new valuepublic int metaBOffsetFromType()
metaBOffsetFromType in interface JCGLRGBA32ReadableTypeb field, from the start of the typepublic int metaBOffsetFromCursor()
metaBOffsetFromCursor in interface JCGLRGBA32ReadableTypeb field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized metaBType()
metaBType in interface JCGLRGBA32ReadableTypeb fieldpublic int getBRaw()
getBRaw in interface JCGLRGBA32ReadableTypeb fieldpublic void setBRaw(int x)
JCGLRGBA32WritableTypeb fieldsetBRaw in interface JCGLRGBA32WritableTypex - The new valuepublic double getB()
getB in interface JCGLRGBA32ReadableTypeb fieldpublic void setB(double x)
JCGLRGBA32WritableTypeb fieldsetB in interface JCGLRGBA32WritableTypex - The new valuepublic int metaAOffsetFromType()
metaAOffsetFromType in interface JCGLRGBA32ReadableTypea field, from the start of the typepublic int metaAOffsetFromCursor()
metaAOffsetFromCursor in interface JCGLRGBA32ReadableTypea field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAIntegerUnsignedNormalized metaAType()
metaAType in interface JCGLRGBA32ReadableTypea fieldpublic int getARaw()
getARaw in interface JCGLRGBA32ReadableTypea fieldpublic void setARaw(int x)
JCGLRGBA32WritableTypea fieldsetARaw in interface JCGLRGBA32WritableTypex - The new valuepublic double getA()
getA in interface JCGLRGBA32ReadableTypea fieldpublic void setA(double x)
JCGLRGBA32WritableTypea fieldsetA in interface JCGLRGBA32WritableTypex - The new valueCopyright © 2016 <code@io7m.com> http://io7m.com