vrfileman

diff src/user.h @ 2:282da6123fd4

lalalala
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 01 Feb 2015 12:51:10 +0200
parents
children 2cbf85690e03
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/user.h	Sun Feb 01 12:51:10 2015 +0200
     1.3 @@ -0,0 +1,22 @@
     1.4 +#ifndef USER_H_
     1.5 +#define USER_H_
     1.6 +
     1.7 +#include <vmath/vmath.h>
     1.8 +
     1.9 +struct PosRot {
    1.10 +	Vector3 pos;
    1.11 +	Quaternion rot;
    1.12 +
    1.13 +	void move(float dfwd, float dright, float dup);
    1.14 +	void rotate(float dhoriz, float dvert);
    1.15 +
    1.16 +	void calc_matrix(Matrix4x4 *res) const;
    1.17 +	void calc_inv_matrix(Matrix4x4 *res) const;
    1.18 +};
    1.19 +
    1.20 +class User {
    1.21 +public:
    1.22 +	PosRot posrot;
    1.23 +};
    1.24 +
    1.25 +#endif	// USER_H_