?? glprof.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 + -