⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 glprof.h

📁 6410BSP3
💻 H
字号:
//// Copyright (c) Samsung Electronics. Co. LTD.  All rights reserved.///*++THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OFANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TOTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR APARTICULAR PURPOSE.*//****************************************************************************//*!** \file        glProf.h* \brief    Interface for the glprof profiler**//*---------------------------------------------------------------------------* NOTES:**/#ifndef __GLPROF_H__#define __GLPROF_H__enum { GLPROF_GL = 1, GLPROF_GPU = 2};enum GLProfStart {GLPROF_NOW, GLPROF_ON_BUFFER_SWAP};struct glprof_glstats {    float fps;              //frames per second    float primsPerSec;      //primitives per second    float drawCallsPerSec;  //draw calls per second - not really interesting                             //  for most demos    float timeinterval;     //time interval over which these stats have been                            // gathered in secs. User can use this to get                             // total number of frames / prims etc.                            // eg. total frames = fps*timeinterval;};bool glprofInit(unsigned int profFlags);bool glprofDeinit();bool glprofReset();void glprofStart(GLProfStart start = GLPROF_ON_BUFFER_SWAP);void glprofStop();//glprofStop must be called before the following functionsvoid glprofPrintReport();glprof_glstats glprofGetGlStats();//internally used functionsvoid glprofBufferSwap();void glprofPrimitives(unsigned int glprimType, unsigned int n);#endif //__GLPROF_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -