From: Kenneth B. R. <kbr...@al...> - 2002-09-16 02:59:11
|
> Well, I get the window full screen, and the gears the full size > of the window, but the window still has borders and things, and > the bottom appears behind the taskbar... and we have no 3D > effect still. :( > > Maybe if the Frame object used to hold this stuff was a Window > object instead (which as I recall, has no borders or widgets or > anything)... but I'm not sure how to go about altering it to do > that, since the API docs say Window objects need to have a > parent Frame. The window decorations can be disabled as of 1.4 and above; see the sources for the Grand Canyon demo (http://java.sun.com/products/jfc/tsc/articles/jcanyon/) for an example. I spent some time in the 1.4 timeframe trying to understand exactly what Windows API calls go into making a full-screen window which is compatible with OpenGL; this is the underlying implementation of full-screen when -Dsun.java2d.noddraw=true is specified. However, I believe there are still problems with this implementation though I haven't had time to look into them. If you or anyone else can write a small, self-contained C/C++ program on Windows (not using GLUT) which makes a full-screen OpenGL window and draws a triangle into it, I'll try to get the non-DirectDraw full-screen implementation fixed in the JDK. FYI, the SCSL sources for 1.4 are available on Sun's web site, so you can look at the current full-screen implementation. |