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

Login with username, password and session length

 
Advanced search

891145 Posts in 33525 Topics- by 24768 Members - Latest Member: Stome

June 19, 2013, 02:03:48 AM
TIGSource ForumsDeveloperTechnical (Moderators: Glaiel-Gamer, ThemsAllTook)wich c library for display/input etc ?
Pages: [1]
Print
Author Topic: wich c library for display/input etc ?  (Read 589 times)
nikki
Level 10
*****


View Profile Email
« on: August 13, 2012, 11:25:11 AM »

As a small vacation I decide to start learning C from http://c.learncodethehardway.org/book/, I was wondering though for graphical joy, and other game-relaed stuffs wich libs do you use ? Are SDL/Allegro still ok ? or are there better solutions ?

ps (i would like some convenience methods of using OGL if that makes sense)
Logged
rivon
Level 10
*****



View Profile
« Reply #1 on: August 13, 2012, 12:33:16 PM »

SDL is great if you don't need rotations or scaling of sprites. For example for pixel art it's just great. Very easy to use and fast.
If you need rotations or scaling then SFML would be probably better.
By the way, why not learn C++?
Logged
eigenbom
Level 10
*****



View Profile WWW
« Reply #2 on: August 13, 2012, 11:16:13 PM »

SFML is a c++ lib, and I'm not sure there are many c only game libs, besides the ones you mentioned already. And that book looks pretty hardcore, good luck!
Logged

Liosan
Level 2
**


View Profile
« Reply #3 on: August 14, 2012, 12:29:49 AM »

SFML is a c++ lib, and I'm not sure there are many c only game libs, besides the ones you mentioned already. And that book looks pretty hardcore, good luck!
True, but SFML has C bindings - CSFML.

Liosan
Logged

eigenbom
Level 10
*****



View Profile WWW
« Reply #4 on: August 14, 2012, 01:25:46 AM »

oh cool Smiley
Logged

indietom
Level 2
**

Tom


View Profile Email
« Reply #5 on: August 14, 2012, 01:55:31 AM »

SDL is fast.
Logged

Code::Blocks
This is my profile, there are many like it but this one is mine.
impulse9
Level 5
*****



View Profile WWW
« Reply #6 on: August 14, 2012, 03:54:31 AM »

Allegro is ok. Can be a tad slow but AllegroGL fixes that. All in all it's good enough for 2D games.
Logged

ThemsAllTook
Moderator
Level 9
******


Alex Diener


View Profile WWW
« Reply #7 on: August 14, 2012, 09:49:08 AM »

GLUT is a good choice for learning, as long as you're OK with ditching it and moving on to something else when you want to write an app to release to other people.
Logged
Xienen
Level 2
**


Greater Good Games


View Profile WWW Email
« Reply #8 on: August 15, 2012, 03:02:49 PM »

From what I've read, a couple of better alternatives to GLUT are FreeGLUT and GLFW.  I haven't used any of them, but I've seen them recommended in place of old school GLUT.
Logged

Owner/Programmer at Greater Good Games makers of Break Blocks
Currently developing It Hungers(Unity) and Swipe Attack(UDK)
Raptor85
Level 2
**

126746725
View Profile WWW Email
« Reply #9 on: August 16, 2012, 10:23:32 AM »

If you're mostly looking for window setup, input handling, sound handling and such and want to use Opengl for the actual rendering, SDL is a good choice for that, and SDL2 is even better as you can ask for a specific context version as well. (All the GL setup is taken care of for you in a cross-platfomer manner, after that you just use opengl code as you would normally)
Logged

cross-platform rapid development game engine
Currently running a kickstarter to fund development of Aether
kamac
Level 10
*****


Notorious posts editor


View Profile WWW Email
« Reply #10 on: August 16, 2012, 12:49:51 PM »

Quote
GLUT is a good choice for learning, as long as you're OK with ditching it and moving on to something else when you want to write an app to release to other people.

Quote
From what I've read, a couple of better alternatives to GLUT are FreeGLUT and GLFW.  I haven't used any of them, but I've seen them recommended in place of old school GLUT.

I don't really know what's so good in GLUT for learning OpenGL. I think GLFW is equal if not better, since it doesn't force you to have stupid defined main loop functions, mouse click functions.. It's almost as stupid as event listeners in AS3 (I guess I have to get used to them, somebody had a purpose in creating them). Lately while looking at a huge project in AS3, I had a really hard time to see what is what because of all those listeners and callbacks everywhere.
Logged

Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic