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

Pages: [1]
1
Graphics / Re: The question of texture
« on: July 01, 2016, 04:03:38 am »
Alright,when I put the code on the web,I wanted to delete some unused code for others to earlier understand,but the fact is that I didn't delete completely and I mean that even I change the slash there is also some bugs.My teacher says that the vs2013 is not compatible.Thank you all the same.(by the way it's the first time I ask a question on the internet,I feel very moved.) 

2
Graphics / Re: The question of texture
« on: June 30, 2016, 05:14:33 am »
Thanks for you answering but I find that my code can be tested successfully on the other's computer.It seems that  vs 2013 is not Compatible and I must download the 2015 version.

3
Graphics / The question of texture
« on: June 30, 2016, 03:52:53 am »
The environment and the "SFML Work" program is tested successfully,but when I use the LoadFromFile()  in the texture class,there's some bugs.The console starts to brush the code and the windows is all white.I'm a green man.What's wrong on earth?God helps me.
#include <SFML/Graphics.hpp>
//#include<SFML/Graphics/Texture.hpp>

int main()
{
        sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!" );
       
       
        sf::Texture t;
        t.loadFromFile("D:\VS\TEST\ConsoleApplication1\Debug\1.png");
       

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

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

        return 0;
}

Pages: [1]
anything