-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathfbxviewer.h
45 lines (40 loc) · 1.64 KB
/
fbxviewer.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
37
38
39
40
41
42
43
44
45
#ifndef fbxviewer_h
#define fbxviewer_h
#include "fbxscene.h"
#include "loadfbx.h"
/*
* Debug rendering of loaded FBX data using fixed-pipeline glut
*/
#ifdef __APPLE__
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <GLUT/glut.h>
#else
#include <GL/gl.h>
#include <GL/glut.h>
#endif
class FbxViewer : public FbxScene {
public:
static void glVertex(const Vertex& v);
static void glVertex(const Vector4& v);
static void MatrixDraw(const Matrix& mat, float s);
static Vector3 PermuteVertex(const Vector3& v);
static void JointDraw(const Matrix& parentMat, const Matrix& mat,float s);
static void DrawPoint(const Vector3& c, float s);
static void DrawPoint(const Vector4& c, float s);
static void MeshDrawPoints(const FbxScene* scn, const Model* mdl, const Mesh*msh, const Matrix& mat);
static void MeshDrawWire(const FbxScene* scn, const Model* mdl, const Mesh*msh, const Matrix& mat);
static void MeshDrawRenderTriangles(const FbxScene* scn, const Model* mdl, const Mesh*msh, const Matrix& mat);
static void MeshDrawWeightMap(const FbxScene* scn, const Model* mdl, const Mesh*msh, const Matrix& mat);
static void ModelDrawMeshes(const FbxScene* scn, const Matrix& parentMat, const Model* mdl);
static void ModelDrawJoints(const FbxScene* scn, const Matrix& parentMat, const Model* mdl,int depth=0);
static void DrawCubePoints(float f);
static void SceneDraw(const FbxScene* scn,int take, float t);
static void Keyboard(unsigned char key, int, int);
static void Render();
static void Idle();
static int s_PermuteSrt;
static FbxScene* s_pFbxScene;
static Vector3 s_Axis;
};
#endif