1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-10-05 00:27:30 +02:00
openrw/rwgame/game.hpp

21 lines
579 B
C++
Raw Normal View History

2014-05-26 06:34:49 +02:00
#ifndef GAME_HPP
#define GAME_HPP
2015-04-27 03:09:56 +02:00
#include <objects/GameObject.hpp>
2014-05-26 06:34:49 +02:00
#include <engine/GameWorld.hpp>
constexpr double PiOver180 = 3.1415926535897932384626433832795028/180;
// TODO: Move all of this stuff so it's not just lying around.
2014-05-26 06:34:49 +02:00
bool hitWorldRay(glm::vec3& hit, glm::vec3& normal, GameObject** object = nullptr);
bool hitWorldRay(const glm::vec3& start, const glm::vec3& direction,
glm::vec3& hit, glm::vec3& normal, GameObject** object = nullptr);
2014-05-26 06:34:49 +02:00
2014-12-16 04:30:51 +01:00
#define GAME_TIMESTEP (1.f/30.f)
#define GAME_WINDOW_WIDTH 800
#define GAME_WINDOW_HEIGHT 600
2014-05-26 06:34:49 +02:00
#endif // GAME_HPP