Correctly intializing farPlane variable in Level.
This commit is contained in:
parent
67b44042bd
commit
4ba056c6d9
@ -22,7 +22,7 @@ void Application::init()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Application::initLevel() {
|
void Application::initLevel() {
|
||||||
this->level = Level(levelXmlPath);
|
this->level = Level(levelXmlPath, farPlane);
|
||||||
level.getPhysics()->init(geometryPath);
|
level.getPhysics()->init(geometryPath);
|
||||||
// Don't change this!
|
// Don't change this!
|
||||||
ignoredMouseUpdates = 0;
|
ignoredMouseUpdates = 0;
|
||||||
|
@ -2,11 +2,12 @@
|
|||||||
#include "loader.hh"
|
#include "loader.hh"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
Level::Level(std::string xmlFilePath) {
|
Level::Level(std::string xmlFilePath, float farPlane) {
|
||||||
// default value
|
// default value
|
||||||
skydomeSize = 50.0f;
|
skydomeSize = 50.0f;
|
||||||
physics = Physics();
|
physics = Physics();
|
||||||
this->xmlFilePath = xmlFilePath;
|
this->xmlFilePath = xmlFilePath;
|
||||||
|
this->farPlane = farPlane;
|
||||||
}
|
}
|
||||||
|
|
||||||
Level::Level() {
|
Level::Level() {
|
||||||
|
@ -26,7 +26,7 @@ class Graphics;
|
|||||||
|
|
||||||
class Level {
|
class Level {
|
||||||
public:
|
public:
|
||||||
Level(std::string xmlFilePath);
|
Level(std::string xmlFilePath, float farPlane);
|
||||||
Level();
|
Level();
|
||||||
~Level();
|
~Level();
|
||||||
void load();
|
void load();
|
||||||
|
Loading…
Reference in New Issue
Block a user