The final step in setting up a renderer, set its size of this renderer. This was formerly handled by the constructor, but instead it's been broken out so that setParent/setPrimary/setPath can be handled differently. Important: this is ignored by the Methods task because otherwise it will override s
(int w, int h)
| 775 | * animation thread. |
| 776 | */ |
| 777 | public void setSize(int w, int h) { // ignore |
| 778 | width = w; |
| 779 | height = h; |
| 780 | |
| 781 | /** {@link PImage.pixelFactor} set in {@link PImage#PImage()} */ |
| 782 | pixelWidth = width * pixelDensity; |
| 783 | pixelHeight = height * pixelDensity; |
| 784 | |
| 785 | // if (surface != null) { |
| 786 | // allocate(); |
| 787 | // } |
| 788 | // reapplySettings(); |
| 789 | reapplySettings = true; |
| 790 | } |
| 791 | |
| 792 | |
| 793 | // public void setSmooth(int level) { |