mesh.h

来自「wince 3d tutorial, it has various exampl」· C头文件 代码 · 共 62 行

H
62
字号
#ifndef MESH_H
#define MESH_H
#include <windows.h> 
#include <GLES/gl.h>
#include "fixed.h"

//Structure to hold the optimized mesh data for rendering
struct FixedMesh
{
  GLshort indexCounter;
  GLshort vertexCounter;  
  GLshort *Indices;
  GLfixed *Geometry;
  GLfixed *Normals;
  GLfixed *TexCoord;  
};

//Structure to hold the data readed from the file
struct GenericObjectData
{
  char Name[128];
  char ParentName[128];
  unsigned int *Indices;
  float *Geometry;
  float *Normals;
  float *TexCoord;
  unsigned long iC;
  unsigned long vC;  
};

//GSD file header 
struct GSDHeader
{
  char id[32];
  char version[16];
  int numberOfSubObjects;
};
 
class Mesh
{
public:
  Mesh(const char *filename);
  ~Mesh();
  void Draw();
  bool GetState () {return m_state;};

private:
 FixedMesh m_mesh;
 bool m_state;

};
#endif









⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?