本文整理汇总了C++中sf::RenderTarget类的典型用法代码示例。如果您正苦于以下问题:C++ RenderTarget类的具体用法?C++ RenderTarget怎么用?C++ RenderTarget使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了RenderTarget类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: draw
void ConfigButton::draw(sf::RenderTarget& target, sf::RenderStates states) const
{
states.transform *= getTransform();
target.draw(m_background, states);
target.draw((gui::Button) *this);
}
示例2: draw
void GUIGraph::draw(sf::RenderTarget& target, sf::RenderStates states) const
{
states.transform *= getTransform();
target.draw(m_vertexArray);
}
示例3: draw
void Flag::draw(sf::RenderTarget& target, sf::RenderStates states) const
{
target.draw(mSprite, states);
}
示例4:
void
Ball::draw(sf::RenderTarget& target) const
{
target.draw(sprite_);
}
示例5: draw
void Mob::draw(sf::RenderTarget& target, sf::RenderStates states) const {
target.draw(sprite, states);
}
示例6: drawCurrent
void SpriteNode::drawCurrent(sf::RenderTarget& target, sf::RenderStates states) const
{
target.draw(mSprite, states);
}
示例7: draw
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const
{
states.transform *= getTransform();
states.texture = &m_tileset;
target.draw(m_vertices, states);
}
示例8: drawPlayer
void World::drawPlayer(sf::RenderTarget& target)
{
player.setPosition(player_position);
target.draw(player);
}
示例9: drawCurrent
void TextNode::drawCurrent(sf::RenderTarget& target, sf::RenderStates states) const
{
target.draw(mText, states);
}
示例10: drawCurrent
void Aircraft::drawCurrent(sf::RenderTarget &target, sf::RenderStates states) const
{
target.draw(mSprite, states);
}
示例11: drawObstacles
void World::drawObstacles(sf::RenderTarget& target)
{
std::for_each(obstacle_container.begin(), obstacle_container.end(),
[&](const auto& ob) { target.draw(ob); });
}
示例12: draw_layers
void TileMap::draw_layers(int start, int finish, sf::RenderTarget & target) const
{
for(int i = start; i <= finish; ++i)
target.draw(_layers[i]);
}
示例13: debug_draw
void Collidable::debug_draw(sf::RenderTarget& target) {
target.draw(*mMask);
}
示例14: draw
void Button::draw(sf::RenderTarget& target, sf::RenderStates states) const
{
states.transform *= getTransform();
target.draw(mSprite, states);
target.draw(mText, states);
}
示例15: draw
virtual void draw(sf::RenderTarget &target, sf::RenderStates states) const {
for(auto& p : m_systems) {
target.draw(p.second, states);
}
}