use of com.jme3.export.InputCapsule in project jmonkeyengine by jMonkeyEngine.
the class SpotLightShadowFilter method read.
@Override
public void read(JmeImporter im) throws IOException {
super.read(im);
InputCapsule ic = im.getCapsule(this);
shadowRenderer = (SpotLightShadowRenderer) ic.readSavable("shadowRenderer", null);
}
use of com.jme3.export.InputCapsule in project jmonkeyengine by jMonkeyEngine.
the class BillboardControl method read.
@Override
public void read(JmeImporter e) throws IOException {
super.read(e);
InputCapsule capsule = e.getCapsule(this);
orient = (Matrix3f) capsule.readSavable("orient", null);
look = (Vector3f) capsule.readSavable("look", null);
left = (Vector3f) capsule.readSavable("left", null);
alignment = capsule.readEnum("alignment", Alignment.class, Alignment.Screen);
}
use of com.jme3.export.InputCapsule in project jmonkeyengine by jMonkeyEngine.
the class LightControl method read.
@Override
public void read(JmeImporter im) throws IOException {
super.read(im);
InputCapsule ic = im.getCapsule(this);
controlDir = ic.readEnum(CONTROL_DIR_NAME, ControlDirection.class, ControlDirection.SpatialToLight);
light = (Light) ic.readSavable(LIGHT_NAME, null);
}
use of com.jme3.export.InputCapsule in project jmonkeyengine by jMonkeyEngine.
the class LodControl method read.
@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);
}
use of com.jme3.export.InputCapsule in project jmonkeyengine by jMonkeyEngine.
the class Line method read.
@Override
public void read(JmeImporter im) throws IOException {
super.read(im);
InputCapsule in = im.getCapsule(this);
start = (Vector3f) in.readSavable("startVertex", null);
end = (Vector3f) in.readSavable("endVertex", null);
}
Aggregations