com.jmex.font3d.effects
Class Font3DBorder

java.lang.Object
  extended by com.jmex.font3d.effects.Font3DBorder
All Implemented Interfaces:
Font3DEffect

public class Font3DBorder
extends java.lang.Object
implements Font3DEffect

This effect will add borders to all the glyphs. Please be aware that this changes the geometry by adding more vertices to every glyph, it does not check if it has already been applied, hence you can add the border multiple times. After this effect has been applied we add the following to the existing buffers according to enabled/disabled drawing in the font.

Vertices/Normals/Texcoords/VertexColors

Indices

Author:
emanuel

Constructor Summary
Font3DBorder(float width, ColorRGBA inner_color, ColorRGBA outer_color, boolean drawSides, boolean drawFront, boolean drawBack)
          The constructor.
Font3DBorder(float width, ColorRGBA inner_color, ColorRGBA outer_color, Font3D font)
          Just a short-cut constructor, grabbing the side/front/back from the font.
 
Method Summary
 void applyEffect(Font3D font)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Font3DBorder

public Font3DBorder(float width,
                    ColorRGBA inner_color,
                    ColorRGBA outer_color,
                    boolean drawSides,
                    boolean drawFront,
                    boolean drawBack)
The constructor.

Parameters:
width -
inner_color -
outer_color -
drawSides -
drawFront -
drawBack -

Font3DBorder

public Font3DBorder(float width,
                    ColorRGBA inner_color,
                    ColorRGBA outer_color,
                    Font3D font)
Just a short-cut constructor, grabbing the side/front/back from the font.

Parameters:
width -
inner_color -
outer_color -
font -
Method Detail

applyEffect

public void applyEffect(Font3D font)
Specified by:
applyEffect in interface Font3DEffect