I've just gotten SFML installed and running on visual C++, but I can't seam to get rect() to run. can anyone tell me what I'm doing wrong in this code;
1>------ Build started: Project: main, Configuration: Debug Win32 ------
1> main.cpp
1>c:\users\michael\documents\visual studio 2010\projects\main\main\main.cpp(17): error C2955: 'sf::Rect' : use of class template requires template argument list
1> c:\users\michael\desktop\sfml-2.0-rc\include\sfml\graphics\rect.hpp(43) : see declaration of 'sf::Rect'
1>c:\users\michael\documents\visual studio 2010\projects\main\main\main.cpp(17): error C2514: 'sf::Rect' : class has no constructors
1> c:\users\michael\desktop\sfml-2.0-rc\include\sfml\graphics\rect.hpp(43) : see declaration of 'sf::Rect'
1>c:\users\michael\documents\visual studio 2010\projects\main\main\main.cpp(27): error C2664: 'void sf::RenderTarget::draw(const sf::Drawable &,const sf::RenderStates &)' : cannot convert parameter 1 from 'sf::Rect' to 'const sf::Drawable &'
1> Reason: cannot convert from 'sf::Rect' to 'const sf::Drawable'
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Wow, thanks, I wasn't expecting to have to call so many different functions in order to draw a rectangle.
Also thanks for the web-page, I remember stumbling across those class outlines, but I was having trouble installing SFML so I didn't remember that I'd seen that. Very helpful, will consult them before asking any more SFML questions.
Edit;
So I did some playing around, the whole vector thing took a minute to understand. I just hate to leave a topic without some kind of working code, so, uh,