1
Graphics / Weird Error
« on: November 12, 2008, 01:45:43 am »
Thanks, it worked [Making the time_string mutable]
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.
void ClockString::Render(const RenderWindow &Window) const
{
time_string.SetText("Some Stuff");
Window.Draw(time_string);
}
error: passing `const sf::String' as `this' argument of `void sf::String::SetText(const std::string&)' discards qualifiers
protected: virtual void Render(const RenderWindow &Window) const
class myButton
{
Shape shape;
String string;
myButton(..stuff) { ... stuff}
};
int main()
{
RenderWindow App();
myButton button();
App.Draw(button);
...
}