Jump to content

  • Log In with Google      Sign In   
  • Create Account


Where to start? C++/SDL/OpenGL?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
11 replies to this topic

#1 sargento   Members   -  Reputation: 102

Like
1Likes
Like

Posted 02 February 2012 - 10:16 AM

Hello. I have become very interested in game programming development. I am interested in making cross platform games but primarliy for linux. However I would like the games to be able to run on Windows/OsX as well. I have been dabbling in python and have some experience with C++.

I guess my question is where to start? It is a bit overwhleming to choose which languages I should be learning. For exmaple should I be learning SDL or OpenGL and C++? I also have no idea where a good reference to learn is, wether it be books or websites.

Any input would help.
Thanks for reading,
Tony

Sponsor:

#2 DarkHorseKnight   Members   -  Reputation: 143

Like
-4Likes
Like

Posted 02 February 2012 - 10:34 AM

For starting procedures of programming I would say go for the fastest language now that would be Binary/X86 Assembly but all in all most people in todays walks of life like most indie game companys/game companys Use C++ Programming Language for the speed and then use OpenGL for Cross Platform 3D Rendering,etc and SDL For Window Management.


There is other alternatives like using Win32 API ,QT Creator Kit ,freeGlut for Window Managements but I would personally guide you towards C++,SDL,OpenGL and to start you off in the right direction go for Lazy Foo Tutorials for SDL education and OpenGL your going to have to spam google and search through books and beg on irc if you want to learn anything its rather difficult otherwise for C++ learning watch thenewboston tutorials in C++ Posted Image

Hope this helps

for an IDE use Code::Blocks or Microsoft Visual Studio 2010 express free edition for C++

#3 flodihn   Members   -  Reputation: 214

Like
0Likes
Like

Posted 02 February 2012 - 10:37 AM

I would say pygame is a very good start for a beginner, it is basically a library in python, helping you to make 2D games.
www.next-gen.cc NextGen MMO Architecturewww.abydosonline.com Abydos Online

#4 DarkHorseKnight   Members   -  Reputation: 143

Like
-4Likes
Like

Posted 02 February 2012 - 10:38 AM

pygame is tash but fun for simplisty

#5 sargento   Members   -  Reputation: 102

Like
0Likes
Like

Posted 02 February 2012 - 11:03 AM

I have actually done quite a bit of pygame tutorials and have a basic understanding of the pygame modules. I am looking more towards 2d graphics right now as I am not much of an artist. Also I use linux as my native operating system so if anybody could reccomend a nice IDE for C++ on linux it would be greatly appreciated. Thanks for the quick responses.

Edit: Would choosing to go with more of 2d approach on the graphics change if I should learn OpenGL or SDL first?

Thanks again.
Tony

#6 Cornstalks   Crossbones+   -  Reputation: 6966

Like
3Likes
Like

Posted 02 February 2012 - 11:05 AM

For starting procedures of programming I would say go for the fastest language now that would be Binary/X86 Assembly

Surely you can't be serious?

There is other alternatives like using Win32 API

He said primarily Linux, but preferably cross platform...

Microsoft Visual Studio 2010 express free edition for C++

And how does he use MSVC++ on Linux?

pygame is tash but fun for simplisty

Ok, just stop now.

@sargento: Ignore UnderGrowthFiler. Just... ignore what he said. To be honest with you, you shouldn't stress about which language to learn. If you become a programmer, you'll learn more than one, and just because you start with language A doesn't mean you won't/can't ever learn language B. And just because you make a game in language A doesn't mean you can't later make on in language B. I'd say either go with Python or C++ (seeing as you're familiar with them), but specifically go with whichever one you are more comfortable and familiar with. The concepts you learn in one will carry over into the other (once you learn how to program in one language, it's a ton easier to pick up any other language).
[ I was ninja'd 71 times before I stopped counting a long time ago ] [ f.k.a. MikeTacular ] [ My Blog ] [ SWFer: Gaplessly looped MP3s in your Flash games ]

#7 Cornstalks   Crossbones+   -  Reputation: 6966

Like
1Likes
Like

Posted 02 February 2012 - 11:08 AM

Also I use linux as my native operating system so if anybody could reccomend a nice IDE for C++ on linux it would be greatly appreciated.

The one useful thing UnderGrowthFiler did was mention the word Code::Blocks. Personally, I really like it, and it works on Linux, OS X, and Windows.

Edit: Would choosing to go with more of 2d approach on the graphics change if I should learn OpenGL or SDL first?

Not really. If you're using SDL, you'd most likely end up using OpenGL for graphics anyway.
[ I was ninja'd 71 times before I stopped counting a long time ago ] [ f.k.a. MikeTacular ] [ My Blog ] [ SWFer: Gaplessly looped MP3s in your Flash games ]

#8 sargento   Members   -  Reputation: 102

Like
0Likes
Like

Posted 02 February 2012 - 11:27 AM

Thanks again for the responses. Greatly appreciated Cornstalks. Questions have been answered and now it is time to learn and experiment. Have a good day!

Tony

#9 mhagain   Crossbones+   -  Reputation: 7413

Like
2Likes
Like

Posted 02 February 2012 - 11:32 AM

So far as drawing stuff is concerned, 2D is just a special case of 3D. if you keep this in mind it will help you a lot when you encounter tutorials and info that deal primarily with 3D, and will also help you when you feel that the time has come to make the transition to 3D.

Good suggestions upthread (well, mostly...) so I won't repeat them.

It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.


#10 DarkHorseKnight   Members   -  Reputation: 143

Like
-2Likes
Like

Posted 02 February 2012 - 07:17 PM

Don't like the fact that I should be ignored because people like you destroy my way of learning quite frankly and everything I said was truthfull so don't know where your going at???

I was wrong on the WIN32 API and MSVC++ stuff tho so you have me there got a realization problem :(

#11 Cornstalks   Crossbones+   -  Reputation: 6966

Like
0Likes
Like

Posted 02 February 2012 - 07:31 PM

Don't like the fact that I should be ignored because people like you destroy my way of learning quite frankly and everything I said was truthfull so don't know where your going at???

No, you're being ignored because the first piece of advice you gave was rubbish (start with x86 Assembly???). But then the advice doesn't improve much in quality. And then you unnecessarily put down Python and Pygame. You may not use or prefer them, but that certainly doesn't make them "tash" (I assume you meant "trash"). Whatever good ideas you may have had (I'll give you Code::Blocks) are surrounded by bad ideas, so of course they're getting ignored.

In addition, if you speak fluent English, I would ask you to please start using punctuation and proper sentences and grammar. If English is not your first language and you aren't fully fluent in it, then it's ok.
[ I was ninja'd 71 times before I stopped counting a long time ago ] [ f.k.a. MikeTacular ] [ My Blog ] [ SWFer: Gaplessly looped MP3s in your Flash games ]

#12 xploiitz   Members   -  Reputation: 108

Like
0Likes
Like

Posted 02 February 2012 - 08:06 PM

I lurk these forums so much i guess this will be my first post.... I've only been programming for a few months, not sure how experienced you are but C# would be a great language to start with but Im not 100% sure if that is compatible with osX since C# is run off of the .net framework.... but if you do go with C# Oreilly labs "Head First C#" is an absolutely great book to start with, (and C# is far more user friendly than C++ is) I'm learning both at the same time, and the learning curve for C++ is far steeper than C# is..

But if you do choose the C++ route I'd personally Recommend a book called "Sam's Teach your self C++ in 1 hour a day" teaches you from the very basics to some pretty advanced topics, explains every line of code in every example, and end of each chapter even has snippets and examples for you to quiz your knowledge.

I believe that you should gain some more experience in C++ before trying to jump into DX/OGL , since DX/OGL are typically written in C/C++ and require far more experience anyhow!

I know i get extremely motivated when i see/read other peoples great work and results, but you gotta start from the ground up like every one else did!

just my .02! :D

Good luck!




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS