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

Pages: [1]
1
General / Re: documentation example not working for me
« on: August 12, 2012, 08:35:40 am »
It worked! thanks again! I have found the problem. It doesnt seem to like my jpeg image for some reason...


 ;D

2
General / Re: documentation example not working for me
« on: August 12, 2012, 07:49:14 am »
thanks! the font now works! is it the same with any other media type files such as images? because images don't seem to be working for me.... 

3
General / Re: documentation example not working for me
« on: August 12, 2012, 05:43:02 am »
yeah um i did I think i posted an image put that obviously did not show up.....
 code:
#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(300, 200), "SFML works!");
    // Create a graphical text to display
    sf::Font font;
    if (!font.loadFromFile("arial.ttf"))
        return EXIT_FAILURE;
    sf::Text text("Hello SFML", font, 50);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(text);
        window.display();
    }

    return EXIT_SUCCESS;
}

[attachment deleted by admin]

4
General / documentation example not working for me
« on: August 12, 2012, 05:05:28 am »
hello I was using the documentation example as a template just to see how to set things up and when I used the font part only and compiled and debugged it open into a white screen and then shut down automatically. I changed the font, made sure the font name was right and put the font in the exe folder but same results. I also tried to display my own image using the sprite but white screen and automatically exit out. What am I doing wrong?

thanks

Pages: [1]