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 - sfmlhelperguy

Pages: [1]
1
Graphics / Why wont my code for making text work?
« on: January 16, 2012, 11:07:42 pm »
Quote from: "Laurent"
The code in your first message is 2.0. You probably read the wrong documentation or tutorials.

Oh really wow so then how do you make text in sfml 2.0?

2
Graphics / Why wont my code for making text work?
« on: January 16, 2012, 08:28:52 pm »
Quote from: "Laurent"
Quote
Idk

Which version of SFML are you using? You must know that ;)

version 1.6 from what I see

3
Graphics / Why wont my code for making text work?
« on: January 16, 2012, 07:15:15 pm »
Quote from: "Laurent"
Are you sure that you have SFML 2.0 headers?


Idk that's why im asking do I need another header or something because I have every dll I need in my program folder

4
Graphics / Why wont my code for making text work?
« on: January 16, 2012, 06:22:44 pm »
Code: [Select]
#include<SFML/Graphics.hpp>
int main()
{
    sf::VideoMode Vmode(640,480,32);
    sf::RenderWindow Window(Vmode,"Hello There");
    sf::Text text("Something");
    while(Window.IsOpened())
    {
        sf::Event Event;
        while(Window.GetEvent(Event))
        {
            if(Event.Type == sf::Event::Closed || Event.Key.Code == sf::Key::Escape)
            {
                Window.Close();
            }
        }
            Window.Clear();
            Window.Draw(text);
            Window.Display();
    }
    return 0;
}

And here are the errors:

Quote
In function 'int main()':
line 6  error: 'Text' is not a member of 'sf'
line 6 error: expected ';' before 'text'
line 18  error: 'text' was not declared in this scope

I dont know what the problem is please help me

Pages: [1]
anything