1 | #ifndef _FROG_PRIMITIVE_H__
|
---|
2 | #define _FROG_PRIMITIVE_H__
|
---|
3 |
|
---|
4 | #ifdef linux
|
---|
5 | #include <GL/gl.h>
|
---|
6 | #include <GL/glu.h>
|
---|
7 | #elif macos
|
---|
8 | #include <OpenGL/gl.h>
|
---|
9 | #include <OpenGL/glu.h>
|
---|
10 | #include <GLUT/glut.h>
|
---|
11 | #else
|
---|
12 | #include <windows.h>
|
---|
13 | #include <gl/gl.h>
|
---|
14 | #include <gl/glu.h>
|
---|
15 | #endif
|
---|
16 | #include <stdio.h>
|
---|
17 | #include <math.h>
|
---|
18 |
|
---|
19 |
|
---|
20 | void SetNormal(float C1X, float C1Y, float C1Z,
|
---|
21 | float C2X, float C2Y, float C2Z,
|
---|
22 | float C3X, float C3Y, float C3Z);
|
---|
23 |
|
---|
24 | void DrawNormal(float C1X, float C1Y, float C1Z,
|
---|
25 | float C2X, float C2Y, float C2Z,
|
---|
26 | float C3X, float C3Y, float C3Z);
|
---|
27 |
|
---|
28 |
|
---|
29 |
|
---|
30 | void DrawCube(float C1X, float C1Y, float C1Z,
|
---|
31 | float C2X, float C2Y, float C2Z,
|
---|
32 | float C3X, float C3Y, float C3Z,
|
---|
33 | float C4X, float C4Y, float C4Z,
|
---|
34 | float C5X, float C5Y, float C5Z,
|
---|
35 | float C6X, float C6Y, float C6Z,
|
---|
36 | float C7X, float C7Y, float C7Z,
|
---|
37 | float C8X, float C8Y, float C8Z);
|
---|
38 |
|
---|
39 | #endif
|
---|
40 |
|
---|