HaikuDepot: notify work status from main window
[haiku.git] / src / apps / haiku3d / MeshInstance.h
blob1ec06c24f0e4db271b49e9379717c107adbe317c
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 */
9 #ifndef _MESH_INSTANCE_H
10 #define _MESH_INSTANCE_H
12 #include "Mesh.h"
13 #include "Texture.h"
14 #include "Vector3.h"
15 #include "Quaternion.h"
18 class MeshInstance {
19 public:
20 MeshInstance(Mesh* mesh, Texture* texture,
21 const Vector3& position, const Quaternion& orientation,
22 float animOffset);
23 ~MeshInstance();
25 void Update(float dt);
26 void Render();
28 protected:
29 BReference<Mesh> fMeshReference;
30 BReference<Texture> fTextureReference;
32 Vector3 fPosition;
33 Quaternion fOrientation;
34 float fScale;
36 // TODO: manage the animation externally
37 float fTime;
38 float fAnimOffset;
40 bool fDoubleSided;
41 bool fDrawNormals;
44 #endif /* _MESH_INSTANCE_H */