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


Java InputCapsule.readInt方法代码示例

本文整理汇总了Java中com.jme3.export.InputCapsule.readInt方法的典型用法代码示例。如果您正苦于以下问题:Java InputCapsule.readInt方法的具体用法?Java InputCapsule.readInt怎么用?Java InputCapsule.readInt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.jme3.export.InputCapsule的用法示例。


在下文中一共展示了InputCapsule.readInt方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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 e) throws IOException {
    InputCapsule capsule = e.getCapsule(this);
    location = (Vector3f) capsule.readSavable("location", Vector3f.ZERO.clone());
    rotation = (Quaternion) capsule.readSavable("rotation", Quaternion.DIRECTION_Z.clone());
    frustumNear = capsule.readFloat("frustumNear", 1);
    frustumFar = capsule.readFloat("frustumFar", 2);
    frustumLeft = capsule.readFloat("frustumLeft", -0.5f);
    frustumRight = capsule.readFloat("frustumRight", 0.5f);
    frustumTop = capsule.readFloat("frustumTop", 0.5f);
    frustumBottom = capsule.readFloat("frustumBottom", -0.5f);
    coeffLeft = capsule.readFloatArray("coeffLeft", new float[2]);
    coeffRight = capsule.readFloatArray("coeffRight", new float[2]);
    coeffBottom = capsule.readFloatArray("coeffBottom", new float[2]);
    coeffTop = capsule.readFloatArray("coeffTop", new float[2]);
    viewPortLeft = capsule.readFloat("viewPortLeft", 0);
    viewPortRight = capsule.readFloat("viewPortRight", 1);
    viewPortTop = capsule.readFloat("viewPortTop", 1);
    viewPortBottom = capsule.readFloat("viewPortBottom", 0);
    width = capsule.readInt("width", 1);
    height = capsule.readInt("height", 1);
    name = capsule.readString("name", null);
    onFrustumChange();
    onViewPortChange();
    onFrameChange();
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:26,代码来源:Camera.java

示例3: read

import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
public void read(JmeImporter im) throws IOException {
    InputCapsule ic = im.getCapsule(this);
    type = ic.readEnum("varType", VarType.class, null);
    name = ic.readString("name", null);
    ffBinding = ic.readEnum("ff_binding", FixedFuncBinding.class, null);
    switch (getVarType()) {
        case Boolean:
            value = ic.readBoolean("value_bool", false);
            break;
        case Float:
            value = ic.readFloat("value_float", 0f);
            break;
        case Int:
            value = ic.readInt("value_int", 0);
            break;
        default:
            value = ic.readSavable("value_savable", null);
            break;
    }
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:21,代码来源:MatParam.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包/类
@Override
public void read(@NotNull final JmeImporter im) throws IOException {
    final InputCapsule in = im.getCapsule(this);
    lightProbe = (LightProbe) in.readSavable("lightProbe", null);
    pbrScene = (Node) in.readSavable("pbrScene", null);
    environmentScene = (Node) in.readSavable("environmentScene", null);
    generationType = in.readEnum("generationType", GenerationType.class, GenerationType.Fast);
    frame = in.readInt("frame", 0);
}
 
开发者ID:JavaSaBr,项目名称:jmonkeybuilder-extension,代码行数:10,代码来源:StaticLightProbeSceneAppState.java

示例6: 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

示例7: read

import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
@Override
public void read(JmeImporter im) throws IOException{
    super.read(im);
    InputCapsule ic = im.getCapsule(this);
    flipY = ic.readBoolean("flip_y", false);
    generateMips = ic.readBoolean("generate_mips", false);
    asCube = ic.readBoolean("as_cubemap", false);
    anisotropy = ic.readInt("anisotropy", 0);
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:10,代码来源:TextureKey.java

示例8: 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

示例9: read

import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
public void read(JmeImporter im) throws IOException {
    super.read(im);
    InputCapsule capsule = im.getCapsule(this);
    heightStickWidth = capsule.readInt("heightStickWidth", 0);
    heightStickLength = capsule.readInt("heightStickLength", 0);
    heightScale = capsule.readFloat("heightScale", 0);
    minHeight = capsule.readFloat("minHeight", 0);
    maxHeight = capsule.readFloat("maxHeight", 0);
    upAxis = capsule.readInt("upAxis", 1);
    heightfieldData = capsule.readFloatArray("heightfieldData", new float[0]);
    flipQuadEdges = capsule.readBoolean("flipQuadEdges", false);
    createShape();
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:14,代码来源:HeightfieldCollisionShape.java

示例10: 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

示例11: read

import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
@Override
public void read(JmeImporter im) throws IOException {
    super.read(im);
    InputCapsule ic = im.getCapsule(this);
    unit = ic.readInt("texture_unit", -1);
    texture = (Texture) ic.readSavable("texture", null);
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:8,代码来源:MatParamTexture.java

示例12: read

import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
@Override
public void read(JmeImporter e) throws IOException {
    InputCapsule capsule = e.getCapsule(this);
    collisionGroup = capsule.readInt("collisionGroup", 0x00000001);
    collisionGroupsMask = capsule.readInt("collisionGroupsMask", 0x00000001);
    debugShape = (Spatial) capsule.readSavable("debugShape", null);
    CollisionShape shape = (CollisionShape) capsule.readSavable("collisionShape", null);
    collisionShape = shape;
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:10,代码来源:PhysicsCollisionObject.java

示例13: read

import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
public void read(JmeImporter im) throws IOException {
    InputCapsule ic = im.getCapsule(this);
    numSamples = ic.readInt("numSamples", 0);
    filters = ic.readSavableArrayList("filters", null);
    for (Filter filter : filters) {           
        filter.setProcessor(this);
        setFilterState(filter, filter.isEnabled());
    }
    assetManager = im.getAssetManager();
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:11,代码来源:FilterPostProcessor.java

示例14: read

import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
@Override
public void read(JmeImporter im) throws IOException {
    super.read(im);
    InputCapsule ic = im.getCapsule(this);
    lightPosition = (Vector3f) ic.readSavable("lightPosition", Vector3f.ZERO);
    nbSamples = ic.readInt("nbSamples", 50);
    blurStart = ic.readFloat("blurStart", 0.02f);
    blurWidth = ic.readFloat("blurWidth", 0.9f);
    lightDensity = ic.readFloat("lightDensity", 1.4f);
    adaptative = ic.readBoolean("adaptative", true);
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:12,代码来源:LightScatteringFilter.java

示例15: 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


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