com.jmex.font3d.effects
Class Font3DBorder
java.lang.Object
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
- n*2 vertices used for the sides
- n*2 vertices used for the front
- n*2 vertices used for the back
Indices
- n*6 indices for the sides (n*2 triangles)
- n*6 indices for the front (n*2 triangles)
- n*6 indices for the back (n*2 triangles)
- Author:
- emanuel
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
-
applyEffect
public void applyEffect(Font3D font)
- Specified by:
applyEffect
in interface Font3DEffect