repository_infos: Enable automatic updates on the main Haiku repostiory.
[haiku.git] / src / apps / haiku3d / Mesh.h
blob80c895c91a7671bf3a8902743697449799b867e7
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 _MESH_H
9 #define _MESH_H
11 #include <Referenceable.h>
12 #include <SupportDefs.h>
14 #include "Vector3.h"
17 struct Vertex {
18 Vector3 p;
19 float u;
20 float v;
24 struct Face {
25 Vertex v[4];
26 uint16 vertexCount;
30 class Mesh : public BReferenceable {
31 public:
32 virtual ~Mesh();
34 virtual Face& GetFace(uint32 index) const = 0;
35 virtual uint32 FaceCount() const = 0;
39 #endif /* _MESH_H */