Modifier and Type | Field and Description |
---|---|
protected processing.core.PGraphics |
graphics
the PGraphics instance that this sketch will use to draw objects.
|
protected processing.core.PApplet |
parent
The parent processing sketch of this sketch.
|
Constructor and Description |
---|
AbstractSketch(processing.core.PApplet parent,
int width,
int height)
Constructor
this creates a PGraphics object with the size provided in the parameters
and the renderer specified by
PConstants.OPENGL . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getName()
Returns the name of the sketch.
|
processing.core.PGraphics |
getPGraphics()
Return the PGraphics associated with this sketch.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
draw, keyEvent, mouseEvent, setup
protected final processing.core.PGraphics graphics
protected final processing.core.PApplet parent
public AbstractSketch(processing.core.PApplet parent, int width, int height)
PConstants.OPENGL
.parent
- the parent PApplet
.width
- the width of the sketch in pixels.height
- the height of the sketch in pixels.public String getName()
Sketch
public processing.core.PGraphics getPGraphics()
Sketch
getPGraphics
in interface Sketch
Copyright © 2017. All rights reserved.