⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mesh.h

📁 wince 3d tutorial, it has various examples
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -