1 /* 2 * Copyright 2009, Haiku Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Alexandre Deckner <alex@zappotek.com> 7 */ 8 #ifndef _STATICMESH_H 9 #define _STATICMESH_H 10 11 #include "Mesh.h" 12 #include "Vector3.h" 13 14 15 class StaticMesh : public Mesh { 16 public: 17 StaticMesh(const char* fileName); 18 virtual ~StaticMesh(); 19 20 virtual Face& GetFace(uint32 index) const; 21 virtual uint32 FaceCount() const; 22 23 protected: 24 void _ReadText(const char* fileName); 25 void _WriteBinary(const char* fileName); 26 void _ReadBinary(const char* fileName); 27 void _ReadResource(const char* resourceName); 28 29 Face* fFaces; 30 uint32 fFaceCount; 31 }; 32 33 #endif /* _STATICMESH_H */ 34