1
C / Thanks Laurent!
« on: September 08, 2011, 10:52:47 pm »
You are kind of awesome.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
[ 51%] Building CXX object src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/RenderWindow.cpp.o
/home/maskedpixl/Development/cpp/lib/sfml/branches/csfml2/src/SFML/Graphics/RenderWindow.cpp: In function ‘sfWindowHandle sfRenderWindow_GetSystemHandle(const sfRenderWindow*)’:
/home/maskedpixl/Development/cpp/lib/sfml/branches/csfml2/src/SFML/Graphics/RenderWindow.cpp:345:5: warning: converting to non-pointer type ‘sfWindowHandle’ from NULL
/home/maskedpixl/Development/cpp/lib/sfml/branches/csfml2/src/SFML/Graphics/RenderWindow.cpp: In function ‘sfImage* sfRenderWindow_Capture(const sfRenderWindow*)’:
/home/maskedpixl/Development/cpp/lib/sfml/branches/csfml2/src/SFML/Graphics/RenderWindow.cpp:480:5: error: return-statement with no value, in function returning ‘sfImage*’
make[2]: *** [src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/RenderWindow.cpp.o] Error 1
make[1]: *** [src/SFML/Graphics/CMakeFiles/csfml-graphics.dir/all] Error 2
make: *** [all] Error 2
public virtual void init()
{
// global game objects.
MP._engine = this;
MP.renderTarget = new RenderWindow(new VideoMode(MP.width, MP.height, MP.bpp), MP.windowName);
MP.renderTarget.Closed += new EventHandler(onClosed);
MP._world = new World();
}
private void onClosed(object sender, EventArgs e)
{
MP._exit = true;
}
public int gameLoop()
{
while (!MP._exit)
{
MP.renderTarget.DispatchEvents();
MP.renderTarget.Clear();
// Switch worlds if needed.
if (MP._goto != null)
{
MP._world.end();
MP._world = MP._goto;
MP._goto = null;
MP._world.start();
}
MP._world.preUpdate();
MP._world.Update();
MP._world.postUpdate();
MP._world.render();
}
MP.renderTarget.Close();
return 0;
}