Teen Programmers Unite  
 

 

Return to forum top

OpenGL Question

Posted by Faisal [send private reply] at April 25, 2002, 01:22:41 PM

Is OpenGL C++ or what?

Posted by unknown_lamer [send private reply] at April 25, 2002, 01:34:25 PM

OpenGL is a C api...and since C++ is mostly (but not 100%) compatible with C, it can be used from OpenGL. You can also find a C++ wrapper around OpenGL that allows you to use it in an "object oriented" way (e.g. Qt's OpenGL widget).

Posted by taubz [send private reply] at April 25, 2002, 01:58:15 PM

To be more specific, OpenGL isn't for any one particular language. It's most commonly used with C, but I've used it with VB and Java. It's simply a library of functions to draw 3D stuff.

- taubz

Posted by unknown_lamer [send private reply] at April 25, 2002, 02:41:25 PM

Written in C with bindings for other languages.

Posted by Psion [send private reply] at April 25, 2002, 06:54:22 PM

ul, there is nothing in the OpenGL interface specification that says implementations must be coded in C, so your comment isn't very constructive. =)

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.