#include <SFML/Graphics.hpp>
#include "display.h"
sf::RenderWindow App(sf::VideoMode(800, 600), "SFML OpenGL");
void mainLoop()
{
...my code...
Defining my RenderWindow outside my functions as above is causing me a problem - only my 2D SFML drawing is working (fonts, images). My OpenGL stuff doesn't show up. I'm wanting to be able to refer to App from numerous different functions.
Am I doing something wrong?
Thanks.