org.osm2world.core.world.modules.common
Class WorldModuleBillboardUtil

Object
  extended by WorldModuleBillboardUtil

public final class WorldModuleBillboardUtil
extends Object

utility class for drawing billboards, particularly "cross tree" shapes


Method Summary
static void renderCrosstree(Target<?> target, Material material, VectorXYZ pos, double width, double height, boolean mirroredTextures)
          renders a "cross tree" shape.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

renderCrosstree

public static final void renderCrosstree(Target<?> target,
                                         Material material,
                                         VectorXYZ pos,
                                         double width,
                                         double height,
                                         boolean mirroredTextures)
renders a "cross tree" shape. This shape is composed from two rectangular billboards, each with front and back side, intersecting orthogonally. Each billboard consists of two halves, separated at the billboard's intersection axis, to allow sorting of primitives for transparent rendering.