mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-21 05:02:28 +02:00
Quake 4 integrated with DoomRTX
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
#ifndef __FREEVIEW_H__
|
||||
#define __FREEVIEW_H__
|
||||
|
||||
class idPhysics_Player;
|
||||
|
||||
class idFreeView {
|
||||
public:
|
||||
|
||||
idFreeView() { physics = NULL; snapAngle = false; }
|
||||
|
||||
~idFreeView();
|
||||
|
||||
// start free flying from this client's current position
|
||||
void SetFreeView( int clientNum );
|
||||
|
||||
// pick a random spawn in the map
|
||||
void PickRandomSpawn( void );
|
||||
|
||||
// update view and position
|
||||
void Fly( const usercmd_t &ucmd );
|
||||
|
||||
void Draw( void );
|
||||
|
||||
bool Initialized( void ) const { return physics != NULL; }
|
||||
|
||||
void Shutdown( void );
|
||||
|
||||
const idVec3 & GetOrigin( void );
|
||||
|
||||
private:
|
||||
|
||||
void Setup( void );
|
||||
|
||||
renderView_t view;
|
||||
idPhysics_Player *physics;
|
||||
idAngles viewAngles;
|
||||
|
||||
bool snapAngle;
|
||||
idAngles viewAngleOffset;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user