-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathglQuaternion.h
36 lines (29 loc) · 1.04 KB
/
glQuaternion.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// glQuaternion.h: interface for the glQuaternion class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_GLQUATERNION_H__52FB84BB_6D1B_4314_833F_5A8737A35DAB__INCLUDED_)
#define AFX_GLQUATERNION_H__52FB84BB_6D1B_4314_833F_5A8737A35DAB__INCLUDED_
#include <windows.h> // Header File For Windows
#include <gl\gl.h> // Header File For The OpenGL32 Library
#include <gl\glu.h> // Header File For The GLu32 Library
#include <gl\glaux.h> // Header File For The Glaux Library
#include <math.h>
#define PI 3.14159265358979323846
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class glQuaternion
{
public:
glQuaternion operator *(glQuaternion q);
void CreateMatrix(GLfloat *pMatrix);
void CreateFromAxisAngle(GLfloat x, GLfloat y, GLfloat z, GLfloat degrees);
glQuaternion();
virtual ~glQuaternion();
private:
GLfloat m_w;
GLfloat m_z;
GLfloat m_y;
GLfloat m_x;
};
#endif // !defined(AFX_GLQUATERNION_H__52FB84BB_6D1B_4314_833F_5A8737A35DAB__INCLUDED_)