• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

src/util/header/MeshData.h

Go to the documentation of this file.
00001 #pragma once
00002 #include "../../util/pch.h"
00003 
00005 struct Vertex
00006 {
00007         float4 position;
00008         float4 normal;
00009         float4 tangent;
00010         float4 bitangent;
00011         float4 color;
00012         float4 uv;
00013         float4 bones;
00014         float4 weights;
00015 };
00016 
00018 struct MeshData
00019 {
00021         MeshData();
00023         ~MeshData();
00025         void free(void);
00026 
00027         int vertexSize;
00028         int vertexCount;
00029         int indexCount;
00030         Vertex* vertices;
00031         ushort* indices;
00032 };
00033 
00034 typedef MeshData* pMeshData;
00035 
00037 bool loadMeshData(wchar* filename, MeshData& out);

Generated on Fri Jun 18 2010 17:48:40 for Cannonball by  doxygen 1.7.0