mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 01:45:35 -05:00
fix g_uNumberOfDraws
This commit is contained in:
parent
11f2208767
commit
ba40d39a2d
5 changed files with 6 additions and 1 deletions
|
@ -245,7 +245,7 @@ It should work same as apples CFSwapInt32LittleToHost(..)
|
||||||
Increments the GL Draws counts by one.
|
Increments the GL Draws counts by one.
|
||||||
The number of calls per frame are displayed on the screen when the CCDirector's stats are enabled.
|
The number of calls per frame are displayed on the screen when the CCDirector's stats are enabled.
|
||||||
*/
|
*/
|
||||||
extern unsigned int __declspec(dllimport) g_uNumberOfDraws;
|
extern unsigned int ACTUAL_CC_DLL g_uNumberOfDraws;
|
||||||
#define CC_INCREMENT_GL_DRAWS(__n__) g_uNumberOfDraws += __n__
|
#define CC_INCREMENT_GL_DRAWS(__n__) g_uNumberOfDraws += __n__
|
||||||
|
|
||||||
/*******************/
|
/*******************/
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#else
|
#else
|
||||||
#define CC_DLL
|
#define CC_DLL
|
||||||
#endif
|
#endif
|
||||||
|
#define ACTUAL_CC_DLL CC_DLL
|
||||||
|
|
||||||
#define CC_NO_MESSAGE_PSEUDOASSERT(cond) \
|
#define CC_NO_MESSAGE_PSEUDOASSERT(cond) \
|
||||||
if (!(cond)) { \
|
if (!(cond)) { \
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#else
|
#else
|
||||||
#define CC_DLL
|
#define CC_DLL
|
||||||
#endif
|
#endif
|
||||||
|
#define ACTUAL_CC_DLL CC_DLL
|
||||||
|
|
||||||
#define CC_ASSERT(cond) assert(cond)
|
#define CC_ASSERT(cond) assert(cond)
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#else
|
#else
|
||||||
#define CC_DLL
|
#define CC_DLL
|
||||||
#endif
|
#endif
|
||||||
|
#define ACTUAL_CC_DLL CC_DLL
|
||||||
|
|
||||||
|
|
||||||
#if CC_DISABLE_ASSERT > 0
|
#if CC_DISABLE_ASSERT > 0
|
||||||
|
|
|
@ -9,8 +9,10 @@
|
||||||
|
|
||||||
#if defined(_USRDLL)
|
#if defined(_USRDLL)
|
||||||
#define CC_DLL
|
#define CC_DLL
|
||||||
|
#define ACTUAL_CC_DLL
|
||||||
#else // use a DLL library
|
#else // use a DLL library
|
||||||
#define CC_DLL
|
#define CC_DLL
|
||||||
|
#define ACTUAL_CC_DLL __declspec(dllimport)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
Loading…
Reference in a new issue