Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

878948 Posts in 32947 Topics- by 24353 Members - Latest Member: kanki

May 23, 2013, 01:31:10 AM
TIGSource ForumsDeveloperTechnical (Moderators: Glaiel-Gamer, ThemsAllTook)C++ on Linux
Pages: [1] 2
Print
Author Topic: C++ on Linux  (Read 1719 times)
DelishusCake
Level 0
***


funky


View Profile
« 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
Level 0
**


View Profile
« 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
Level 10
*****



View Profile WWW Email
« 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
Level 10
*****



View Profile WWW
« 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

http://www.klaimsden.net | Game : NetRush | Digital Story-Telling Technologies : Art Of Sequence
DelishusCake
Level 0
***


funky


View Profile
« 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 Smiley
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
Level 10
*****


the void


View Profile WWW
« 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
Level 5
*****


Totally.


View Profile
« Reply #7 on: February 06, 2012, 12:07:55 AM »

Yeah eclipse is great. Also netbeans has C++ support.
Logged

Xecutor
Level 1
*


View Profile Email
« 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! Smiley

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
Level 3
***



View Profile WWW Email
« 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
Level 10
*****



View Profile
« 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
Level 1
*


View Profile Email
« 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
Level 10
*****



View Profile
« 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
*



View Profile
« 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 Smiley
Logged

DelishusCake
Level 0
***


funky


View Profile
« 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
Pages: [1] 2
Print
Jump to:  

Theme orange-lt created by panic