glprof.h

来自「6410BSP3」· C头文件 代码 · 共 52 行

H
52
字号
//// 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 + =
减小字号Ctrl + -
显示快捷键?