1
General / Re: Drawing 100 items per frame cuts FPS by 400?
« on: December 18, 2012, 02:07:28 pm »
He's talking about "delete pwindow;" at the end of main() even though the window wasn't allocated with new.
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.
The settings shown here will result in your application being linked to the dynamic version of SFML, the one that needs the DLL files. If you want to get rid of these DLLs and have SFML directly integrated to your executable, you must link to the static version. Static SFML libraries have the "-s" suffix: "sfml-xxx-s-d.lib" for Debug, and "sfml-xxx-s.lib" for Release. In this case, you'll also need to define the SFML_STATIC macro in the preprocessor options of your project.Tutorial - Getting started - SFML and Visual C++
/////////////////////////////////////
#ifndef GLOBALS_H
#define GLOBALS_H
/////////////////////////////////////
#include "log.h"
#include "camera.h"
#include "window.h"
namespace Global{
cLog log;
cCam camera;
cWindow window;
};
#endif
I don't belive any of the other downloads contains the CMake-files, so you should try the newest snapshot.QuoteCMake Error: The source directory "C:/Users/Travis/Desktop/SFML-2.0-rc" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
-_- Me and CMake never ever get along it seems.
Yep, for me too. Thanks for posting.http://en.sfml-dev.org/forums/index.php?topic=9561.0
Much appreciated, thanks. Updated to 12.11 Beta and everything works as intended.