mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-09 20:32:43 +01:00
649f7b144d
This entirely replaces all remaining SFML pieces with SDL2 and brings OpenRW up to OpenGL 3.3
21 lines
579 B
C++
21 lines
579 B
C++
#ifndef GAME_HPP
|
|
#define GAME_HPP
|
|
|
|
#include <objects/GameObject.hpp>
|
|
#include <engine/GameWorld.hpp>
|
|
|
|
constexpr double PiOver180 = 3.1415926535897932384626433832795028/180;
|
|
|
|
// TODO: Move all of this stuff so it's not just lying around.
|
|
|
|
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);
|
|
|
|
#define GAME_TIMESTEP (1.f/30.f)
|
|
#define GAME_WINDOW_WIDTH 800
|
|
#define GAME_WINDOW_HEIGHT 600
|
|
|
|
#endif // GAME_HPP
|
|
|