本文整理汇总了C++中TouchButton::draw方法的典型用法代码示例。如果您正苦于以下问题:C++ TouchButton::draw方法的具体用法?C++ TouchButton::draw怎么用?C++ TouchButton::draw使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TouchButton
的用法示例。
在下文中一共展示了TouchButton::draw方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DrawGamepad
void DrawGamepad(DrawBuffer &db)
{
uint32_t color = 0xa0c0b080;
uint32_t colorOverlay = 0xa0FFFFFF;
buttonO.draw(db, color, colorOverlay);
buttonX.draw(db, color, colorOverlay);
buttonTri.draw(db, color, colorOverlay);
buttonSq.draw(db, color, colorOverlay);
crossPad.draw(db, color, colorOverlay);
buttonSelect.draw(db, color, colorOverlay);
buttonStart.draw(db, color, colorOverlay);
buttonLShoulder.draw(db, color, colorOverlay);
buttonRShoulder.draw(db, color, colorOverlay);
buttonTurbo.draw(db, color, colorOverlay);
#if defined(__SYMBIAN32__) || defined(IOS)
buttonPause.draw(db, color, colorOverlay);
#endif
if (g_Config.bShowAnalogStick)
leftStick.draw(db, color);
}
示例2: DrawGamepad
void DrawGamepad(DrawBuffer &db, float opacity)
{
uint32_t color = colorAlpha(0xc0b080, opacity);
uint32_t colorOverlay = colorAlpha(0xFFFFFF, opacity);
buttonO.draw(db, color, colorOverlay);
buttonX.draw(db, color, colorOverlay);
buttonTri.draw(db, color, colorOverlay);
buttonSq.draw(db, color, colorOverlay);
crossPad.draw(db, color, colorOverlay);
buttonSelect.draw(db, color, colorOverlay);
buttonStart.draw(db, color, colorOverlay);
buttonLShoulder.draw(db, color, colorOverlay);
buttonRShoulder.draw(db, color, colorOverlay);
if (g_Config.iFpsLimit)
buttonVPS.draw(db, color, colorOverlay);
else
buttonTurbo.draw(db, color, colorOverlay);
#if defined(__SYMBIAN32__) || defined(IOS) || defined(MEEGO_EDITION_HARMATTAN)
buttonPause.draw(db, color, colorOverlay);
#endif
if (g_Config.bShowAnalogStick)
leftStick.draw(db, color);
}
示例3: DrawGamepad
void DrawGamepad(DrawBuffer &db)
{
uint32_t color = 0xa0c0b080;
uint32_t colorOverlay = 0xa0FFFFFF;
buttonO.draw(db, color, colorOverlay);
buttonX.draw(db, color, colorOverlay);
buttonTri.draw(db, color, colorOverlay);
buttonSq.draw(db, color, colorOverlay);
buttonLeft.draw(db, color, colorOverlay);
buttonUp.draw(db, color, colorOverlay);
buttonDown.draw(db, color, colorOverlay);
buttonRight.draw(db, color, colorOverlay);
buttonSelect.draw(db, color, colorOverlay);
buttonStart.draw(db, color, colorOverlay);
buttonLShoulder.draw(db, color, colorOverlay);
buttonRShoulder.draw(db, color, colorOverlay);
if (g_Config.bShowAnalogStick)
leftStick.draw(db, color);
}