mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 13:49:18 +01:00
49 lines
1.3 KiB
Java
49 lines
1.3 KiB
Java
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
|
|
|
|
/*
|
|
Part of the Processing project - http://processing.org
|
|
|
|
Copyright (c) 2012 Ben Fry and Casey Reas
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License version 2.1 as published by the Free Software Foundation.
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General
|
|
Public License along with this library; if not, write to the
|
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
|
Boston, MA 02111-1307 USA
|
|
*/
|
|
|
|
package processing.opengl;
|
|
|
|
|
|
public class PGraphics2D extends PGraphicsOpenGL {
|
|
|
|
public PGraphics2D() {
|
|
super();
|
|
//hints[ENABLE_ACCURATE_2D] = true;
|
|
hints[ENABLE_PERSPECTIVE_CORRECTED_LINES] = false;
|
|
}
|
|
|
|
/**
|
|
* Return true if this renderer supports 2D drawing. Defaults to true.
|
|
*/
|
|
public boolean is2D() {
|
|
return true;
|
|
}
|
|
|
|
|
|
/**
|
|
* Return true if this renderer supports 2D drawing. Defaults to false.
|
|
*/
|
|
public boolean is3D() {
|
|
return false;
|
|
}
|
|
|
|
} |