Search in sources :

Example 16 with OutputCapsule

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

the class Cylinder method write.

@Override
public void write(JmeExporter e) throws IOException {
    super.write(e);
    OutputCapsule capsule = e.getCapsule(this);
    capsule.write(axisSamples, "axisSamples", 0);
    capsule.write(radialSamples, "radialSamples", 0);
    capsule.write(radius, "radius", 0);
    capsule.write(radius2, "radius2", 0);
    capsule.write(height, "height", 0);
    capsule.write(closed, "closed", false);
    capsule.write(inverted, "inverted", false);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Example 17 with OutputCapsule

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

the class ShaderNodeVariable method write.

/**
     * jme serialization (not used)
     *
     * @param ex the exporter
     * @throws IOException
     */
@Override
public void write(JmeExporter ex) throws IOException {
    OutputCapsule oc = (OutputCapsule) ex.getCapsule(this);
    oc.write(name, "name", "");
    oc.write(type, "type", "");
    oc.write(nameSpace, "nameSpace", "");
    oc.write(condition, "condition", null);
    oc.write(shaderOutput, "shaderOutput", false);
    oc.write(multiplicity, "multiplicity", null);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Example 18 with OutputCapsule

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

the class VariableMapping method write.

/**
     * jme serialization (not used)
     *
     * @param ex the exporter
     * @throws IOException
     */
@Override
public void write(JmeExporter ex) throws IOException {
    OutputCapsule oc = (OutputCapsule) ex.getCapsule(this);
    oc.write(leftVariable, "leftVariable", null);
    oc.write(rightVariable, "rightVariable", null);
    oc.write(condition, "condition", "");
    oc.write(leftSwizzling, "leftSwizzling", "");
    oc.write(rightSwizzling, "rightSwizzling", "");
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Example 19 with OutputCapsule

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

the class PointLightShadowFilter method write.

@Override
public void write(JmeExporter ex) throws IOException {
    super.write(ex);
    OutputCapsule oc = ex.getCapsule(this);
    oc.write(shadowRenderer, "shadowRenderer", null);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Example 20 with OutputCapsule

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

the class PointLightShadowRenderer method write.

@Override
public void write(JmeExporter ex) throws IOException {
    super.write(ex);
    OutputCapsule oc = ex.getCapsule(this);
    oc.write(light, "light", null);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Aggregations

OutputCapsule (com.jme3.export.OutputCapsule)119 Vector3f (com.jme3.math.Vector3f)17 Matrix3f (com.jme3.math.Matrix3f)4 SafeArrayList (com.jme3.util.SafeArrayList)2 ArrayList (java.util.ArrayList)2 Generic6DofConstraint (com.bulletphysics.dynamics.constraintsolver.Generic6DofConstraint)1 BoundingSphere (com.jme3.bounding.BoundingSphere)1 BoxCollisionShape (com.jme3.bullet.collision.shapes.BoxCollisionShape)1 ChildCollisionShape (com.jme3.bullet.collision.shapes.infos.ChildCollisionShape)1 RotationalLimitMotor (com.jme3.bullet.joints.motors.RotationalLimitMotor)1 Plane (com.jme3.math.Plane)1 Quaternion (com.jme3.math.Quaternion)1 Vector2f (com.jme3.math.Vector2f)1 Mesh (com.jme3.scene.Mesh)1 ShaderNodeVariable (com.jme3.shader.ShaderNodeVariable)1 List (java.util.List)1