if (parameter.borderWidth > 0) { stroker = library.createStroker(); stroker.set((int)(parameter.borderWidth * 64f), parameter.borderStraight ? FreeType.FT_STROKER_LINECAP_BUTT : FreeType.FT_STROKER_LINECAP_ROUND, parameter.borderStraight ? FreeType.FT_STROKER_LINEJOIN_MITER_FIXED : FreeType.FT_STROKER_LINEJOIN_ROUND, 0); if (stroker != null && !incremental) stroker.dispose();
if (parameter.borderWidth > 0) { stroker = library.createStroker(); stroker.set((int)(parameter.borderWidth * 64f), parameter.borderStraight ? FreeType.FT_STROKER_LINECAP_BUTT : FreeType.FT_STROKER_LINECAP_ROUND, parameter.borderStraight ? FreeType.FT_STROKER_LINEJOIN_MITER_FIXED : FreeType.FT_STROKER_LINEJOIN_ROUND, 0); if (stroker != null && !incremental) stroker.dispose();
private static native void set(long stroker, int radius, int lineCap, int lineJoin, int miterLimit); /* FT_Stroker_Set((FT_Stroker)stroker, radius, (FT_Stroker_LineCap)lineCap, (FT_Stroker_LineJoin)lineJoin, miterLimit);
@Override public void dispose() { done(address); }
public Stroker createStroker() { long stroker = strokerNew(address); if(stroker == 0) throw new GdxRuntimeException("Couldn't create FreeType stroker, FreeType error code: " + getLastErrorCode()); return new Stroker(stroker); }
@Override public void dispose () { if (stroker != null) stroker.dispose(); if (packer != null) packer.dispose(); }
if (parameter.borderWidth > 0) { stroker = library.createStroker(); stroker.set((int)(parameter.borderWidth * 64f), parameter.borderStraight ? FreeType.FT_STROKER_LINECAP_BUTT : FreeType.FT_STROKER_LINECAP_ROUND, parameter.borderStraight ? FreeType.FT_STROKER_LINEJOIN_MITER_FIXED : FreeType.FT_STROKER_LINEJOIN_ROUND, 0); if (stroker != null && !incremental) stroker.dispose();
private static native void set(long stroker, int radius, int lineCap, int lineJoin, int miterLimit); /* FT_Stroker_Set((FT_Stroker)stroker, radius, (FT_Stroker_LineCap)lineCap, (FT_Stroker_LineJoin)lineJoin, miterLimit);
private static native void set(long stroker, int radius, int lineCap, int lineJoin, int miterLimit); /* FT_Stroker_Set((FT_Stroker)stroker, radius, (FT_Stroker_LineCap)lineCap, (FT_Stroker_LineJoin)lineJoin, miterLimit);
@Override public void dispose() { done(address); }
public Stroker createStroker() { long stroker = strokerNew(address); if(stroker == 0) throw new GdxRuntimeException("Couldn't create FreeType stroker, FreeType error code: " + getLastErrorCode()); return new Stroker(stroker); }
public Stroker createStroker() { long stroker = strokerNew(address); if(stroker == 0) throw new GdxRuntimeException("Couldn't create FreeType stroker, FreeType error code: " + getLastErrorCode()); return new Stroker(stroker); }
@Override public void dispose() { done(address); }
@Override public void dispose () { if (stroker != null) stroker.dispose(); if (packer != null) packer.dispose(); } }
@Override public void dispose () { if (stroker != null) stroker.dispose(); if (packer != null) packer.dispose(); } }