Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (741)
Games in Android Showcase (225)
games submitted by our members
Games in WIP (823)
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  
  where is GLU source code?  (Read 4401 times)
0 Members and 1 Guest are viewing this topic.
Offline croft

Junior Devvie




Java, Java, Java


« Posted 2006-09-21 05:34:34 »

I am looking for the source code for class GLU.  I note that it is not here:
https://jogl.dev.java.net/source/browse/jogl/src/classes/javax/media/opengl/glu/

David Wallace Croft / www.CroftSoft.com / (214) 636-3790 m / Advanced Java Game Programming
Offline pepijnve

Junior Devvie




Java games rock!


« Reply #1 - Posted 2006-09-21 07:19:28 »

You can find it under the make directory. I believe it's located there becaue it's mixed up with some auto generated code during the build process.
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #2 - Posted 2006-09-21 14:57:09 »

The bulk of the non-generated portions are also under src/classes/com/sun/opengl/impl/, in particular mipmap/ and tessellator/.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline croft

Junior Devvie




Java, Java, Java


« Reply #3 - Posted 2006-09-22 01:31:28 »

Thanks.  I was having problems loading class GLU in an applet whenever I deployed it using an unsigned version of jogl.jar.  It would load fine when jogl.jar was signed.  I figured this was because class GLU was composed of both a pure Java implementation and a native library implementation and that the native library implementation was causing the class to fail to load when unsigned.  I wanted to look into the source code to verify.

Since the class is assembled in bits and pieces during the make, I am not sure if my hypothesis is correct.  I went ahead and assumed that it was and I created an interface and a wrapper class for GLU that used just the pure Java implementation of the methods I needed for my JIGL demo.  You can see what I have here:
http://localhost:8080/space/jigl/
http://whoola.cvs.sourceforge.net/whoola/core/src/com/whoola/core/media/jigl/JiglGLU.java?revision=1.1&view=markup
http://whoola.cvs.sourceforge.net/whoola/core/src/com/whoola/core/media/jigl/jogl/JoglJiglGLU.java?revision=1.1&view=markup
http://whoola.cvs.sourceforge.net/whoola/core/src/com/whoola/core/media/jigl/jgl/JglJiglGLU.java?revision=1.1&view=markup

David Wallace Croft / www.CroftSoft.com / (214) 636-3790 m / Advanced Java Game Programming
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #4 - Posted 2006-09-22 18:43:11 »

You can see the final source code for the class by building the JOGL source tree. It isn't too difficult to do so; see the build instructions.

By default JOGL's GLU support is using the pure Java ports of everything, not the bindings to the C version (some of which are left in place just in case there are remaining bugs in the pure Java ports). If you could post a stack trace for the problems you saw that would be helpful in tracking down the problem. I suspect you may be triggering static initialization of something in JOGL which causes the JOGL native libraries to attempt to be loaded.
Offline croft

Junior Devvie




Java, Java, Java


« Reply #5 - Posted 2006-09-22 23:33:42 »

You can see the final source code for the class by building the JOGL source tree. It isn't too difficult to do so; see the build instructions.

By default JOGL's GLU support is using the pure Java ports of everything, not the bindings to the C version (some of which are left in place just in case there are remaining bugs in the pure Java ports). If you could post a stack trace for the problems you saw that would be helpful in tracking down the problem. I suspect you may be triggering static initialization of something in JOGL which causes the JOGL native libraries to attempt to be loaded.

From the document you cited, it looks like it might take an hour or two to get it set up.  Do you or someone else have already have the source code file for class GLU?

The error I was getting was ClassNoDefFoundError or somesuch upon instantiating GLU.  This would only occur when the jogl.jar file was unsigned.  I am using a recent jogl.jar but not the latest.

David Wallace Croft / www.CroftSoft.com / (214) 636-3790 m / Advanced Java Game Programming
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #6 - Posted 2006-09-23 01:08:43 »

From the document you cited, it looks like it might take an hour or two to get it set up.  Do you or someone else have already have the source code file for class GLU?

I've placed a relatively recent build of the file here.

The error I was getting was ClassNoDefFoundError or somesuch upon instantiating GLU.  This would only occur when the jogl.jar file was unsigned.  I am using a recent jogl.jar but not the latest.

Again, a stack trace is needed for any further diagnosis.
Offline croft

Junior Devvie




Java, Java, Java


« Reply #7 - Posted 2006-09-23 02:27:14 »

I've placed a relatively recent build of the file here.

The error I was getting was ClassNoDefFoundError or somesuch upon instantiating GLU.  This would only occur when the jogl.jar file was unsigned.  I am using a recent jogl.jar but not the latest.

Again, a stack trace is needed for any further diagnosis.

Thanks.  I saw nothing in the GLU constructor that would cause a problem.

I attempted to get the stack trace but I can no longer duplicate the error I was getting before in the unsigned applet.  I went back to using class GLU as it seems safe to do so now:
http://whoola.cvs.sourceforge.net/whoola/core/src/com/whoola/core/media/jigl/jogl/JoglJiglGLU.java?view=diff&r1=text&tr1=1.2&r2=text&tr2=1.1&diff_format=h

Thanks.

David Wallace Croft / www.CroftSoft.com / (214) 636-3790 m / Advanced Java Game Programming
Pages: [1]
  ignore  |  Print  
 
 

 
Ecumene (108 views)
2017-09-30 02:57:34

theagentd (135 views)
2017-09-26 18:23:31

cybrmynd (245 views)
2017-08-02 12:28:51

cybrmynd (239 views)
2017-08-02 12:19:43

cybrmynd (238 views)
2017-08-02 12:18:09

Sralse (252 views)
2017-07-25 17:13:48

Archive (864 views)
2017-04-27 17:45:51

buddyBro (1007 views)
2017-04-05 03:38:00

CopyableCougar4 (1566 views)
2017-03-24 15:39:42

theagentd (1373 views)
2017-03-24 15:32:08
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51
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!