Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<SFML\Graphics.hpp>
- #include "sectioned_skewable.h"
- int main()
- {
- sf::RenderWindow window(sf::VideoMode(640, 480), "SFML works!");
- sf::Texture* quadtexture = new sf::Texture;
- quadtexture->loadFromFile("image.gif");
- SectionedSkewable testquad(500,500,2);
- testquad.setTexture(quadtexture,true);
- while (window.isOpen())
- {
- sf::Event event;
- while (window.pollEvent(event))
- {
- if (event.type == sf::Event::Closed)
- window.close();
- }
- window.clear(sf::Color::Magenta);
- window.draw(testquad);
- window.display();
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement