a error with cocos2dx
Posted: Thu Aug 28, 2014 7:16 am
when i set "Preprocessor Definitions" COCOS_2DX" and "MAGIC_3D",mp_wrap.ccp notice "DIST_CAMERA_3D" is not define in line 779.
i have to add "#define DIST_CAMERA_3D xxx" to mp_wrap.h,and it works
i have to add "#define DIST_CAMERA_3D xxx" to mp_wrap.h,and it works
- Code: Select all
#if (CC_TARGET_PLATFORM==CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM==CC_PLATFORM_ANDROID)
#define internalformat GL_RGBA
#define DIST_CAMERA_3D -2520 //(added)
#else
#define internalformat GL_RGBA8
#define DIST_CAMERA_3D -840 //(added)
#endif