C++ Learning Community Forum
August 01, 2010, 02:35:29 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Hello. Smiley
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: game programming  (Read 1360 times)
death
http://aroymart.com rocks!
Nerd
****
Posts: 82



View Profile WWW
« on: January 31, 2010, 03:52:04 PM »

I love making games, it's what i'll do for a living.
but i need to learn more things before its ever possible for me to make them in c++.

like
1. I don't understand openGL at all, i have a basic basic understanding of glut but i can't move up to openGL no matter how many times i try to read my "beginner OpenGL game development book" any help?

2. just curiouse but why do i always see these codes for resizing the window, if glut can handle it automaticly, does it mess with your code if you don't specify certain things?

3. I'm also hearing from some sites that it's mostly a windows thing, and others that its cross-platform (personally i believe its cross-platform) which is it?

Logged

I finally learned how to set up openGL!
C-Man
Does anyone even read this ?
Global Moderator
Dr. of C++ology
*****
Posts: 988



View Profile WWW
« Reply #1 on: January 31, 2010, 05:05:01 PM »

1. You should just completely forget about windows specifics for now , try using SDL it's pretty easy and makes a nice place to start when trying OpenGL. http://gpwiki.org/index.php/C:SDL_OGL
Immagine OpenGL just draws triangles with textures (it does way more then that but you shouldn't concern your self with that yet)
2.As i said , forget about it , use SDL for now. Some people just like to torture themselves.
3.OpenGL is crossplatform (works on linux, bsd, windows, mac os x to name a few, and some popular consoles have a very similar ogl based apie like the PS3 has PSGL which is based on OpenGL)  , and has binding for alot of languages. (python , C/C++ , pascal, C#, java, etc...)
it's the initialization part that varies accross platforms , but again just use SDL , and don't bother with the rest)
Logged

death
http://aroymart.com rocks!
Nerd
****
Posts: 82



View Profile WWW
« Reply #2 on: January 31, 2010, 05:53:52 PM »

thank you. I'll start that, can SDL be uused on more then one platform? and is it easy to make games with?
Logged

I finally learned how to set up openGL!
C-Man
Does anyone even read this ?
Global Moderator
Dr. of C++ology
*****
Posts: 988



View Profile WWW
« Reply #3 on: January 31, 2010, 06:08:02 PM »

yes it can , it's supported on windows, linux, bsd, mac os x and even BeOS lol
and yeah it's pretty simple
Logged

death
http://aroymart.com rocks!
Nerd
****
Posts: 82



View Profile WWW
« Reply #4 on: January 31, 2010, 11:10:55 PM »

I don't know, for some reason i think openGL looks better

EDIT: scratch that, SDL looks great, and very easy to learn, i can already load an image onto my program with 14 lines of code, it took aprox 30 in openGL
« Last Edit: February 01, 2010, 05:51:16 PM by death » Logged

I finally learned how to set up openGL!
PiedotTaste
Nerd
****
Posts: 78


View Profile
« Reply #5 on: March 13, 2010, 10:24:03 PM »

SDL GL is OpenGL AND SDL, SDL handles the windows initialisation and then you use OpenGL to do the rendering - I think this is what C-Man was suggesting, not that you do SDL instead of OpenGL Smiley
Logged
C-Man
Does anyone even read this ?
Global Moderator
Dr. of C++ology
*****
Posts: 988



View Profile WWW
« Reply #6 on: March 14, 2010, 03:18:35 PM »

exactly
Logged

death
http://aroymart.com rocks!
Nerd
****
Posts: 82



View Profile WWW
« Reply #7 on: March 14, 2010, 03:27:36 PM »

thanks pie, he already explained most of that in chat Cheesy
Logged

I finally learned how to set up openGL!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!