Fix compilation errors on Windows
This commit is contained in:
parent
9d8d4e665b
commit
9fff45b76e
|
@ -107,7 +107,7 @@ Scene::Scene(Viewer* viewer, const std::string& shaderFolderPath, const std::str
|
||||||
// Create the raycast lines
|
// Create the raycast lines
|
||||||
void Scene::createLines() {
|
void Scene::createLines() {
|
||||||
|
|
||||||
int nbRaysOneDimension = sqrt(NB_RAYS);
|
int nbRaysOneDimension = std::sqrt(float(NB_RAYS));
|
||||||
|
|
||||||
for (int i=0; i<nbRaysOneDimension; i++) {
|
for (int i=0; i<nbRaysOneDimension; i++) {
|
||||||
for (int j=0; j<nbRaysOneDimension; j++) {
|
for (int j=0; j<nbRaysOneDimension; j++) {
|
||||||
|
|
|
@ -27,6 +27,8 @@
|
||||||
#define SCENE_H
|
#define SCENE_H
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
#define _USE_MATH_DEFINES
|
||||||
|
#include <cmath>
|
||||||
#include "openglframework.h"
|
#include "openglframework.h"
|
||||||
#include "reactphysics3d.h"
|
#include "reactphysics3d.h"
|
||||||
#include "Sphere.h"
|
#include "Sphere.h"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user