working on export from opengl, tweaking tess stuff

This commit is contained in:
benfry
2005-08-16 15:23:48 +00:00
parent 355a5fa818
commit 5ef1feee0a
2 changed files with 14 additions and 9 deletions

View File

@@ -583,8 +583,10 @@ public class PGraphics extends PImage implements PConstants {
strokeWeight(ONE);
//strokeCap(SQUARE);
strokeCap(ROUND);
strokeJoin(MITER);
try {
strokeCap(ROUND);
strokeJoin(MITER);
} catch (RuntimeException e) { } // P3D will complain
background(204);
@@ -1726,8 +1728,10 @@ public class PGraphics extends PImage implements PConstants {
* textMode(SCREEN), because it uses the pixels directly from the font.
*/
public void textMode(int mode) {
if ((mode == LEFT) || (mode == CENTER) || (mode == RIGHT)) {
throw new RuntimeException("textMode() is now textAlign() in Processing beta");
// CENTER and MODEL overlap (they're both 3)
if ((mode == LEFT) || (mode == RIGHT)) {
throw new RuntimeException("textMode() is now textAlign() " +
"in Processing beta");
}
if ((mode != SCREEN) && (mode != MODEL)) {
throw new RuntimeException("Only textMode(SCREEN) or textMode(MODEL) " +