1 /* 2 * Copyright (C) 1997-2005, R3vis Corporation. 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Library General Public 6 * License as published by the Free Software Foundation; either 7 * version 2 of the License, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Library General Public License for more details. 13 * 14 * You should have received a copy of the GNU Library General Public 15 * License along with this library; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 17 * USA, or visit http://www.gnu.org/copyleft/lgpl.html. 18 * 19 * Original Contributor: 20 * Wes Bethel, R3vis Corporation, Marin County, California 21 * Additional Contributor(s): 22 * 23 * The OpenRM project is located at http://openrm.sourceforge.net/. 24 */ 25 /* 26 * $Id: rmstats.h,v 1.6 2005/02/19 16:22:50 wes Exp $ 27 * Version: $Name: OpenRM-1-6-0-2-RC2 $ 28 * $Revision: 1.6 $ 29 * $Log: rmstats.h,v $ 30 * Revision 1.6 2005/02/19 16:22:50 wes 31 * Distro sync and consolidation. 32 * 33 * Revision 1.5 2005/01/23 17:00:22 wes 34 * Copyright updated to 2005. 35 * 36 * Revision 1.4 2004/01/16 16:48:35 wes 37 * Updated copyright line for 2004. 38 * 39 * Revision 1.3 2003/11/05 15:31:54 wes 40 * Updated to use new RMtime object introduced in 1.5.1. 41 * 42 * Revision 1.2 2003/02/02 02:07:16 wes 43 * Updated copyright to 2003. 44 * 45 * Revision 1.1.1.1 2003/01/28 02:15:23 wes 46 * Manual rebuild of rm150 repository. 47 * 48 * Revision 1.3 2003/01/16 22:21:17 wes 49 * Updated all source files to reflect new organization of header files: 50 * all header files formerly located in include/rmaux, include/rmi, include/rmv 51 * are now located in include/rm. 52 * 53 * Revision 1.2 2002/04/30 19:33:49 wes 54 * Updated copyright dates. 55 * 56 * Revision 1.1 2001/03/31 17:12:11 wes 57 * v1.4.0-alpha-2 checkin. 58 * 59 */ 60 61 #ifndef __rmstats_h 62 #define __rmstats_h 63 64 #include <rm/rm.h> 65 66 #ifdef RM_X 67 #include <sys/types.h> 68 #include <sys/time.h> 69 #endif 70 71 #ifdef RM_WIN 72 #include <sys/types.h> 73 #include <sys/timeb.h> 74 /* see _ftime() */ 75 #endif 76 77 typedef struct RMstats 78 { 79 RMtime textureDownloadTime[2], renderStageTime[2], viewStageTime[2]; 80 81 int nNodes, nPrims; 82 int nTriangles, nQuads, nVectors, nPoints; 83 int nTextures, nPixelBytes; 84 } RMstats; 85 86 #ifdef __cplusplus 87 extern "C" { 88 #endif 89 90 RMenum rmRenderStatsBegin (void); /* tmp */ 91 RMenum rmRenderStatsEnd (void); /* tmp */ 92 RMenum rmPrintRenderStats (void); /* tmp */ 93 94 95 #ifdef __cplusplus 96 } 97 #endif 98 99 #endif 100 /* EOF */ 101