mirror of
https://github.com/rwengine/openrw.git
synced 2024-10-05 08:37:20 +02:00
ba7eb63941
rwengine + Make renderWorld() take a ViewCamera parameter. + add rotation and getView to ViewCamera + correct directions for vehicle and character movement. rwgame + Remove GenericState + Add State::getCamera() to control the ViewCamera used for rendering + Clean up state camera control + Remove now unused view parameters from main
29 lines
508 B
C++
29 lines
508 B
C++
#ifndef DEBUGSTATE_HPP
|
|
#define DEBUGSTATE_HPP
|
|
|
|
#include "State.hpp"
|
|
|
|
class DebugState : public State
|
|
{
|
|
ViewCamera _debugCam;
|
|
glm::vec3 _movement;
|
|
glm::vec2 _debugLook;
|
|
bool _freeLook;
|
|
bool _sonicMode;
|
|
public:
|
|
DebugState(const glm::vec3& vp = {}, const glm::quat& vd = {});
|
|
|
|
virtual void enter();
|
|
virtual void exit();
|
|
|
|
virtual void tick(float dt);
|
|
|
|
virtual void handleEvent(const sf::Event& event);
|
|
|
|
void spawnVehicle(unsigned int id);
|
|
|
|
const ViewCamera& getCamera();
|
|
};
|
|
|
|
#endif // DEBUGSTATE_HPP
|