Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (603)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  AWT component for LWJGL?  (Read 2027 times)
0 Members and 1 Guest are viewing this topic.
Offline rexguo

Junior Devvie




Real-Time Java


« Posted 2004-12-19 07:00:42 »

Hi!

Does LWJGL provide an AWT component
that I can embed inside a GUI tool?

.rex

http://www.rexguo.com - Technologist + Designer
Offline Chman

Junior Devvie




Nothing more that... Java games are cool !


« Reply #1 - Posted 2004-12-19 08:11:43 »

No awt tool is available. An swt binding had been made and it works great. You can find it here Smiley

Chman
Offline princec

« JGO Spiffy Duke »


Medals: 435
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #2 - Posted 2004-12-19 09:11:02 »

...and if you want an AWT context, just get JOGL to make one for you, and then use LWJGL to do all your rendering Wink

Cas Smiley

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline rexguo

Junior Devvie




Real-Time Java


« Reply #3 - Posted 2004-12-20 01:06:00 »

Chman, sorry SWT don't do, my tool is in Swing  Tongue

princec, I'm not quite sure how you can do that. You mean I create a GLCanvas and realise its GLContext, then do the GL calls using LWJGL? Is that possible??  Shocked

http://www.rexguo.com - Technologist + Designer
Offline princec

« JGO Spiffy Duke »


Medals: 435
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #4 - Posted 2004-12-20 08:03:56 »

Of course. In the GLCanvas's paint method simply call GLContext.useContext(this); (or substitute whatever unique context object you like for 'this') and LWJGL commands just work after that.

You can use as many GLCanvases as you like this way. Just remember to call useContext() so LWJGL knows where to render to!

Cas Smiley

Offline darkprophet

Senior Devvie




Go Go Gadget Arms


« Reply #5 - Posted 2004-12-20 09:20:09 »

well...not meaning to boast here, but renanse from jME has Swing working perfectly with LWJGL with HeadlessRendering.

The code is in CVS if you want it, but its highly tied with jME....

DP  Smiley


Friends don't let friends make MMORPGs.

Blog | Volatile-Engine
Offline Chman

Junior Devvie




Nothing more that... Java games are cool !


« Reply #6 - Posted 2004-12-20 10:06:06 »

Quote
well...not meaning to boast here, but renanse from jME has Swing working perfectly with LWJGL with HeadlessRendering.

The code is in CVS if you want it, but its highly tied with jME....

DP  Smiley




And it's really slow at the moment Tongue

Chman
Offline renanse

Junior Devvie




Intelligence is light to a dark world.


« Reply #7 - Posted 2004-12-20 13:23:46 »

It doesn't run at a few thousand FPS, but it does run fairly constant at about a monitor sync'd rate even with a fairly complex scene.  *shrug*  (ie, plenty fast for something like an editor.)

With Caspian's trick, a jME that also supported JOGL could potentially make this much faster.  Smiley

Renanse  (ruh-NON-say)
Offline princec

« JGO Spiffy Duke »


Medals: 435
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #8 - Posted 2004-12-20 16:26:49 »

I think I'm going to make a lightweight AWT-GLContext canvas class for use in LWJGL. I want to do some GL applets Smiley

Cas Smiley

Offline rexguo

Junior Devvie




Real-Time Java


« Reply #9 - Posted 2004-12-21 08:42:31 »

Quote
It doesn't run at a few thousand FPS, but it does run fairly constant at about a monitor sync'd rate even with a fairly complex scene.  *shrug*  (ie, plenty fast for something like an editor.)

With Caspian's trick, a jME that also supported JOGL could potentially make this much faster.  Smiley



Is this via PBuffers?

PBuffers is horribly broken on my Mobility Radeon 9000.
(Yes I code on a laptop!  Embarrassed)
The latest drivers support OpenGL 1.3 and says it has
PBuffers, but all the demos that use it crashes, not just
JOGL ones, so I'm pretty sure it's a driver issue.

http://www.rexguo.com - Technologist + Designer
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline oNyx

JGO Coder


Medals: 2


pixels! :x


« Reply #10 - Posted 2004-12-21 13:55:31 »

Quote
I think I'm going to make a lightweight AWT-GLContext canvas class for use in LWJGL. I want to do some GL applets Smiley


Yea, good idea. Yet another module can't hurt. Well, I'm not really interested in Applets, but it would help doing small tools alot.

弾幕 ☆ @mahonnaiseblog
Offline Catharsis

JGO Coder


Medals: 21
Projects: 1
Exp: 18 years


TyphonRT rocks!


« Reply #11 - Posted 2004-12-21 19:30:00 »

Quote

PBuffers is horribly broken on my Mobility Radeon 9000.
(Yes I code on a laptop!  Embarrassed)
The latest drivers support OpenGL 1.3 and says it has
PBuffers, but all the demos that use it crashes, not just
JOGL ones, so I'm pretty sure it's a driver issue.


Whoa... Have you tried installing the latest Omega Drivers... You can have the latest 4.12beta Catalyst driver up and running in no time and everything should work and more... You'll be happy.. Smiley
http://www.omegadrivers.net/

I test my work on laptops down to just a Radeon Mobility.. Currently the main laptop I test with has the Radeon IGP340...   Everything works fantastic with Omega Drivers..

Please support my Kickstarter for next-gen video apps for Android:
http://kck.st/1xA3R61

Founder & Principal Architect; TyphonRT, Inc.
http://www.typhonrt.org/
http://www.egrsoftware.com/
https://plus.google.com/u/0/+MichaelLeahy/
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (37 views)
2014-12-15 09:26:44

Mr.CodeIt (31 views)
2014-12-14 19:50:38

BurntPizza (62 views)
2014-12-09 22:41:13

BurntPizza (99 views)
2014-12-08 04:46:31

JscottyBieshaar (60 views)
2014-12-05 12:39:02

SHC (74 views)
2014-12-03 16:27:13

CopyableCougar4 (77 views)
2014-11-29 21:32:03

toopeicgaming1999 (138 views)
2014-11-26 15:22:04

toopeicgaming1999 (127 views)
2014-11-26 15:20:36

toopeicgaming1999 (38 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!