Lines Matching refs:frame

60      * storing the frame, as the user may delete, and regenerate it.
88 throw new IllegalArgumentException("Initializing GL frame with zero size!");
91 // Create correct frame
108 throw new RuntimeException("Attempting to create GL frame with unknown binding type "
117 throw new RuntimeException("Could not allocate external GL frame!");
121 throw new RuntimeException("Could not allocate GL frame!");
130 throw new RuntimeException("Could not allocate texture backed GL frame!");
140 throw new RuntimeException("Could not allocate FBO backed GL frame!");
179 throw new RuntimeException("Could not set int values for GL frame!");
195 throw new RuntimeException("Could not set int values for GL frame!");
212 throw new RuntimeException("Data size in setData does not match GL frame size!");
214 throw new RuntimeException("Could not set GL frame data!");
231 throw new RuntimeException("Bitmap dimensions do not match GL frame dimensions!");
235 throw new RuntimeException("Could not set GL frame bitmap data!");
248 throw new RuntimeException("Could not get bitmap data from GL frame!");
254 public void setDataFromFrame(Frame frame) {
257 // Make sure frame fits
258 if (getFormat().getSize() < frame.getFormat().getSize()) {
260 "Attempting to assign frame of size " + frame.getFormat().getSize() + " to " +
261 "smaller GL frame of size " + getFormat().getSize() + "!");
265 if (frame instanceof NativeFrame) {
266 nativeCopyFromNative((NativeFrame)frame);
267 } else if (frame instanceof GLFrame) {
268 nativeCopyFromGL((GLFrame)frame);
269 } else if (frame instanceof SimpleFrame) {
270 setObjectValue(frame.getObjectValue());
272 super.setDataFromFrame(frame);
290 throw new RuntimeException("Could not generate mip-map for GL frame!");
342 // Reattach texture to FBO when using frame again. This may reallocate the texture
408 private native boolean nativeCopyFromNative(NativeFrame frame);
410 private native boolean nativeCopyFromGL(GLFrame frame);