OpenGL: C vs Java

Hi guys, have been asked to answer a question and am hoping that a few of you may have an answer plz as it is relevant to openGL, thanks:
OpenGL was originally developed for use with the C programming language. What are the options for using OpenGL with other languages such as Java? Are there any issues e.g. speed of Java vs C?>
thanks to all who reply :slight_smile:

No real issues.

Cas :slight_smile:

I’ll repeat my post that I made to this EXACT same question on the gamedev forums. Given your lack of replies on either this forum or the Gamedev forums I have a suspicion that you’re trolling …

D.

No real issues :wink: Rose tinted glasses :slight_smile: I suppose it depends on how you define “real”?

  1. Speed penalty - this is one, its very small if you’re careful but it still exists.

  2. API availabilty… the C library is up to date with the spec. Other languages will always be trailing slightly.

  3. Language Nuances. Each language may have slightly different ways of passing data around. Buffers for instance in LWJGL.

  4. Support - Learning into OpenGL/3D is a many splendid thing and web is full of tutorials. Most in C/C++. Any other language and you’ve got to deal with minor porting.

For me, all of this pales into insignificance when compared to using a proper language with modern features.

As soon as I find such a language I’ll let you know :wink:

Kev

"Language Nuances. Each language may have slightly different ways of passing data around. Buffers for instance in LWJGL. "

can you tell me how C differs, passing data around?
thanks

Passing a big block of data in C can be as simple as an array. In Java (due to the native layer) these sort of blocks get put in native buffer objects.

Kev