• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

C++ & sdl?

olithereal

New Member
Joined
May 24, 2008
Messages
1,262 (0.22/day)
System Name Geometro
Processor i5 760 @ Stock (need 1156 brackets for my cooler)
Motherboard MSI P55A-G55
Cooling Kingwin RVT-12025 HDT
Memory 2x4GB Mushkin Blackline Frostbyte 1600 C9-9-9-24
Video Card(s) GTX 275 MSI Twin Frozr OC
Display(s) Samsung 2333SW 23"
Case Lancool PC-K62
Power Supply Corsair VX550W 550W ATX 12V
Software Windows 7 64 bit / Arch Linux x64
I've just finished my college semester, and as I have nearly a month of break, I thought I should do something half productive during this time. As I've been thinking about learning C++ for a little while now, why not do it while I have the time?

I've also been wanting to give a go to basic game development, just to understand how it works, etc. as I have next to no idea how it works. I've fucked around with .NET's Graphics class, but that's about it really.

So yeah, a couple person told me that when I get comfortable with C++, I should try out SDL for that. I guess my question is, do you guys think this is a good place to start? If not, what do you think I should try?

Current language I'm comfortable with:
C#
VB.NET (not the biggest fan really :p)
I'm alright with Java.

Thanks!
 

Kreij

Senior Monkey Moderator
Joined
Feb 6, 2007
Messages
13,817 (2.20/day)
Location
Cheeseland (Wisconsin, USA)
Why not download XNA Studio (C#) and play around with that?
 

olithereal

New Member
Joined
May 24, 2008
Messages
1,262 (0.22/day)
System Name Geometro
Processor i5 760 @ Stock (need 1156 brackets for my cooler)
Motherboard MSI P55A-G55
Cooling Kingwin RVT-12025 HDT
Memory 2x4GB Mushkin Blackline Frostbyte 1600 C9-9-9-24
Video Card(s) GTX 275 MSI Twin Frozr OC
Display(s) Samsung 2333SW 23"
Case Lancool PC-K62
Power Supply Corsair VX550W 550W ATX 12V
Software Windows 7 64 bit / Arch Linux x64
Why not download XNA Studio (C#) and play around with that?

Yeah, I've been thinking about that, but really I think it could help me with learning C++ as well...and I've only really worked with .NET yet, and I want to try something else for now.

But yeah, chances are I'll probably end up playing around with it, that's pretty certain.
 

streetfighter 2

New Member
Joined
Jul 26, 2010
Messages
1,655 (0.33/day)
Location
Philly
SDL only supports DirectX 7 (or something indubitably old). If I were you I'd try XNA (as Kreij said) or CUDA. CUDA has more uses than just gaming and it's quite popular in industry. Also CUDA is based in C++ (with lots of other bindings) :).
 

olithereal

New Member
Joined
May 24, 2008
Messages
1,262 (0.22/day)
System Name Geometro
Processor i5 760 @ Stock (need 1156 brackets for my cooler)
Motherboard MSI P55A-G55
Cooling Kingwin RVT-12025 HDT
Memory 2x4GB Mushkin Blackline Frostbyte 1600 C9-9-9-24
Video Card(s) GTX 275 MSI Twin Frozr OC
Display(s) Samsung 2333SW 23"
Case Lancool PC-K62
Power Supply Corsair VX550W 550W ATX 12V
Software Windows 7 64 bit / Arch Linux x64
Thanks to both of you!

So yeah, I'm looking at making a fairly basic 2D game, a sidescroller of some sort...kind of like this, to give you an idea:
http://www.youtube.com/watch?v=dkd6u8jIWVQ

So yeah, that's why I don't really mind the fact that it doesn't support any higher than DX7. I'll probably look into CUDA, see how that goes.
 

Kreij

Senior Monkey Moderator
Joined
Feb 6, 2007
Messages
13,817 (2.20/day)
Location
Cheeseland (Wisconsin, USA)
IMO, Olith, you should grab something that has a lot of the functionality built into classes and methods in the APIs already. That way you can concentrate on the basics of what need to be done and won't get bogged down trying to reinvent the wheel right from the start. You can then dig into the guts of it when you have a good grasp of the higher level concepts.

That's why I suggested XNA. It has a ton of pre made classes and methods for working in 2D (and 3D).

Disclaimer : No, I don't work for MS, but if they offer me a work at home job I'll take it. :D
 

olithereal

New Member
Joined
May 24, 2008
Messages
1,262 (0.22/day)
System Name Geometro
Processor i5 760 @ Stock (need 1156 brackets for my cooler)
Motherboard MSI P55A-G55
Cooling Kingwin RVT-12025 HDT
Memory 2x4GB Mushkin Blackline Frostbyte 1600 C9-9-9-24
Video Card(s) GTX 275 MSI Twin Frozr OC
Display(s) Samsung 2333SW 23"
Case Lancool PC-K62
Power Supply Corsair VX550W 550W ATX 12V
Software Windows 7 64 bit / Arch Linux x64
IMO, Olith, you should grab something that has a lot of the functionality built into classes and methods in the APIs already. That way you can concentrate on the basics of what need to be done and won't get bogged down trying to reinvent the wheel right from the start. You can then dig into the guts of it when you have a good grasp of the higher level concepts.

That's why I suggested XNA. It has a ton of pre made classes and methods for working in 2D (and 3D).

Disclaimer : No, I don't work for MS, but if they offer me a work at home job I'll take it. :D

Sorry for the late reply! I was in Quebec city visiting family...didn't really have access to the internets :p

But yeah...I'll go with XNA I think....after all. Thanks!

I know I'm a bit hard headed ;)
 

Kreij

Senior Monkey Moderator
Joined
Feb 6, 2007
Messages
13,817 (2.20/day)
Location
Cheeseland (Wisconsin, USA)
No need to apologize. It's the holiday season and we are all busy.

You weren't being hard headed, you just had a goal and did not know where to start.
Coming to TPU for ideas and opinions is the best place to start, so you had an ace in the hole. :D

No matter what you choose to start with, you are going to have a million questions.
Start an overall thread ... something like "Olitherals Game Programming questions" and post them all in one place. You will then have a single thread resource to refer to and not have to jump to a lot of TPU threads that you start. Just a little "best practice" info from my experience trying to find shit I've posted before. :laugh:
 
Top