Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
alexr
committed
May 14, 2010
1 parent
2ed5770
commit 7d91452
Showing
107 changed files
with
5,152 additions
and
5,105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
#ifndef _CAMERA_FIXED_H | ||
#define _CAMERA_FIXED_H | ||
|
||
#include "camera.h" | ||
|
||
#ifndef _CAMERA_FIXED_H | ||
#define _CAMERA_FIXED_H | ||
|
||
#include "camera.h" | ||
|
||
class CAMERA_FIXED : public CAMERA | ||
{ | ||
public: | ||
{ | ||
public: | ||
CAMERA_FIXED(const std::string & name); | ||
|
||
virtual MATHVECTOR <float, 3> GetPosition() const | ||
{ | ||
return position; | ||
|
||
virtual MATHVECTOR <float, 3> GetPosition() const | ||
{ | ||
return position; | ||
} | ||
|
||
virtual QUATERNION <float> GetOrientation() const | ||
{ | ||
return orientation; | ||
} | ||
|
||
virtual QUATERNION <float> GetOrientation() const | ||
{ | ||
return orientation; | ||
} | ||
|
||
virtual void Reset(const MATHVECTOR <float, 3> & newpos, const QUATERNION <float> & newquat); | ||
|
||
virtual void Reset(const MATHVECTOR <float, 3> & newpos, const QUATERNION <float> & newquat); | ||
|
||
virtual void Update(const MATHVECTOR <float, 3> & newpos, const QUATERNION <float> & newquat, const MATHVECTOR <float, 3> & accel, float dt); | ||
|
||
void SetOffset(float x, float y, float z); | ||
virtual void Update(const MATHVECTOR <float, 3> & newpos, const QUATERNION <float> & newquat, const MATHVECTOR <float, 3> & accel, float dt); | ||
|
||
void SetOffset(float x, float y, float z); | ||
|
||
private: | ||
MATHVECTOR <float, 3> position; | ||
MATHVECTOR <float, 3> position; | ||
MATHVECTOR <float, 3> offset; | ||
QUATERNION <float> orientation; | ||
}; | ||
|
||
#endif // _CAMERA_FIXED_H | ||
}; | ||
|
||
#endif // _CAMERA_FIXED_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
#ifndef _CAMERA_FREE_H | ||
#define _CAMERA_FREE_H | ||
|
||
#include "camera.h" | ||
|
||
#ifndef _CAMERA_FREE_H | ||
#define _CAMERA_FREE_H | ||
|
||
#include "camera.h" | ||
|
||
class CAMERA_FREE : public CAMERA | ||
{ | ||
{ | ||
public: | ||
CAMERA_FREE(const std::string & name); | ||
|
||
virtual MATHVECTOR <float, 3> GetPosition() const; | ||
|
||
virtual QUATERNION <float> GetOrientation() const; | ||
|
||
virtual QUATERNION <float> GetOrientation() const; | ||
|
||
virtual void Reset(const MATHVECTOR <float, 3> & newpos, const QUATERNION <float> & newquat); | ||
|
||
virtual void Rotate(float up, float left); | ||
|
||
virtual void Move(float dx, float dy, float dz); | ||
virtual void Move(float dx, float dy, float dz); | ||
|
||
private: | ||
MATHVECTOR <float, 3> position; | ||
MATHVECTOR <float, 3> position; | ||
MATHVECTOR <float, 3> offset; | ||
float leftright_rotation; | ||
float updown_rotation; | ||
}; | ||
|
||
#endif // _CAMERA_FREE_H | ||
}; | ||
|
||
#endif // _CAMERA_FREE_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.