Search in sources :

Example 71 with InputCapsule

use of com.jme3.export.InputCapsule in project jmonkeyengine by jMonkeyEngine.

the class PointLight method read.

@Override
public void read(JmeImporter im) throws IOException {
    super.read(im);
    InputCapsule ic = im.getCapsule(this);
    position = (Vector3f) ic.readSavable("position", null);
    radius = ic.readFloat("radius", 0f);
    if (radius != 0) {
        this.invRadius = 1 / radius;
    } else {
        this.invRadius = 0;
    }
}
Also used : InputCapsule(com.jme3.export.InputCapsule)

Example 72 with InputCapsule

use of com.jme3.export.InputCapsule in project jmonkeyengine by jMonkeyEngine.

the class MatParamOverride method read.

@Override
public void read(JmeImporter im) throws IOException {
    super.read(im);
    InputCapsule ic = im.getCapsule(this);
    enabled = ic.readBoolean("enabled", true);
}
Also used : InputCapsule(com.jme3.export.InputCapsule)

Example 73 with InputCapsule

use of com.jme3.export.InputCapsule in project jmonkeyengine by jMonkeyEngine.

the class MatParamTexture method read.

@Override
public void read(JmeImporter im) throws IOException {
    super.read(im);
    InputCapsule ic = im.getCapsule(this);
    texture = (Texture) value;
    colorSpace = (ColorSpace) ic.readEnum("colorSpace", ColorSpace.class, null);
}
Also used : InputCapsule(com.jme3.export.InputCapsule)

Example 74 with InputCapsule

use of com.jme3.export.InputCapsule in project jmonkeyengine by jMonkeyEngine.

the class Texture3D method read.

@Override
public void read(JmeImporter e) throws IOException {
    super.read(e);
    InputCapsule capsule = e.getCapsule(this);
    wrapS = capsule.readEnum("wrapS", WrapMode.class, WrapMode.EdgeClamp);
    wrapT = capsule.readEnum("wrapT", WrapMode.class, WrapMode.EdgeClamp);
    wrapR = capsule.readEnum("wrapR", WrapMode.class, WrapMode.EdgeClamp);
}
Also used : InputCapsule(com.jme3.export.InputCapsule)

Example 75 with InputCapsule

use of com.jme3.export.InputCapsule in project jmonkeyengine by jMonkeyEngine.

the class TextureCubeMap method read.

@Override
public void read(JmeImporter e) throws IOException {
    super.read(e);
    InputCapsule capsule = e.getCapsule(this);
    wrapS = capsule.readEnum("wrapS", WrapMode.class, WrapMode.EdgeClamp);
    wrapT = capsule.readEnum("wrapT", WrapMode.class, WrapMode.EdgeClamp);
    wrapR = capsule.readEnum("wrapR", WrapMode.class, WrapMode.EdgeClamp);
}
Also used : InputCapsule(com.jme3.export.InputCapsule)

Aggregations

InputCapsule (com.jme3.export.InputCapsule)123 Vector3f (com.jme3.math.Vector3f)18 Matrix3f (com.jme3.math.Matrix3f)5 ArrayList (java.util.ArrayList)5 AssetNotFoundException (com.jme3.asset.AssetNotFoundException)2 PhysicsRigidBody (com.jme3.bullet.objects.PhysicsRigidBody)2 Mesh (com.jme3.scene.Mesh)2 ShadowCompareMode (com.jme3.texture.Texture.ShadowCompareMode)2 ConvexShape (com.bulletphysics.collision.shapes.ConvexShape)1 KinematicCharacterController (com.bulletphysics.dynamics.character.KinematicCharacterController)1 Generic6DofConstraint (com.bulletphysics.dynamics.constraintsolver.Generic6DofConstraint)1 HingeConstraint (com.bulletphysics.dynamics.constraintsolver.HingeConstraint)1 SliderConstraint (com.bulletphysics.dynamics.constraintsolver.SliderConstraint)1 Transform (com.bulletphysics.linearmath.Transform)1 LinkerMsg (com.cas.circuit.msg.LinkerMsg)1 LoopMode (com.jme3.animation.LoopMode)1 AssetInfo (com.jme3.asset.AssetInfo)1 AssetKey (com.jme3.asset.AssetKey)1 AssetManager (com.jme3.asset.AssetManager)1 ModelKey (com.jme3.asset.ModelKey)1