I got SFML Working and I loaded a sprite into it and it stretches with my window, i'm not sure why, the tutorial section didnt really say anything about it. I tried a few things on there that might have worked but still nothing.
Also in the console i get this message:
"OpenGL extension SGIS_texture_edge_clamp unavailable
Artifacts may occur along texture edges
Ensure that hardware acceleration is enabled if available"
Im not sure if that has anything to do with it or not, but the last time i used SFML i never got that message in console so maybe it does but I don't know what it means, or what the program needs.
#include <SFML/Graphics.hpp>
#include <iostream>
int main()
{
sf::RenderWindow window(sf::VideoMode(800, 600), "SFML works!");
sf::Texture RedSquareTexture;
if(!RedSquareTexture.loadFromFile("Red_Square.png")) //32x32 red square
{
std::cout << "Error" << std::endl;
}
sf::Sprite RedSquareSprite;
RedSquareSprite.setTexture(RedSquareTexture);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear(sf::Color::White);
window.draw(RedSquareSprite);
window.display();
}
return 0;
}