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: VertexArray interface
18 #ifndef __M3G_VERTEXARRAY_H__
19 #define __M3G_VERTEXARRAY_H__
24 * \brief VertexArray interface
27 #include "m3g_object.h"
32 * \brief \c VertexArray object instance
34 struct M3GVertexArrayImpl
47 M3Gshort rangeMin, rangeMax;
51 * \brief Cached color array(s?) with premultiplied alpha
53 M3GMemObject cachedColors;
57 * \brief Alpha factor for currently stored scaled colors
59 * anything below zero is considered a dirty value
61 M3Gint cachedAlphaFactor;
65 /* If this assert fails, check the compiler padding settings */
66 M3G_CT_ASSERT(sizeof(VertexArray) == sizeof(Object) + 44);
68 /*----------------------------------------------------------------------
70 *--------------------------------------------------------------------*/
72 static void m3gLockColorArray (const VertexArray *array, M3Gint alphaFactor);
73 static void m3gLockNormalArray (const VertexArray *array);
74 static void m3gLockTexCoordArray(const VertexArray *array);
75 static void m3gLockVertexArray (const VertexArray *array);
76 static void m3gUnlockArray (const VertexArray *array);
78 static M3Gbool m3gCreateAlphaColorCache(VertexArray *array);
80 static VertexArray *m3gCloneVertexArray(const VertexArray *array);
81 static M3Gint m3gGetArrayVertexCount (const VertexArray *array);
82 static M3Gbool m3gIsCompatible (const VertexArray *array, const VertexArray *other);
83 static M3Gint m3gGetArrayTimestamp(const VertexArray *array);
84 static void m3gGetArrayBoundingBox(const VertexArray *array, M3Gshort *boundingBox);
85 static M3Gbool m3gGetCoordinates(VertexArray *va,
90 static void m3gGetArrayValueRange(const VertexArray *array,
91 M3Gint *minValue, M3Gint *maxValue);
93 #endif /*__M3G_VERTEXARRAY_H__*/