mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 10:22:52 +01:00
649f7b144d
This entirely replaces all remaining SFML pieces with SDL2 and brings OpenRW up to OpenGL 3.3
43 lines
840 B
C++
43 lines
840 B
C++
#ifndef DEBUGSTATE_HPP
|
|
#define DEBUGSTATE_HPP
|
|
|
|
#include <SDL2/SDL_events.h>
|
|
#include "State.hpp"
|
|
|
|
class DebugState : public State
|
|
{
|
|
ViewCamera _debugCam;
|
|
glm::vec3 _movement;
|
|
glm::vec2 _debugLook;
|
|
bool _freeLook;
|
|
bool _sonicMode;
|
|
bool _invertedY;
|
|
|
|
Menu* createDebugMenu();
|
|
Menu* createMapMenu();
|
|
Menu* createVehicleMenu();
|
|
Menu* createAIMenu();
|
|
Menu* createWeaponMenu();
|
|
|
|
public:
|
|
DebugState(RWGame* game, const glm::vec3& vp = {}, const glm::quat& vd = {});
|
|
|
|
virtual void enter();
|
|
virtual void exit();
|
|
|
|
virtual void tick(float dt);
|
|
virtual void draw(GameRenderer* r);
|
|
|
|
virtual void handleEvent(const SDL_Event& event);
|
|
|
|
void printCameraDetails();
|
|
|
|
void spawnVehicle(unsigned int id);
|
|
void spawnFollower(unsigned int id);
|
|
void giveItem(InventoryItem* item);
|
|
|
|
const ViewCamera& getCamera();
|
|
};
|
|
|
|
#endif // DEBUGSTATE_HPP
|