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: Camera interface
18 #ifndef __M3G_CAMERA_H__
19 #define __M3G_CAMERA_H__
24 * \brief Camera interface
32 * \brief Camera node instance data
45 Vec4 frustumPlanes[6];
47 M3Gbool frustumPlanesValid;
48 M3Gbool zeroViewVolume;
51 /*----------------------------------------------------------------------
53 *--------------------------------------------------------------------*/
55 static void m3gInitCamera(Interface *m3g, Camera *camera);
56 static void m3gApplyProjection(const Camera *camera);
58 static const Vec4 *m3gFrustumPlanes(const Camera *camera);
59 static const Matrix *m3gProjectionMatrix(const Camera *camera);
61 M3G_INLINE static M3Gbool m3gValidProjection(const Camera *camera)
63 if (camera->zeroViewVolume) {
64 M3G_LOG1(M3G_LOG_WARNINGS,
65 "Warning: Invalid projection for camera 0x%08X\n",
73 #endif /*__M3G_CAMERA_H__*/