Hi Guys,
How do you do?
I want to place "sf:RenderWindow App" as a Global variable.
I have Global.h and a Global.cpp.
In Global.h
#include <SFML/Graphics.hpp>
extern sf::RenderWindow App;
In Global.cpp:
#include "Global.h"
sf::RenderWindow App;
In Main.cpp:
App = new sf::RenderWindow(sf::VideoMode(640, 480, 32), "SFML Window");
Why cant I do this? If not how do I make RenderWindow global?
C:\_libraries\SFML\include\SFML/Window/Window.hpp(291) : error C2248: 'sf::NonCopyable::operator =' : cannot access private member declared in class 'sf::NonCopyable'
C:\_libraries\SFML\include\SFML/System/NonCopyable.hpp(65) : see declaration of 'sf::NonCopyable::operator ='
C:\_libraries\SFML\include\SFML/System/NonCopyable.hpp(42) : see declaration of 'sf::NonCopyable'
This diagnostic occurred in the compiler generated function 'sf::Window &sf::Window::operator =(const sf::Window &)'[/code]