@@ -17,6 +17,13 @@ no longer any abstract methods in PGraphics itself
1717removed support for specular alpha (and its 'SPA' constant)
1818clear() -> backgroundImpl()
1919CENTER -> DIAMETER for ellipseMode and friends
20+ textFontNative and textFontNativeMetrics have been removed
21+ they require a font rendering context on which to draw
22+ and were a weird sort of hack
23+ see how the classes implement them now
24+ hint(ENABLE_NATIVE_FONTS) goes away
25+ need to mention in createFont() reference
26+ also maybe cover in the loadFont() reference? (maybe problem...)
2027
2128//
2229
@@ -161,9 +168,11 @@ style(PStyle s)
161168 public void textFont(PFont which, float size)
162169 public void textLeading(float leading)
163170 public void textMode(int mode)
171+ protected boolean textModeCheck(int mode)
164172 public void textSize(float size)
165173 public float textWidth(char c)
166174 public float textWidth(String str)
175+ protected float textWidthImpl(char buffer[], int start, int stop)
167176
168177 public void text(char c)
169178 public void text(char c, float x, float y)
@@ -178,6 +187,19 @@ style(PStyle s)
178187 public void text(float num, float x, float y)
179188 public void text(float num, float x, float y, float z)
180189
190+ protected void textLineAlignImpl(char buffer[], int start, int stop,
191+ float x, float y)
192+ protected void textLineImpl(char buffer[], int start, int stop,
193+ float x, float y)
194+ protected void textCharImpl(char ch, float x, float y)
195+ protected void textCharModelImpl(PImage glyph,
196+ float x1, float y1, //float z1,
197+ float x2, float y2, //float z2,
198+ int u2, int v2)
199+ protected void textCharScreenImpl(PImage glyph,
200+ int xx, int yy,
201+ int w0, int h0)
202+
181203 public void translate(float tx, float ty)
182204 public void translate(float tx, float ty, float tz)
183205 public void rotate(float angle)
@@ -192,7 +214,8 @@ style(PStyle s)
192214 public void resetMatrix()
193215
194216 public PMatrix getMatrix()
195- public getMatrix(PMatrix target)
217+ public getMatrix(PMatrix2D target)
218+ public getMatrix(PMatrix3D target)
196219 public void setMatrix(PMatrix source)
197220
198221 public void applyMatrix(PMatrix source)
0 commit comments