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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - FluidHammer

Pages: [1]
1
Thanks for the prompt reply. I will stop messing about with 1.6 and make the leap to 2.0!

2
Graphics / How to use predefined colours in SFML 1.6 on VS2010 Express
« on: October 16, 2012, 03:24:08 pm »
Newbie to C++, so this is obvious...
Pasted the simple shapes example into a project that is already configured for SFML 1.6.
The lines containing the predefined colours, such as

        App.Draw(sf::Shape::Rectangle(350, 200, 600, 350, sf::Color::Green));

Produced the compiler message

Pang.obj : error LNK2001: unresolved external symbol "public: static class sf::Color const sf::Color::Green" (?Green@Color@sf@@2V12@B)

but when I tried 
       
App.Draw(sf::Shape::Rectangle(350, 200, 600, 350, sf::Color(0,255,0)));

a green rectangle appears.

How do I use the predefined colours, and how do I define my own?

 

Pages: [1]