The window is initialized in the constructor,
Application.cpp
Application::Application():
mWindow(sf::VideoMode(1920,1080),"Game Name",sf::Style::Close)
I can normally draw things into the window in application, but i cant access the window from a pointer. I am fairly new to C++, and was wondering if this was a decent way of handling the drawing of objects? Also, my debuggers information:
Starting debugger: C:\Program Files (x86)\CodeBlocks\MINGW\bin\gdb.exe -nx -fullname -quiet -args C:/C__~1/Code/1QUEST~1/bin/Debug/Game.exe
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.5
Child process PID: 4188
Program received signal SIGSEGV, Segmentation fault.
In sf::RenderTarget::draw(sf::Vertex const*, unsigned int, sf::PrimitiveType, sf::RenderStates const&) () (C:\C__~1\Code\1QUEST~1\sfml-graphics-2.dll)
Debugger finished with status 0