Set (or unset) this as the main drawing surface. Meaning that it can safely be set to opaque (and given a default gray background), or anything else that goes along with that.
(boolean primary)
| 742 | * else that goes along with that. |
| 743 | */ |
| 744 | public void setPrimary(boolean primary) { // ignore |
| 745 | this.primaryGraphics = primary; |
| 746 | |
| 747 | // base images must be opaque (for performance and general |
| 748 | // headache reasons.. argh, a semi-transparent opengl surface?) |
| 749 | // use createGraphics() if you want a transparent surface. |
| 750 | if (primaryGraphics) { |
| 751 | format = RGB; |
| 752 | } |
| 753 | } |
| 754 | |
| 755 | |
| 756 | public void setPath(String path) { // ignore |