Update contrib.
2 * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Mesh interface
18 #ifndef __M3G_MESH_H__
19 #define __M3G_MESH_H__
24 * \brief Mesh interface
29 #include "m3g_appearance.h"
30 #include "m3g_indexbuffer.h"
31 #include "m3g_vertexbuffer.h"
37 VertexBuffer *vertexBuffer;
38 Appearance **appearances;
39 IndexBuffer **indexBuffers;
43 M3Gushort trianglePatchCount;
44 M3Gushort totalAlphaFactor;
47 /*----------------------------------------------------------------------
49 *--------------------------------------------------------------------*/
51 static void m3gDestroyMesh(Object *obj);
53 static M3Gint m3gMeshApplyAnimation(Object *self, M3Gint time);
54 static M3Gbool m3gInitMesh(Interface *m3g,
56 M3GVertexBuffer hVertices,
57 M3GIndexBuffer *hTriangles,
58 M3GAppearance *hAppearances,
59 M3Gint trianglePatchCount,
61 static M3Gint m3gMeshDoGetReferences(Object *self, Object **references);
62 static Object *m3gMeshFindID(Object *self, M3Gint userID);
63 static M3Gbool m3gMeshDuplicate(const Object *original, Object **clone, Object **pairs, M3Gint *numPairs);
64 static M3Gbool m3gMeshValidate(Node *self, M3Gbitmask stateBits, M3Gint scope);
66 static M3Gbool m3gMeshRayIntersectInternal( Mesh *mesh,
67 VertexBuffer *vertices,
74 static M3Gint m3gMeshRenderingCost(const Mesh *mesh);
77 static M3Gbool m3gQueueMesh(Mesh *mesh, const Matrix *toCamera,
78 RenderQueue *renderQueue);
81 #endif /*__M3G_MESH_H__*/