Posted: Wed Jun 06, 2007 3:52 am
I would put money on it being a C-style one for two reasons.
First (& foremost) there is still ALOT of code written in straight C. It is relatively simple to wrap C-code into an object oriented form & to integrate C-code into other languages. The same cannot be said in reverse for most other languages.
Secondly, OpenGL is primarily an API over a device driver. Device drivers are in general written in Assembly &/or C. With C, one can control the bloat to an almost exact degree. Again, most other languages cannot say the same.
I do wonder though why everyone seems to differentiate between coding in an "object oriented" manner and coding in C. Coding object oriented applications/libraries is just as possible in C as it is in C++, Java, etc. The only difference I find is that C doesn't force you too (niether does C++, but if you're not using it's OO or template facilities - you are pretty much writing straight C anyhow).
--EK
First (& foremost) there is still ALOT of code written in straight C. It is relatively simple to wrap C-code into an object oriented form & to integrate C-code into other languages. The same cannot be said in reverse for most other languages.
Secondly, OpenGL is primarily an API over a device driver. Device drivers are in general written in Assembly &/or C. With C, one can control the bloat to an almost exact degree. Again, most other languages cannot say the same.
I do wonder though why everyone seems to differentiate between coding in an "object oriented" manner and coding in C. Coding object oriented applications/libraries is just as possible in C as it is in C++, Java, etc. The only difference I find is that C doesn't force you too (niether does C++, but if you're not using it's OO or template facilities - you are pretty much writing straight C anyhow).
--EK