From: Sven G. <sgo...@ja...> - 2001-10-09 03:29:21
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 09 October 2001 04:11, Kenneth B. Russell wrote: > > 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. <snip> well, you can use heavyweight components within a swing layout also ;-) these are hardware accelerated and do have the same restriction as kenneth mentioned (overlapping, etc.) have a look at GL4Java/demos/testTextPPM1.java, where swing/awt is mixed .. live long and prosper sven -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7wm75HdOA30NoFAARAvzGAKCXAr2m2Rm0YYEB7ddGVkzT6S/SGwCfeUYR wohZPNUcrW+lCeKHORSd/rQ= =aPxZ -----END PGP SIGNATURE----- |