First public contribution.
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: IndexBuffer interface
18 #ifndef __M3G_INDEXBUFFER_H__
19 #define __M3G_INDEXBUFFER_H__
24 * \brief IndexBuffer interface
27 #include "m3g_object.h"
32 * \brief Index buffer structure
34 * Contrary to JSR-184, a single Index Buffer type is used to hold all
35 * the different primitive types.
37 struct M3GIndexBufferImpl
50 /*----------------------------------------------------------------------
52 *--------------------------------------------------------------------*/
54 static void m3gSendIndexBuffer(const IndexBuffer *buf);
55 static M3Gbool m3gGetIndices(const IndexBuffer *buf, M3Gint triangle, M3Gint *indices);
56 static M3Gint m3gGetMaxIndex(const IndexBuffer *buf);
58 #endif /*__M3G_INDEXBUFFER_H__*/