Fix compilation errors on Windows

This commit is contained in:
Daniel Chappuis 2015-03-03 21:43:42 +01:00
parent 9d8d4e665b
commit 9fff45b76e
2 changed files with 3 additions and 1 deletions

View File

@ -107,7 +107,7 @@ Scene::Scene(Viewer* viewer, const std::string& shaderFolderPath, const std::str
// Create the raycast lines
void Scene::createLines() {
int nbRaysOneDimension = sqrt(NB_RAYS);
int nbRaysOneDimension = std::sqrt(float(NB_RAYS));
for (int i=0; i<nbRaysOneDimension; i++) {
for (int j=0; j<nbRaysOneDimension; j++) {

View File

@ -27,6 +27,8 @@
#define SCENE_H
// Libraries
#define _USE_MATH_DEFINES
#include <cmath>
#include "openglframework.h"
#include "reactphysics3d.h"
#include "Sphere.h"