本文整理汇总了C++中IwTrace函数的典型用法代码示例。如果您正苦于以下问题:C++ IwTrace函数的具体用法?C++ IwTrace怎么用?C++ IwTrace使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了IwTrace函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: IwTrace
void CAccelerometer::Init()
{
IwTrace(WM_MODULE_ACCEL,("Accelerometer: Init"));
m_Status = WM_STATUS_ACC_OFF;
}
开发者ID:marmalade,项目名称:Web-Marmalade,代码行数:5,代码来源:Accelerometer.cpp
示例2: s3eGPGSubmitLeaderboardScore_wrap
static void s3eGPGSubmitLeaderboardScore_wrap(const char* leaderboardID, int score)
{
IwTrace(GOOGLEPLAYGAMES_VERBOSE, ("calling s3eGooglePlayGames func on main thread: s3eGPGSubmitLeaderboardScore"));
s3eEdkThreadRunOnOS((s3eEdkThreadFunc)s3eGPGSubmitLeaderboardScore, 2, leaderboardID, score);
}
开发者ID:dblstallion,项目名称:s3eGooglePlayGames,代码行数:5,代码来源:s3eGooglePlayGames_register.cpp
示例3: s3eGPGShowAllLeaderBoardsUI_wrap
static void s3eGPGShowAllLeaderBoardsUI_wrap()
{
IwTrace(GOOGLEPLAYGAMES_VERBOSE, ("calling s3eGooglePlayGames func on main thread: s3eGPGShowAllLeaderBoardsUI"));
s3eEdkThreadRunOnOS((s3eEdkThreadFunc)s3eGPGShowAllLeaderBoardsUI, 0);
}
开发者ID:dblstallion,项目名称:s3eGooglePlayGames,代码行数:5,代码来源:s3eGooglePlayGames_register.cpp
示例4: s3eGPGInitialize_wrap
static s3eResult s3eGPGInitialize_wrap()
{
IwTrace(GOOGLEPLAYGAMES_VERBOSE, ("calling s3eGooglePlayGames func on main thread: s3eGPGInitialize"));
return (s3eResult)(intptr_t)s3eEdkThreadRunOnOS((s3eEdkThreadFunc)s3eGPGInitialize, 0);
}
开发者ID:dblstallion,项目名称:s3eGooglePlayGames,代码行数:5,代码来源:s3eGooglePlayGames_register.cpp
示例5: s3eGPGUnRegisterCallback_wrap
static void s3eGPGUnRegisterCallback_wrap(s3eGPGCallbackType callbackID, s3eCallback callbackFn)
{
IwTrace(GOOGLEPLAYGAMES_VERBOSE, ("calling s3eGooglePlayGames func on main thread: s3eGPGUnRegisterCallback"));
s3eEdkThreadRunOnOS((s3eEdkThreadFunc)s3eGPGUnRegisterCallback, 2, callbackID, callbackFn);
}
开发者ID:dblstallion,项目名称:s3eGooglePlayGames,代码行数:5,代码来源:s3eGooglePlayGames_register.cpp
示例6: OuyaPlugin_asyncOuyaRequestPurchase_wrap
static void OuyaPlugin_asyncOuyaRequestPurchase_wrap(const char* purchasable, s3eCallback onSuccess, s3eCallback onFailure, s3eCallback onCancel)
{
IwTrace(ODK_VERBOSE, ("calling ODK func on main thread: OuyaPlugin_asyncOuyaRequestPurchase"));
s3eEdkThreadRunOnOS((s3eEdkThreadFunc)OuyaPlugin_asyncOuyaRequestPurchase, 4, purchasable, onSuccess, onFailure, onCancel);
}
开发者ID:ImmortalGameStudio,项目名称:ouya-sdk-examples,代码行数:5,代码来源:ODK_register.cpp
示例7: OuyaPlugin_JSONObject_Construct_wrap
static int OuyaPlugin_JSONObject_Construct_wrap()
{
IwTrace(ODK_VERBOSE, ("calling ODK func on main thread: OuyaPlugin_JSONObject_Construct"));
return (int)(intptr_t)s3eEdkThreadRunOnOS((s3eEdkThreadFunc)OuyaPlugin_JSONObject_Construct, 0);
}
开发者ID:ImmortalGameStudio,项目名称:ouya-sdk-examples,代码行数:5,代码来源:ODK_register.cpp
示例8: AdFound
void AdFound(void* data) { IwTrace(Presage, ("PRESAGE AD FOUND")); }
开发者ID:CalvinHou,项目名称:sdk-integrations,代码行数:1,代码来源:s3eHelloPresage.cpp
示例9: AdNotFound
void AdNotFound(void* data) { IwTrace(Presage, ("PRESAGE AD NOT FOUND")); }
开发者ID:CalvinHou,项目名称:sdk-integrations,代码行数:1,代码来源:s3eHelloPresage.cpp
示例10: AdError
void AdError(void* data) { IwTrace(Presage, ("PRESAGE AD ERROR")); }
开发者ID:CalvinHou,项目名称:sdk-integrations,代码行数:1,代码来源:s3eHelloPresage.cpp
示例11: AdDisplayed
void AdDisplayed(void* data) { IwTrace(Presage, ("PRESAGE AD DISPLAYED")); }
开发者ID:CalvinHou,项目名称:sdk-integrations,代码行数:1,代码来源:s3eHelloPresage.cpp
示例12: IwTrace
int Strike::strikeUpdate(int32 x, int32 y, int32 z) {
int i;
float phoneAccel = (float)sqrt(z*z + y*y);
phoneAccel = (z+y) < 0 ? phoneAccel*-1 : phoneAccel*1;
if (phoneAccel < -200 || phoneAccel > 200)
IwTrace(GHOST_HUNTER, ("Strike x: %d y: %d z: %d accel: %f", x, y, z, phoneAccel));
// 1) Should the strike init?
if (!striking && phoneAccel > ACCEL_TO_START_STRKE) {
striking = true;
IwTrace(GHOST_HUNTER, ("Strike started with accel %f", phoneAccel));
// Initialize variables
strikeInitTime = clock();
peakAccel = 0;
accelDecreasing = false;
}
int timeUsed = clock() - strikeInitTime;
if (striking) {
IwTrace(GOHU, ("accel %f", phoneAccel));
if (timeUsed < MIN_STRIKE_TIME && z + y < ACCEL_TO_START_STRKE/2 && (x < 100 && y < 100)) {
// 2) Is the phone already slowing or going backward?
striking = false;
IwTrace(GHOST_HUNTER, ("Strike ended too early"));
} else if (timeUsed > MAX_STRIKE_TIME) {
// 2) Is the time up?
IwTrace(GHOST_HUNTER, ("Strike timed out"));
striking = false;
}
}
if (striking && timeUsed >= MIN_STRIKE_TIME) {
peakAccel = phoneAccel > peakAccel ? phoneAccel : peakAccel;
if (phoneAccel < peakAccel - 20) {
// 3) Acceleration is decreasing
if (!accelDecreasing) {
// 3) Initialize the end phase
accelDecreasing = true;
accelDecreasingTime = clock();
}
}
IwTrace(GOHU, ("Peak accel %f", peakAccel));
if (phoneAccel < REQUIRED_BLOW_STR) {
// If the final stop/blow of the strike is strong enough
// accept the hit
IwTrace(GHOST_HUNTER, ("Final phone accel %f", phoneAccel));
striking = false;
return 1;
} else {
IwTrace(GHOST_HUNTER, ("The blow was too weak with accel %f",
phoneAccel));
}
}
return 0;
}
开发者ID:Mikuz,项目名称:Ghost-Realm,代码行数:64,代码来源:Strike.cpp
示例13: s3eGPUImageTake_wrap
static char * s3eGPUImageTake_wrap(s3eGPUImageEventDoIt evnt, void * userData)
{
IwTrace(GPUIMAGE_VERBOSE, ("calling s3eGPUImage func on main thread: s3eGPUImageTake"));
return (char *)(intptr_t)s3eEdkThreadRunOnOS((s3eEdkThreadFunc)s3eGPUImageTake, 2, evnt, userData);
}
开发者ID:zitsky,项目名称:s3eGPUImage,代码行数:5,代码来源:s3eGPUImage_register.cpp
示例14: OuyaPlugin_initOuyaPlugin_wrap
static void OuyaPlugin_initOuyaPlugin_wrap(const char* jsonData, s3eCallback onSuccess, s3eCallback onFailure)
{
IwTrace(ODK_VERBOSE, ("calling ODK func on main thread: OuyaPlugin_initOuyaPlugin"));
s3eEdkThreadRunOnOS((s3eEdkThreadFunc)OuyaPlugin_initOuyaPlugin, 3, jsonData, onSuccess, onFailure);
}
开发者ID:ImmortalGameStudio,项目名称:ouya-sdk-examples,代码行数:5,代码来源:ODK_register.cpp
示例15: AdClosed
void AdClosed(void* data) { IwTrace(Presage, ("PRESAGE AD CLOSED")); }
开发者ID:CalvinHou,项目名称:sdk-integrations,代码行数:1,代码来源:s3eHelloPresage.cpp
示例16: OuyaPlugin_asyncOuyaRequestProducts_wrap
static void OuyaPlugin_asyncOuyaRequestProducts_wrap(const char* productsJson, s3eCallback onSuccess, s3eCallback onFailure, s3eCallback onCancel)
{
IwTrace(ODK_VERBOSE, ("calling ODK func on main thread: OuyaPlugin_asyncOuyaRequestProducts"));
s3eEdkThreadRunOnOS((s3eEdkThreadFunc)OuyaPlugin_asyncOuyaRequestProducts, 4, productsJson, onSuccess, onFailure, onCancel);
}
开发者ID:ImmortalGameStudio,项目名称:ouya-sdk-examples,代码行数:5,代码来源:ODK_register.cpp
示例17: OuyaPlugin_JSONArray_Put_wrap
static void OuyaPlugin_JSONArray_Put_wrap(int jsonArray, int index, int jsonObject)
{
IwTrace(ODK_VERBOSE, ("calling ODK func on main thread: OuyaPlugin_JSONArray_Put"));
s3eEdkThreadRunOnOS((s3eEdkThreadFunc)OuyaPlugin_JSONArray_Put, 3, jsonArray, index, jsonObject);
}
开发者ID:ImmortalGameStudio,项目名称:ouya-sdk-examples,代码行数:5,代码来源:ODK_register.cpp
示例18: OuyaPlugin_asyncOuyaRequestReceipts_wrap
static void OuyaPlugin_asyncOuyaRequestReceipts_wrap(s3eCallback onSuccess, s3eCallback onFailure, s3eCallback onCancel)
{
IwTrace(ODK_VERBOSE, ("calling ODK func on main thread: OuyaPlugin_asyncOuyaRequestReceipts"));
s3eEdkThreadRunOnOS((s3eEdkThreadFunc)OuyaPlugin_asyncOuyaRequestReceipts, 3, onSuccess, onFailure, onCancel);
}
开发者ID:ImmortalGameStudio,项目名称:ouya-sdk-examples,代码行数:5,代码来源:ODK_register.cpp
示例19: OuyaPlugin_JSONArray_ToString_wrap
static const char* OuyaPlugin_JSONArray_ToString_wrap(int jsonArray)
{
IwTrace(ODK_VERBOSE, ("calling ODK func on main thread: OuyaPlugin_JSONArray_ToString"));
return (const char*)(intptr_t)s3eEdkThreadRunOnOS((s3eEdkThreadFunc)OuyaPlugin_JSONArray_ToString, 1, jsonArray);
}
开发者ID:ImmortalGameStudio,项目名称:ouya-sdk-examples,代码行数:5,代码来源:ODK_register.cpp
示例20: OuyaPlugin_JSONObject_Put_wrap
static void OuyaPlugin_JSONObject_Put_wrap(int jsonObject, const char* name, const char* value)
{
IwTrace(ODK_VERBOSE, ("calling ODK func on main thread: OuyaPlugin_JSONObject_Put"));
s3eEdkThreadRunOnOS((s3eEdkThreadFunc)OuyaPlugin_JSONObject_Put, 3, jsonObject, name, value);
}
开发者ID:ImmortalGameStudio,项目名称:ouya-sdk-examples,代码行数:5,代码来源:ODK_register.cpp
注:本文中的IwTrace函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论