Handling division-by-zero situation in LineStroker, added MIN_CAPS_JOINS_WEIGHT constant in PGL

This commit is contained in:
codeanticode
2012-05-16 15:49:00 +00:00
parent 1cd006af19
commit 9cf0e725dd
4 changed files with 39 additions and 21 deletions

View File

@@ -100,7 +100,12 @@ public class PGL {
/** Maximum dimension of a texture used to hold font data. **/
public static final int MAX_FONT_TEX_SIZE = 256;
/** Minimum stroke weight needed to apply the full path stroking
* algorithm that properly generates caps and joing.
*/
public static final float MIN_CAPS_JOINS_WEIGHT = 2.f;
/** Minimum array size to use arrayCopy method(). **/
static protected final int MIN_ARRAYCOPY_SIZE = 2;