Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


lja

Member Since 23 May 2013
Offline Last Active May 27 2013 10:00 PM

Posts I've Made

In Topic: Help with SFML

23 May 2013 - 09:15 AM

In C, you must define your variables at the beginning of a scope before any other code. Your main function has a call to the puts-function, and you must define all your variables before that point.

 

Oops! Thank you for pointing that out!


In Topic: Help with SFML

23 May 2013 - 08:58 AM

So what is causing the undeclared variable error?


In Topic: Help with SFML

23 May 2013 - 07:59 AM

sfVideoMode mode = {800, 600, 32};

 

Are you sure you can do that in C? I never used CSFML but its weird if sfVideoMode is implemented as a raw array.

 

I'm not sure, that's how it is done on that tutorial page but then again I've followed that and it doesn't work. I'm not sure how else you set the resolution and depth.


PARTNERS