vfs: check userland buffers before reading them.
[haiku.git] / src / apps / haiku3d / mesh / StaticMesh.h
blob95c6b282c9a7d99c964da84aeecd9fd5a239496b
1 /*
2 * Copyright 2009, Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Alexandre Deckner <alex@zappotek.com>
7 */
8 #ifndef _STATICMESH_H
9 #define _STATICMESH_H
11 #include "Mesh.h"
12 #include "Vector3.h"
15 class StaticMesh : public Mesh {
16 public:
17 StaticMesh(const char* fileName);
18 virtual ~StaticMesh();
20 virtual Face& GetFace(uint32 index) const;
21 virtual uint32 FaceCount() const;
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);
29 Face* fFaces;
30 uint32 fFaceCount;
33 #endif /* _STATICMESH_H */