JNI (Java Native Interface) is available to call C libraries natively.
However, it is rather clumsy.  In addition, you will then not have a
platform independent solution.  So unless you have a major time
constraint or your deployment platform is fixed, you should expect to
port all of the code into Java.

kddubb

On Mon, 2004-02-09 at 09:02, Florin Herinean wrote:
> For me it seems pretty obvious that you'll need to translate all the C
> code to java. If you'll do it by hand, you'll have a chance to learn
> java. Otherwise you may want to search the internet for automatic
> translators. The JOGL implementation is a 1 by 1 translation of the
> corresponding OpenGL functions (identical names & signatures), so any
> OpenGL book will be good with JOGL too.
>
> Florin
>         -----Original Message-----
>         From: Discussion list for Java 3D API
>         [mailto:[EMAIL PROTECTED] Behalf Of Naomi
>         Greenberg
>         Sent: Montag, 9. Februar 2004 15:57
>         To: [EMAIL PROTECTED]
>         Subject: Re: [JAVA3D] Porting OpenGL application
>
>
>         What do I do with all the C code that calculates the contour
>         and surface information.  Do I leave that in C or translate to
>         Java? I want it to be portable.  Also, are there any books or
>         courses in JOGL?
>
>         Thanks again!
>                 ----- Original Message -----
>                 From: Florin Herinean
>                 To: [EMAIL PROTECTED]
>                 Sent: Monday, February 09, 2004 9:52 AM
>                 Subject: Re: [JAVA3D] Porting OpenGL application
>
>                 If you have the sources of the C program, then
>                 probably the simplest way will be to go with Swing &
>                 JOGL. If not, go with Swing & Java3D
>
>                 Florin
>                         -----Original Message-----
>                         From: Discussion list for Java 3D API
>                         [mailto:[EMAIL PROTECTED] Behalf
>                         Of Naomi Greenberg
>                         Sent: Montag, 9. Februar 2004 15:33
>                         To: [EMAIL PROTECTED]
>                         Subject: [JAVA3D] Porting OpenGL application
>
>
>                         I have a 3D graphics program written in C with
>                         Xforms and OpenGL.  I want to convert it to
>                         work within a Java GUI.  Since I am a novice,
>                         I want to know what the best (simplest,
>                         portable) options I have are.  I could rewrite
>                         it in Java and Java3D (hardest option?), or
>                         perhaps I could somehow have my Java GUI call
>                         this executable (is this possible? probably
>                         not portable, right?).  There has been talk of
>                         JOGL.  Is that a one-for-one mapping of OpenGL
>                         with Java ?  Could anybody help me with this?
>
>                         Thanks,
>                         Naomi Greenberg
>                         
> =========================================================================== To 
> unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message 
> "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and 
> include in the body of the message "help".
>                 
> =========================================================================== To 
> unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message 
> "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and 
> include in the body of the message "help".
>         =========================================================================== 
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the 
> message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] 
> and include in the body of the message "help".
> =========================================================================== To 
> unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message 
> "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and 
> include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to