is There any OpenGL tutorial with C language??

Goomba
Unregistered
 
Post: #1
I decided to read my C programming book, this time I am going to finish it. I already read Programming in Objective-C, but still am not an expert yet. But since Going back to reading about C, I am understanding a lot of concepts in Objective-C now that i didn't understand before.

So, I should have read the whole book on C before moving on to Objective-C! My intention was to program small games(2D), and then see if I can make bigger ones(3D). I bought all these books and one of them is Pangea's Ultimate game programming for Mac. The source code uses C, not Objective-C. And It recommends reading about OpenGL.

So, I was wondering is there a tutorial to show how to get started using OpenGL with the C language?? I only see Websites that have C++ tutorials with OpenGLSad

If anyone can help, I be very happyGrin. I hope the joy you bring me is enough , because I am flat broke and cannot send any money!Cry
Quote this message in a reply
Moderator
Posts: 373
Joined: 2006.08
Post: #2
I'm pretty sure that nehe.gamdev.net is all in C; admittably, it's geared more towards Windows, but you can still get the basics down.
-wyrmmage

Worlds at War (Current Project) - http://www.awkward-games.com/forum/
Quote this message in a reply
Goomba
Unregistered
 
Post: #3
Thanks, but I already checked that site and all the code is in c++ if I remember correctly. I checked sites like that, which are popular, but haven't found anything that is just C and OpenGL.

I am looking for books that may have OpenGl with C instead of C++. I found this book and at the time it was supposed to ship in July,now they changed it to October! It is for Mac OSX, so I thought the source code may be written in C http://www.amazon.com/OpenGL-Programming...94&sr=1-17

If you know of books that would help, I would appreciate the link. I have 2 books on OpenGl, but they are for C++! I was going to learn C++ but changed my mind.
Quote this message in a reply
Member
Posts: 312
Joined: 2006.10
Post: #4
OpenGL is all the same. Doesn't matter what language. C and C++ are so similar, that you should have no problem going from C++ to C.
Quote this message in a reply
Moderator
Posts: 608
Joined: 2002.04
Post: #5
Why do you care much about C vs. C++? It really doesn't matter that much.
Quote this message in a reply
Goomba
Unregistered
 
Post: #6
Well I care if it is C, because that is the language I am trying to master or at least be comfortable programming in. Then I move on to Objective-C, which I read a book already(Programming in Objective-C).

Reading the book on C I got (and going to finish this time), I am beginning to understand Objective-C better. So when I understand Objective-C more I will then be able to write Cocoa programs , games, etc.

I do not want get confused with going back to C and C++. Objective-C is a strict superset of C , what I understand, and I am not planning on learning C++.Wink
Quote this message in a reply
Member
Posts: 100
Joined: 2006.05
Post: #7
Well, if the tutorials don't have any classes, there shouldn't be any problem with translating them. In fact, C has more lenient type checking so it might even be easier to compile some things in C. The only things I can see that need changing off the top of my head are the use of new() and delete(), which can be replaced by equivalent malloc() and dealloc() code, moving loop variable declarations outside for() statements, and using printf() instead of cout... Other than that, the two are indistinguishable if there are no classes. If there are, consider it a learning experience to turn them into structs...
Quote this message in a reply
Nibbie
Posts: 1
Joined: 2009.01
Post: #8
The book named "OpenGL® Programming Guide: The Official Guide to Learning OpenGL®, Version 2.1 (6th Edition)" provides examples written on C.

An older version of this book can be read for free following the link link below:

http://www.glprogramming.com/red/

I don't know if this is the ideal book for learning OpenGL. However, you can read all the reviews at Amazom and make your decision:

[url="http://www.amazon.com/review/product/0321335732/ref=dp_top_cm_cr_acr_txt?_encoding=UTF8&showViewpoints=1"]http://www.amazon.com/review/product/0321335732/ref=dp_top_cm_cr_acr_txt?_encoding=UTF8&showViewpoints=1
[/url]

and

http://www.amazon.com/review/product/032...ewpoints=1
Quote this message in a reply
Moderator
Posts: 1,560
Joined: 2003.10
Post: #9
This thread is a year and a half old. The original poster has probably long since moved on.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Language/Tutorial/Info PatrickA 28 9,409 Jul 9, 2008 02:14 AM
Last Post: leRiCl