|
DelishusCake
|
 |
« on: February 04, 2012, 10:22:17 AM » |
|
Right, I learned C++ long ago by making simple console apps for windows. Recently I switched to Ubuntu Linux and Java, but I want to learn to make games in C++. So far, all the books I've found have required Direct X and Windows. Any suggestions?
|
|
|
|
|
Logged
|
|
|
|
|
Rusk
|
 |
« Reply #1 on: February 04, 2012, 10:39:43 AM » |
|
OpenGL is usually used in place of DirectX if you are not on windows. If you use a cross-platform graphics library, you don't have to worry about it. Have a look at irrlicht or ogre3d for example.
|
|
|
|
|
Logged
|
|
|
|
|
Richard Kain
|
 |
« Reply #2 on: February 04, 2012, 12:43:03 PM » |
|
If you are willing to start fairly low-level, I would advise trying SFML. This is a C++ focused media library with a nice object-oriented structure. It will get you up and running with audio, image loading, input, and even a rendering context for OpenGL. I have personally gotten it up and running on my Ubuntu 64-bit box. (ver 11.10) You can use what IDE you like, there are several available for Ubuntu. Personally, I settled on CodeBlocks because I'm trying to build my projects with cross-platform support. (also part of why I'm using SFML) And you will definitely want to look up whatever OpenGL tutorials you can. OpenGL is the go-to library for hardware-accelerated rendering on platforms that aren't Microsoft Windows-based. Unfortunately, OpenGL is a very procedure-focused programming library. It is originally programmed in straight C, and doesn't follow more modern object-oriented design. It is important to keep that in mind while working with it.
|
|
|
|
|
Logged
|
|
|
|
|
Klaim
|
 |
« Reply #3 on: February 04, 2012, 04:10:29 PM » |
|
Books about DirectX are not books about games. Just get books about games that use OpenGl or better, Ogre3D, to get directly to the point you can display something.
(assuming you want to code with C++, obviously)
|
|
|
|
|
Logged
|
|
|
|
|
DelishusCake
|
 |
« Reply #4 on: February 05, 2012, 09:15:38 PM » |
|
I'm checking out SFML right no, and so far it looks great! Thank, guys 
|
|
|
|
|
Logged
|
|
|
|
|
wademcgillis
Guest
|
 |
« Reply #5 on: February 05, 2012, 09:20:40 PM » |
|
Whenever I'm on a Linux distro, I use SFML & Code::Blocks for C++ game programming.
|
|
|
|
|
Logged
|
|
|
|
|
BlueSweatshirt
|
 |
« Reply #6 on: February 05, 2012, 09:37:41 PM » |
|
I think there's an Eclipse distro for Linux, too. I haven't used Eclipse for C++, but I like it for Java & AS3.(FlashBuilder)
|
|
|
|
|
Logged
|
|
|
|
|
Geeze
|
 |
« Reply #7 on: February 06, 2012, 12:07:55 AM » |
|
Yeah eclipse is great. Also netbeans has C++ support.
|
|
|
|
|
Logged
|
|
|
|
|
Xecutor
|
 |
« Reply #8 on: February 06, 2012, 06:06:20 AM » |
|
It will take some time to configure Eclipse CDT, but if you do this, Eclipse is just Awesome! It fully parses your C++ code! Except for some crazy temlates cases it's code completion is very accurate. Code analyzis in latest version can show most errors as you type! I vote for Eclipse CDT as C++ IDE with two hands!  The only thing it is missing is some kind of high level macro support (automation). SDL+OpenGL will make code platform independant for the most part.
|
|
|
|
|
Logged
|
|
|
|
|
agersant
|
 |
« Reply #9 on: February 06, 2012, 06:19:12 AM » |
|
I dont like Eclipse and Netbeans, they're so slow (and Eclipse is even buggy). I feel more at home using a beefy text editor like emacs, vim or geany (or Notepad++ in Windows). They can be configured to support basic code completion (without semantics).
|
|
|
|
|
Logged
|
|
|
|
|
rivon
|
 |
« Reply #10 on: February 06, 2012, 08:04:18 AM » |
|
I dont like Eclipse and Netbeans, they're so slow (and Eclipse is even buggy). Agree with this... IMO Codeblocks is the best choice as it has the same features as the above two but it is fast.
|
|
|
|
|
Logged
|
|
|
|
|
Xecutor
|
 |
« Reply #11 on: February 07, 2012, 08:54:10 AM » |
|
You must try latest version of Eclipse CDT. I'm using Eclipse as IDE of choise for huge project on mac mini and don't experience any slowdowns. On some really really big files syntax/semantic highlighting may be applied with little delay. But this doesn't affect typing or code completion. On my home PC with fast CPU Eclipse is lightning fast. Code completion in CDT is in completely different league that the one in Code::Blocks or Emac/Vim.
|
|
|
|
|
Logged
|
|
|
|
|
rivon
|
 |
« Reply #12 on: February 07, 2012, 12:54:21 PM » |
|
There isn't code completion in Emacs/Vim :D (at least not without addons).
|
|
|
|
|
Logged
|
|
|
|
Daid
Level 1
|
 |
« Reply #13 on: February 07, 2012, 02:48:17 PM » |
|
I dont like Eclipse and Netbeans, they're so slow (and Eclipse is even buggy). Agree with this... IMO Codeblocks is the best choice as it has the same features as the above two but it is fast. Most important difference between CodeBlocks and Eclipse is... CodeBlocks takes 10 seconds to configure correctly, Eclipse 10 hours. Eclipse has a SEARCH function in the configuration dialog. That should you tell you all you need to know about how complex Eclipse is. I also love CodeBlocks because it make cross platform development a breeze 
|
|
|
|
|
Logged
|
|
|
|
|
DelishusCake
|
 |
« Reply #14 on: February 07, 2012, 04:04:31 PM » |
|
Right now I'm just using g-edit (with syntax highlighting on). I'll probably switch to Eclipse CDT later.
|
|
|
|
|
Logged
|
|
|
|
|