public class MrBufferKey
extends java.lang.Object
MrAttribute data stored inside a MrBuffer| Constructor and Description |
|---|
MrBufferKey(int attribute,
MrDataType dataType,
int size,
int stride,
int pointer)
Creates a new Buffer Key
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAttributeType()
Gets the attribute type
|
MrDataType |
getDataType()
Type stored, it will be usually a numeric type such as float, short,...
|
int |
getId()
Gets the attribute id obtained from GPU
|
int |
getPointer()
Index inside the buffer where this element starts
|
int |
getSize()
Lenght of data.
|
int |
getStride()
Number of elements between an element of this attribute and the next one
|
void |
setId(int index)
Sets the GPU id for this attribute
|
java.lang.String |
toString() |
public MrBufferKey(int attribute,
MrDataType dataType,
int size,
int stride,
int pointer)
attribute - which attribute it is linked todataType - Type stored, it will be usually a numeric type such as float, short,...size - Lenght of data. For example, if data is stored as a vector, the lenght of that vectorstride - Number of elements between an element of this attribute and the next onepointer - Index inside the buffer where this element startspublic int getAttributeType()
MrAttribute to see returned valuespublic int getSize()
public int getStride()
public int getId()
public void setId(int index)
index - public int getPointer()
public MrDataType getDataType()
public java.lang.String toString()
toString in class java.lang.Object