public NotSupportedException(String s) { super(s); }
}
- public static abstract class GLPixelBuffer extends DoubleBuffer {
+ public static abstract class GLPixelBuffer extends PixelBuffer {
protected int width;
protected int height;
public int getWidth() { return width; }
}
public Picture createPicture(int[] data, int w, int h) {
- if(w*h != data.length) throw new Error("w*h != data.length");
if(rectangularTextures && w <= maxRectTexSize && h <= maxRectTexSize) new RectGLPicture(data,w,h,this);
if(w <= maxTexSize && h <= maxTexSize) return new SquareGLPicture(data,w,h,this);
return new MosaicGLPicture(data,w,h,this);