本文整理汇总了Java中com.jme3.export.InputCapsule.readIntArray方法的典型用法代码示例。如果您正苦于以下问题:Java InputCapsule.readIntArray方法的具体用法?Java InputCapsule.readIntArray怎么用?Java InputCapsule.readIntArray使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.jme3.export.InputCapsule
的用法示例。
在下文中一共展示了InputCapsule.readIntArray方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: read
import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
public void read(JmeImporter e) throws IOException {
InputCapsule capsule = e.getCapsule(this);
format = capsule.readEnum("format", Format.class, Format.RGBA8);
width = capsule.readInt("width", 0);
height = capsule.readInt("height", 0);
depth = capsule.readInt("depth", 0);
mipMapSizes = capsule.readIntArray("mipMapSizes", null);
multiSamples = capsule.readInt("multiSamples", 1);
data = (ArrayList<ByteBuffer>) capsule.readByteBufferArrayList("data", null);
colorSpace = capsule.readEnum("colorSpace", ColorSpace.class, null);
if (mipMapSizes != null) {
needGeneratedMips = false;
mipsWereGenerated = true;
}
}
示例2: read
import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
public void read(JmeImporter im) throws IOException {
InputCapsule in = im.getCapsule(this);
meshBound = (BoundingVolume) in.readSavable("modelBound", null);
vertCount = in.readInt("vertCount", -1);
elementCount = in.readInt("elementCount", -1);
maxNumWeights = in.readInt("max_num_weights", -1);
mode = in.readEnum("mode", Mode.class, Mode.Triangles);
elementLengths = in.readIntArray("elementLengths", null);
modeStart = in.readIntArray("modeStart", null);
collisionTree = (BIHTree) in.readSavable("collisionTree", null);
elementLengths = in.readIntArray("elementLengths", null);
modeStart = in.readIntArray("modeStart", null);
pointSize = in.readFloat("pointSize", 1f);
// in.readStringSavableMap("buffers", null);
buffers = (IntMap<VertexBuffer>) in.readIntSavableMap("buffers", null);
for (Entry<VertexBuffer> entry : buffers){
buffersList.add(entry.getValue());
}
Savable[] lodLevelsSavable = in.readSavableArray("lodLevels", null);
if (lodLevelsSavable != null) {
lodLevels = new VertexBuffer[lodLevelsSavable.length];
System.arraycopy( lodLevelsSavable, 0, lodLevels, 0, lodLevels.length);
}
}
示例3: read
import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
public void read(JmeImporter im) throws IOException {
InputCapsule ic = im.getCapsule(this);
c = (char) ic.readInt("c", 0);
x = ic.readInt("x", 0);
y = ic.readInt("y", 0);
width = ic.readInt("width", 0);
height = ic.readInt("height", 0);
xOffset = ic.readInt("xOffset", 0);
yOffset = ic.readInt("yOffset", 0);
xAdvance = ic.readInt("xAdvance", 0);
int[] seconds = ic.readIntArray("seconds", null);
int[] amounts = ic.readIntArray("amounts", null);
for (int i = 0; i < seconds.length; i++){
kerning.put(seconds[i], amounts[i]);
}
}
示例4: read
import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
@Override
public void read(JmeImporter im) throws IOException {
super.read(im);
InputCapsule ic = im.getCapsule(this);
trisPerPixel = ic.readFloat("trisPerPixel", 1f);
distTolerance = ic.readFloat("distTolerance", 1f);
numLevels = ic.readInt("numLevels", 0);
numTris = ic.readIntArray("numTris", null);
}
示例5: read
import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
public void read(JmeImporter im) throws IOException {
InputCapsule ic = im.getCapsule(this);
mesh = (Mesh) ic.readSavable("mesh", null);
root = (BIHNode) ic.readSavable("root", null);
maxTrisPerNode = ic.readInt("tris_per_node", 0);
pointData = ic.readFloatArray("points", null);
triIndices = ic.readIntArray("indices", null);
}
示例6: read
import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
public void read(JmeImporter i) throws IOException {
InputCapsule in = i.getCapsule(this);
name = in.readString("name", "");
targetMeshIndex = in.readInt("meshIndex", -1);
offsets = (Vector3f[]) in.readSavableArray("offsets", null);
indices = in.readIntArray("indices", null);
}
示例7: read
import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
@Override
public void read(JmeImporter im) throws IOException{
super.read(im);
InputCapsule ic = im.getCapsule(this);
trisPerPixel = ic.readFloat("trisPerPixel", 1f);
distTolerance = ic.readFloat("distTolerance", 1f);
numLevels = ic.readInt("numLevels", 0);
numTris = ic.readIntArray("numTris", null);
}
示例8: read
import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
@Override
public void read(JmeImporter im) throws IOException {
InputCapsule ic = im.getCapsule(this);
lineHeight = ic.readInt("lineHeight", 0);
base = ic.readInt("base", 0);
renderedSize = ic.readInt("renderedSize", 0);
width = ic.readInt("width", 0);
height = ic.readInt("height", 0);
pageSize = ic.readInt("pageSize", 0);
int[] styles = ic.readIntArray("styles", null);
for (int style : styles) {
characters.put(style, readCharset(ic, style));
}
}
示例9: read
import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
public void read(JmeImporter e) throws IOException {
InputCapsule capsule = e.getCapsule(this);
format = capsule.readEnum("format", Format.class, Format.RGBA8);
width = capsule.readInt("width", 0);
height = capsule.readInt("height", 0);
depth = capsule.readInt("depth", 0);
mipMapSizes = capsule.readIntArray("mipMapSizes", null);
multiSamples = capsule.readInt("multiSamples", 1);
data = (ArrayList<ByteBuffer>) capsule.readByteBufferArrayList("data", null);
}
示例10: read
import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
@Override
public void read(JmeImporter im) throws IOException {
InputCapsule ic = im.getCapsule(this);
type = ic.readByte("t", (byte) 0);
switch (type) {
case ARRAY_BYTE:
value = ic.readByteArray("v", null);
break;
case ARRAY_SHORT:
value = ic.readShortArray("v", null);
break;
case ARRAY_INTEGER:
value = ic.readIntArray("v", null);
break;
case ARRAY_FLOAT:
value = ic.readFloatArray("v", null);
break;
case ARRAY_LONG:
value = ic.readLongArray("v", null);
break;
case ARRAY_DOUBLE:
value = ic.readDoubleArray("v", null);
break;
case ARRAY_BOOLEAN:
value = ic.readBooleanArray("v", null);
break;
default :
throw new UnsupportedOperationException("Unknown type of stored data: " + type);
}
}
示例11: read
import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
@Override
public void read(JmeImporter im) throws IOException {
InputCapsule in = im.getCapsule(this);
array = in.readFloatArray("array", null);
index = in.readIntArray("index", null);
}