Hello,
i'm just working on an animation editor which should have separate windows for movie, controls and timeline.
I'm using the Pframe library for the multi-window stuff.
This code works fine in Processing 1.5, but only with the OPENGL renderer:
i'm just working on an animation editor which should have separate windows for movie, controls and timeline.
I'm using the Pframe library for the multi-window stuff.
This code works fine in Processing 1.5, but only with the OPENGL renderer:
- import com.shigeodayo.pframe.*;
import processing.opengl.*;
PApplet movieWindow;
ControlWindow controlWindow;
PFrame controlFrame;
TimelineWindow timelineWindow;
PFrame timelineFrame;
void setup(){
size(800, 500, OPENGL);
frame.setLocation(0, 0);
frame.setTitle("Movie");
movieWindow = this;
controlWindow = new ControlWindow();
controlFrame = new PFrame(controlWindow, width, 0);
controlFrame.setTitle("Control");
timelineWindow = new TimelineWindow();
timelineFrame = new PFrame(timelineWindow, 0, height + 45);
timelineFrame.setTitle("Timeline");
}
class ControlWindow extends PApplet {
void setup() {
size(200, movieWindow.height);
}
}
class TimelineWindow extends PApplet {
void setup() {
size(movieWindow.width + controlWindow.width, 200);
}
}
If i try to execute this code in Processing 2.0, it shows very strange behaviour. No matter if the OPENGL or the P2D renderer is used, the controlWindow has sometimes the right size, sometimes not. The timeline Window has never the right size.
Does anybody have some experiences working with PFrame in Processing 2.0? Are there some known bugs? Or is there something wrong with opengl in Processing 2.0?
I would love to do everything in 2.0...
I'm also confused about the opengl library. There is no opengl folder in my libraries folder. And in Processing 2.0 i even don't have to import it to use it. So it seems to be "built in" somehow. But it is not listed at the "included libraries" here. I even don't know the version of OPENGL i'm using. Any idea?
thanks
nossek
Does anybody have some experiences working with PFrame in Processing 2.0? Are there some known bugs? Or is there something wrong with opengl in Processing 2.0?
I would love to do everything in 2.0...
I'm also confused about the opengl library. There is no opengl folder in my libraries folder. And in Processing 2.0 i even don't have to import it to use it. So it seems to be "built in" somehow. But it is not listed at the "included libraries" here. I even don't know the version of OPENGL i'm using. Any idea?
thanks
nossek
1