public final class JCGLDepth32FByteBuffered extends Object implements JCGLDepth32FType
ByteBuffer based implementation of the JCGLDepth32F record type.| Modifier and Type | Method and Description |
|---|---|
float |
getDepth() |
int |
metaDepthOffsetFromCursor() |
int |
metaDepthOffsetFromType() |
static int |
metaDepthStaticOffsetFromType() |
com.io7m.jpra.runtime.java.JPRATypeModel.JPRAFloat |
metaDepthType() |
static JCGLDepth32FType |
newValue(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer)
Construct a view of a type.
|
static JCGLDepth32FType |
newValueWithOffset(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer,
int in_base_offset)
Construct a view of a type.
|
void |
setDepth(float x)
Set the value of the
depth field |
static int |
sizeInOctets() |
int |
sizeOctets() |
public static JCGLDepth32FType 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 JCGLDepth32FType 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 metaDepthOffsetFromType()
metaDepthOffsetFromType in interface JCGLDepth32FReadableTypedepth field, from the start of the typepublic static int metaDepthStaticOffsetFromType()
depth from the start of the typepublic int metaDepthOffsetFromCursor()
metaDepthOffsetFromCursor in interface JCGLDepth32FReadableTypedepth field, from the cursorpublic com.io7m.jpra.runtime.java.JPRATypeModel.JPRAFloat metaDepthType()
metaDepthType in interface JCGLDepth32FReadableTypedepth fieldpublic float getDepth()
getDepth in interface JCGLDepth32FReadableTypedepth fieldpublic void setDepth(float x)
JCGLDepth32FWritableTypedepth fieldsetDepth in interface JCGLDepth32FWritableTypex - The new valueCopyright © 2016 <code@io7m.com> http://io7m.com