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)
| 728 | * else that goes along with that. |
| 729 | */ |
| 730 | public void setPrimary(boolean primary) { // ignore |
| 731 | this.primaryGraphics = primary; |
| 732 | |
| 733 | // base images must be opaque (for performance and general |
| 734 | // headache reasons.. argh, a semi-transparent opengl surface?) |
| 735 | // use createGraphics() if you want a transparent surface. |
| 736 | if (primaryGraphics) { |
| 737 | format = RGB; |
| 738 | } |
| 739 | } |
| 740 | |
| 741 | |
| 742 | public void setPath(String path) { // ignore |