I'm not really familiar with OpenGL but I m curious if OpenGl can be used with only C, without C++?
This is a discussion on OpenGl and C within the Game Programming forums, part of the General Programming Boards category; I'm not really familiar with OpenGL but I m curious if OpenGl can be used with only C, without C++?...
I'm not really familiar with OpenGL but I m curious if OpenGl can be used with only C, without C++?
Yes.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I support http://www.ukip.org/ as the first necessary step to a free Europe.
> Right to the center of the question, eh?
Yes.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I support http://www.ukip.org/ as the first necessary step to a free Europe.
Thanks a lot for the reply. Sorry but I will have to bother you with another question: I have started learning OpenGL on OpenGL Video Tutorial - Home but I came to the section for textures and there the image is loaded into a class(c++) and is said that that's the format OpenGL "likes" the images. Is this true or can it be done some other way in c?
The file formats have nothing to do with whether you use C or C++.
Like I said, the whole API is C based.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I support http://www.ukip.org/ as the first necessary step to a free Europe.
I think you misunderstood me, but so did I misunderstood the tutorial. What I meant was the format into what you load the image( I mentioned the class). I misunderstood the tutorial and though that all images had to be loaded into a class, but the tutorial was reffering to an array of pixels which is than along with other parameters passed to a function that turns it into a texture.
Sorry for not being clear enough.