コード例 #1
0
  /** {@inheritDoc} Renders the scene contained in this document. */
  public void preRender(ColladaTraversalContext tc, DrawContext dc) {
    tc.multiplyMatrix(this.getMatrix());

    // COLLADA doc contains at most one scene. See COLLADA spec pg 5-67.
    ColladaScene scene = this.getScene();
    if (scene != null) scene.preRender(tc, dc);
  }
コード例 #2
0
  /** {@inheritDoc} Renders the scene contained in this document. */
  public void render(ColladaTraversalContext tc, DrawContext dc) {
    tc.multiplyMatrix(this.getMatrix());

    ColladaScene scene = this.getScene();
    if (scene != null) scene.render(tc, dc);
  }