Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your help!

We need 7 developers from Canada and 18 more from Australia to help us complete a research survey.

Support our site by taking a quick sponsored survey and win a chance at a $50 Amazon gift card. Click here to get started!


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