From: Franck D. <fde...@mi...> - 2002-07-11 13:04:07
|
Ok I made an example for you. I picked it up from tests I have done. And a special for you, it includes drawing Japanese fonts ;-) Take a look at it, I hope this will help. It is using font from M$ windows, so if you are on a Linux machine, just change the font name and you'll be ok. The code is not really clean and is full of commented code... That's my test project... :/ Sorry. Francky -----Original Message----- From: gl4...@li... [mailto:gl4...@li...]On Behalf Of Powell, Mark A. Sent: 10 juillet, 2002 16:37 To: Pepijn Van Eeckhoudt; gl4...@li... Subject: RE: [gl4java-usergroup] GLJPanel in software mode? Would anyone be willing to write up a little example (say draw a triangle) doing the following: Use the GLEventListener (I need to get with the times here) Place it into some AWT component (So I can get Hardware rendering) Place the above renderer into a JPanel and place that panel into a JFrame? I'm having nothing but trouble getting a decent awt renderer into a JFrame and need a little help. If anyone is willing to do this for me, I'd be VERY grateful. Thanks Mark ---------------------- Mark Powell Programmer/Analyst - PSL NMSU (505)522-9204 -----Original Message----- From: Pepijn Van Eeckhoudt [mailto:pep...@lu...] Sent: Wednesday, July 10, 2002 1:30 PM To: Powell, Mark A.; gl4...@li... Subject: Re: [gl4java-usergroup] GLJPanel in software mode? Doh, I missed your actual question :) You can always fall back to the GL(anim)Canvas class. This is however an AWT component, so you can expect the usual mess when you combine swing and awt components. Pepijn Van Eeckhoudt On 10-07-2002 16:47, "Powell, Mark A." <Mar...@ps...> wrote: > I was looking through the FAQ and came across the entry regarding > GLJPanel and GLAnimCanvas, specifically this: > > "The GLJPanel implementation currently renders to an off-screen buffer > and copies the pixels to the lightweight component. This leads to > slowdowns over GLAnimCanvas because the rendering is not > hardware-accelerated and because of the copying overhead." > > I have a JFrame that adds a GLJPanel which has a GLAnimJPanel added to > it. Am I in software mode? If I am, is it possible to render in hardware > mode and continue to add it to a JFrame? > > Thanks for any help. > > --Mark > > ---------------------- > Mark Powell > Programmer/Analyst - PSL NMSU > (505)522-9204 > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Two, two, TWO treats in one. > http://thinkgeek.com/sf > _______________________________________________ > gl4java-usergroup mailing list > gl4...@li... > https://lists.sourceforge.net/lists/listinfo/gl4java-usergroup ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Two, two, TWO treats in one. http://thinkgeek.com/sf _______________________________________________ gl4java-usergroup mailing list gl4...@li... https://lists.sourceforge.net/lists/listinfo/gl4java-usergroup |