public final class JCGLDepth16ByteBuffered extends Object implements JCGLDepth16Type
ByteBuffer based implementation of the JCGLDepth16 packed type.| Modifier and Type | Method and Description |
|---|---|
double |
getDepth() |
int |
getDepthRaw() |
static JCGLDepth16Type |
newValue(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer)
Construct a view of a type.
|
static JCGLDepth16Type |
newValueWithOffset(ByteBuffer in_buffer,
com.io7m.jpra.runtime.java.JPRACursorByteReadableType in_pointer,
int in_base_offset)
Construct a view of a type.
|
void |
set(double depth)
Set the value of all fields.
|
void |
setDepth(double x)
Set the value of the
depth field. |
void |
setDepthRaw(int x)
Set the value of the
depth field. |
static int |
sizeInOctets() |
int |
sizeOctets() |
public static JCGLDepth16Type 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 JCGLDepth16Type 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 getDepthRaw()
getDepthRaw in interface JCGLDepth16ReadableTypedepth fieldpublic void setDepthRaw(int x)
JCGLDepth16WritableTypedepth field.
The 16 least significant bits of x will be used.setDepthRaw in interface JCGLDepth16WritableTypex - The new valuepublic double getDepth()
getDepth in interface JCGLDepth16ReadableTypedepth fieldpublic void setDepth(double x)
JCGLDepth16WritableTypedepth field.setDepth in interface JCGLDepth16WritableTypex - The new value (in the range [0, 1])public void set(double depth)
JCGLDepth16WritableTypeset in interface JCGLDepth16WritableTypedepth - The value for field depthCopyright © 2017 <code@io7m.com> http://io7m.com