From: gerard z. <gzi...@ap...> - 2002-03-19 20:16:38
|
Daniel The hwaccel mechanism in Apple's Java implementation uses OpenGL. Currently, if you turn hwaccel on, you will run into problems if you try to run gl4java at the same time. It should be easy to make gl4java work with hwaccel, after all, they use the same hardware accelerated surface, so the entire step of gl4java asking and pinning down its own hwaccel surface goes away. But it takes time, however little, to do it and right now I'm busy working on Java and preparing for WWDC. After all what good is gl4java without kick ass Java support underneath it right? ;-) I will look at gl4java shortly and update it. cheers > Date: Sat, 16 Mar 2002 23:34:40 +0100 > From: Daniel Bisig <db...@if...> > To: gl4...@li... > Subject: [gl4java-usergroup] osx & swing problems > > Hi all, > > I trying to get the swing demo files to run under Mac OS X 10.1.3. The > gl4java Version is 2.7.2.0. which I downloaded from Gerard > Ziemski page. > At the moment, these demos and all the other examples that I > found which > make use of either GLAnimPanel or GLJPanel produce the follwing > exception: > > An exception is thrown, while creating a GL context > > java.lang.ClassCastException: > com.apple.mrj.internal.awt.basepeers.VContainerPeer > java.lang.ClassCastException: > com.apple.mrj.internal.awt.basepeers.VContainerPeer > ...etc... > > I have no clue whether this is a problem of apple's java implementation > or of gl4java. I would really like to include some opengl functionality > in my visualization program which makes heavy use of swing. For this > reason I appreciate any tips and tricks how to get gl4java and swing to > work under Mac OS X. > > Thanks in advance! > > Daniel |