コード例 #1
0
ファイル: Material.java プロジェクト: pilsnils/LEGO
 public void write(JmeExporter ex) throws IOException {
   OutputCapsule oc = ex.getCapsule(this);
   oc.write(def.getAssetName(), "material_def", null);
   oc.write(additionalState, "render_state", null);
   oc.write(transparent, "is_transparent", false);
   oc.writeStringSavableMap(paramValues, "parameters", null);
 }
コード例 #2
0
  public void write(JmeExporter ex) throws IOException {
    OutputCapsule capsule = ex.getCapsule(this);
    capsule.write(name, "name", null);
    capsule.write(worldBound, "world_bound", null);
    capsule.write(cullHint, "cull_mode", CullHint.Inherit);
    capsule.write(batchHint, "batch_hint", BatchHint.Inherit);
    capsule.write(queueBucket, "queue", RenderQueue.Bucket.Inherit);
    capsule.write(shadowMode, "shadow_mode", ShadowMode.Inherit);
    capsule.write(localTransform, "transform", Transform.IDENTITY);
    capsule.write(localLights, "lights", null);

    // Shallow clone the controls array to convert its type.
    capsule.writeSavableArrayList(new ArrayList(controls), "controlsList", null);
    capsule.writeStringSavableMap(userData, "user_data", null);
  }