From: Kenneth B. R. <kbr...@al...> - 2001-10-09 02:12:06
|
> i've red that the swing library is the new user-interface library, and you > shouldn't really use awt, except when you can't use the swing one > compatibility etc.. ). > > so i wanted to use swing... > > but when i installed gl4java, in a file ( swingusage.txt ?) there was that > you should use awt for performance.... what does it mean? i can't write fast > opengl code thru swing? Sven can correct me if I'm wrong, but currently the GL4Java Swing implementation uses off-screen buffers which are not hardware accelerated. It is theoretically possible to keep track of the visible region of the GLJPanel in the component hierarchy (as long as no lightweight component is placed over it) and render directly to the screen, though this is not done in the current implementation. A description of this technique is available in this book by the author of the former Magician OpenGL binding: http://www.symbolstone.org/technology/java/nmbook/index.html |