mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 10:22:52 +01:00
21 lines
394 B
C++
21 lines
394 B
C++
#include "State.hpp"
|
|
#include "RWGame.hpp"
|
|
|
|
// This serves as the "initial" camera position.
|
|
ViewCamera defaultView({-250.f, -550.f, 75.f}, glm::angleAxis(glm::radians(5.f), glm::vec3(0.f, 1.f, 0.f)));
|
|
|
|
const ViewCamera& State::getCamera()
|
|
{
|
|
return defaultView;
|
|
}
|
|
|
|
GameWorld* State::getWorld()
|
|
{
|
|
return game->getWorld();
|
|
}
|
|
|
|
sf::RenderWindow& State::getWindow()
|
|
{
|
|
return game->getWindow();
|
|
}
|