当前位置: 首页>>代码示例>>Java>>正文


Java InputCapsule.readIntArray方法代码示例

本文整理汇总了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;
    }
}
 
开发者ID:JavaSaBr,项目名称:jmonkeybuilder,代码行数:17,代码来源:Image.java

示例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);
        }
    }
 
开发者ID:mleoking,项目名称:PhET,代码行数:27,代码来源:Mesh.java

示例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]);
    }
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:19,代码来源:BitmapCharacter.java

示例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);
}
 
开发者ID:twak,项目名称:chordatlas,代码行数:10,代码来源:GISLodControl.java

示例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);
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:9,代码来源:BIHTree.java

示例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);
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:8,代码来源:Pose.java

示例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);
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:10,代码来源:LodControl.java

示例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));
    }
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:16,代码来源:BitmapCharacterSet.java

示例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);
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:11,代码来源:Image.java

示例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);
    }
}
 
开发者ID:huliqing,项目名称:LuoYing,代码行数:31,代码来源:SavablePrimitiveArray.java

示例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);
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:7,代码来源:CompactQuaternionArray.java


注:本文中的com.jme3.export.InputCapsule.readIntArray方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。