use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.
the class Image method write.
public void write(JmeExporter e) throws IOException {
OutputCapsule capsule = e.getCapsule(this);
capsule.write(format, "format", Format.RGBA8);
capsule.write(width, "width", 0);
capsule.write(height, "height", 0);
capsule.write(depth, "depth", 0);
capsule.write(mipMapSizes, "mipMapSizes", null);
capsule.write(multiSamples, "multiSamples", 1);
capsule.writeByteBufferArrayList(data, "data", null);
capsule.write(colorSpace, "colorSpace", null);
}
use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.
the class LightControl method write.
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule oc = ex.getCapsule(this);
oc.write(controlDir, CONTROL_DIR_NAME, ControlDirection.SpatialToLight);
oc.write(light, LIGHT_NAME, null);
}
use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.
the class PQTorus method write.
@Override
public void write(JmeExporter e) throws IOException {
super.write(e);
OutputCapsule capsule = e.getCapsule(this);
capsule.write(p, "p", 0);
capsule.write(q, "q", 0);
capsule.write(radius, "radius", 0);
capsule.write(width, "width", 0);
capsule.write(steps, "steps", 0);
capsule.write(radialSamples, "radialSamples", 0);
}
use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.
the class Quad method write.
@Override
public void write(JmeExporter e) throws IOException {
super.write(e);
OutputCapsule capsule = e.getCapsule(this);
capsule.write(width, "width", 0);
capsule.write(height, "height", 0);
}
use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.
the class DirectionalLightShadowRenderer method write.
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule oc = ex.getCapsule(this);
oc.write(lambda, "lambda", 0.65f);
oc.write(zFarOverride, "zFarOverride", 0);
oc.write(light, "light", null);
oc.write(fadeInfo, "fadeInfo", null);
oc.write(fadeLength, "fadeLength", 0f);
}
Aggregations