public class vec2s extends CFacade
types vector of two shorts.
Modifier and Type | Field and Description |
---|---|
static long[] |
__DNA__FIELD__x
Field descriptor (offset) for struct member 'x'.
|
static long[] |
__DNA__FIELD__y
Field descriptor (offset) for struct member 'y'.
|
static int |
__DNA__SDNA_INDEX
This is the sdna index of the struct vec2s.
|
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
Modifier | Constructor and Description |
---|---|
|
vec2s(long __address,
Block __block,
BlockTable __blockTable) |
protected |
vec2s(vec2s that) |
Modifier and Type | Method and Description |
---|---|
CPointer<vec2s> |
__io__addressof()
Instantiates a pointer on this instance.
|
short |
getX()
Get method for struct member 'x'.
|
short |
getY()
Get method for struct member 'y'.
|
void |
setX(short x)
Set method for struct member 'x'.
|
void |
setY(short y)
Set method for struct member 'y'.
|
__io__addressof, __io__addressof, __io__equals, __io__generic__copy, __io__generic__copy, __io__instanceof, __io__native__copy, __io__newInstance, __io__same__encoding, __io__sizeof, __io__sizeof, __io__subclassof
public static final int __DNA__SDNA_INDEX
It is required when allocating a new block to store data for vec2s.
org.cakelab.blender.io.dna.internal.StructDNA}
,
org.cakelab.blender.io.block.BlockTable#allocate}
,
Constant Field Valuespublic static final long[] __DNA__FIELD__x
This is how you get a reference on the corresponding field in the struct:
vec2s vec2s = ...; CPointer<Object> p = vec2s.__dna__addressof(vec2s.__DNA__FIELD__x); CPointer<Short> p_x = p.cast(new Class[]{Short.class});
public static final long[] __DNA__FIELD__y
This is how you get a reference on the corresponding field in the struct:
vec2s vec2s = ...; CPointer<Object> p = vec2s.__dna__addressof(vec2s.__DNA__FIELD__y); CPointer<Short> p_y = p.cast(new Class[]{Short.class});
public vec2s(long __address, Block __block, BlockTable __blockTable)
protected vec2s(vec2s that)
public short getX() throws java.io.IOException
java.io.IOException
__DNA__FIELD__x
public void setX(short x) throws java.io.IOException
java.io.IOException
__DNA__FIELD__x
public short getY() throws java.io.IOException
java.io.IOException
__DNA__FIELD__y
public void setY(short y) throws java.io.IOException
java.io.IOException
__DNA__FIELD__y