Hey guys,
this is my first time I write in forum i have the problem: if i always want to draw something there comes the error: 1>main.cpp(21): error C2661: 'sf::RenderTarget::draw' : no overloaded function takes 0 arguments
i know im a newbie with programing
#include <iostream>
#include <SFML\Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(800, 600, 32), "JaR", sf::Style::Titlebar);
sf::Event mainEvent;
sf::Texture texture;
if (!texture.loadFromFile("nicogang.png"))
{ /*----*/ }
while (window.isOpen())
{
while (window.pollEvent(mainEvent))
{/*-----*/}
if (sf::Keyboard::isKeyPressed(sf::Keyboard::Escape))
{return 0;}
window.clear();
window.draw(texture);
window.display();
}
return 0;
}