Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (775)
Games in Android Showcase (230)
games submitted by our members
Games in WIP (856)
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  
  mac os x jogl implementation workaround  (Read 1669 times)
0 Members and 1 Guest are viewing this topic.
Offline dimamarkman

Junior Newbie




Java games rock!


« Posted 2003-10-10 04:01:08 »

Hi,

jogl mac os x implementation has a serious problem:

it's impossible to share jogl gl canvas with other awt components
JAWT MAC OS X implementation has a bug that is responsible for that problem
Gerard Ziemski informed us (java-dev list) earlier that he fixed that bug and new JAWT version will be available sometime after Panther release

meanwhile I implemented workaround to jogl mac os x  sources

I put 2 modified files here:
http://www.concord.org/~dima/jogl/MacOSXOnscreenGLContext.java

http://www.concord.org/~dima/jogl/MacOSXWindowSystemInterface.m


here is what you have to do:

1. backup your jogl.jar and libjogl.jnilib files

2. backup your MacOSXOnscreenGLContext.java from
<path_to_jogl_sources>/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java
replace old MacOSXOnscreenGLContext.java with new one from http://www.concord.org/~dima/jogl/MacOSXOnscreenGLContext.java

3. backup your MacOSXWindowSystemInterface.m file from
<path_to_jogl_sources>/native/jogl/MacOSXWindowSystemInterface.m
replace old MacOSXWindowSystemInterface.m with new one from http://www.concord.org/~dima/jogl/MacOSXWindowSystemInterface.m


4. remove old jogl.jar from the classpath

5. remove old libjogl.jnilib from the library path

6. remove build folder (<path_to_jogl>/build)

7. go to make folder and call ant macosx

8. wait for the few minutes

9. install jogl.jar and libjogl.jnilib into the appropriate place:
for example:  /Library/Java/Extensions or ~/Library/Java/Extensions

10. that's it

it works for me

if you will have any problem don't hesitate and send me email:
dmarkman@mac.com

additionally you can download binaries from:

http://www.concord.org/~dima/jogl/jogl.jar

http://www.concord.org/~dima/jogl/libjogl.jnilib


Dmitry Markman
Offline gregorypierce

Senior Devvie




I come upon thee like the blue screen of death....


« Reply #1 - Posted 2003-10-10 19:51:20 »

I'll see if I can diff those files with the ones in CVS and check in that change.

http://www.gregorypierce.com

She builds, she builds oh man
When she links, she links I go crazy
Cause she looks like good code but she's really a hack
I think I'll run upstairs and grab a snack!
Pages: [1]
  ignore  |  Print  
 
 

 
hadezbladez (25 views)
2018-11-16 13:46:03

hadezbladez (33 views)
2018-11-16 13:41:33

hadezbladez (16 views)
2018-11-16 13:35:35

hadezbladez (12 views)
2018-11-16 13:32:03

EgonOlsen (1890 views)
2018-06-10 19:43:48

EgonOlsen (1912 views)
2018-06-10 19:43:44

EgonOlsen (1267 views)
2018-06-10 19:43:20

DesertCoockie (1711 views)
2018-05-13 18:23:11

nelsongames (1398 views)
2018-04-24 18:15:36

nelsongames (2012 views)
2018-04-24 18:14:32
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46
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!