/* <copyright>
This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
</copyright> */
g_renderStats = {};
g_renderStats.numDrawCalls = new stat("rendering", "numDrawCalls", 0, null, false);
g_renderStats.numTriangles = new stat("rendering", "numTriangles", 0, null, false);
g_renderStats.numVerts = new stat("rendering", "numVerts", 0, null, false);
g_renderStats.numPasses = new stat("rendering", "numPasses", 0, null, false);
g_renderStats.reset = function() {
g_renderStats.numTriangles.value = 0;
g_renderStats.numDrawCalls.value = 0;
g_renderStats.numVerts.value = 0;
g_renderStats.numPasses.value = 0;
};
rdgeConstants = {};
/*
* clear flags
*/
rdgeConstants.colorBuffer = 0x00004000;
rdgeConstants.depthBuffer = 0x00000100;
rdgeConstants.stencilBuffer = 0x00000400;
/*
* buffer types
*/
rdgeConstants.BUFFER_STATIC = 0;
rdgeConstants.BUFFER_DYNAMIC = 1;
rdgeConstants.BUFFER_STREAM = 2;
/*
* primitive types
*/
rdgeConstants.POINTS = 0;
rdgeConstants.LINES = 1;
rdgeConstants.LINE_LOOP = 2;
rdgeConstants.LINE_STRIP = 3;
rdgeConstants.TRIANGLES = 4;
rdgeConstants.TRIANGLE_STRIP = 5;
rdgeConstants.TRIANGLE_FAN = 6;
/*
|