本文整理汇总了C++中Surface::BltRoundRect方法的典型用法代码示例。如果您正苦于以下问题:C++ Surface::BltRoundRect方法的具体用法?C++ Surface::BltRoundRect怎么用?C++ Surface::BltRoundRect使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Surface
的用法示例。
在下文中一共展示了Surface::BltRoundRect方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: bltBlendRect
//--------------------------------------------------------------------------
void bltBlendRect(Surface &dest, const iRect &r)
{
if (GameConfig::interface_viewdrawbackgroundmode == VIEW_BACKGROUND_DARK_GRAY_BLEND) {
dest.BltRoundRect(r, 10, Palette::darkGray256.getColorArray());
} else if (GameConfig::interface_viewdrawbackgroundmode == VIEW_BACKGROUND_LIGHT_GRAY_BLEND) {
dest.BltRoundRect(r, 10, Palette::gray256.getColorArray());
} else if (GameConfig::interface_viewdrawbackgroundmode == VIEW_BACKGROUND_SOLID_BLACK) {
dest.fillRect(r, Color::black);
} else if (GameConfig::interface_viewdrawbackgroundmode == VIEW_BACKGROUND_TRANSPARENT) {}
}
示例2: doDraw
// doDraw
//---------------------------------------------------------------------------
void EndRoundView::doDraw(Surface &viewArea, Surface &clientArea)
{
unsigned int flagHeight = ResourceManager::getFlag(0)->getHeight();
clientArea.BltRoundRect(RectWinner, 14, Palette::green256.getColorArray());
clientArea.RoundRect(RectWinner,14, Color::gray);
clientArea.BltRoundRect(RectStates, 14, Palette::darkGray256.getColorArray());
clientArea.RoundRect(RectStates, 14, Color::gray);
drawPlayerStats(clientArea, flagHeight);
View::doDraw(viewArea, clientArea);
} // end doDraw
示例3: doDraw
void GFlagSelectionView::doDraw(Surface &viewArea, Surface &clientArea)
{
clientArea.BltRoundRect(rect, 14, Palette::darkGray256.getColorArray());
clientArea.RoundRect(rect,14, Color::gray);
ResourceManager::getFlag(PlayerInterface::getLocalPlayerIndex())->blt(clientArea, loc_player_flag.x, loc_player_flag.y);
View::doDraw(viewArea, clientArea);
} // end doDraw