mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 17:03:43 +02:00
define roundf for use on Win from ScriptEngine
This commit is contained in:
parent
060d8be9f4
commit
bd6c42a685
1 changed files with 8 additions and 2 deletions
|
@ -20,14 +20,20 @@
|
|||
|
||||
#include <AvatarData.h>
|
||||
|
||||
class ParticlesScriptingInterface;
|
||||
|
||||
#include "AbstractControllerScriptingInterface.h"
|
||||
#include "Quat.h"
|
||||
#include "Vec3.h"
|
||||
|
||||
class ParticlesScriptingInterface;
|
||||
|
||||
const QString NO_SCRIPT("");
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
inline double roundf(double value) {
|
||||
return (value > 0.0) ? floor(value + 0.5) : ceil(value - 0.5);
|
||||
}
|
||||
#endif
|
||||
|
||||
const unsigned int SCRIPT_DATA_CALLBACK_USECS = roundf((1.0 / 60.0) * 1000 * 1000);
|
||||
|
||||
class ScriptEngine : public QObject {
|
||||
|
|
Loading…
Reference in a new issue