Hi,
i'm using Hansi's fullscreen_api.pde in my sketch
I get some strange results when i switch to fullscreen, my PImage images are turning white and remain like that when i go back in windowed mode. (see the pics)
http://images6.theimagehosting.com/before.png
http://images6.theimagehosting.com/after.5ee.png
http://images6.theimagehosting.com/winafter.png
If i change to P3D it's working but it is getting terribly slow...
Quote:PImage token;
void setup() {
size(800,600, OPENGL);
frameRate(60);
smooth();
token = loadImage("token.png");
setFullScreen( false ); // get fullscreen exclusive mode
setResolution( 800, 600 ); // change resolution to 640, 480
createFullScreenKeyBindings(); // let ctrl+f switch between window fullscreen mode
}
void draw(){
...
updateScreen();
...
}
void updateScreen() {
....
image(token,0,0,30,30);
....
}
Can someone explain me what's going on ?
Also, the PNG transparency doesn't seem to be handled in OpenGL. (black squared shape around the tokens)