コード例 #1
0
ファイル: SDLWrapper.cpp プロジェクト: raydelto/GeometryWars
 void SDLWrapper::OnMouseMove( int x, int y, int relx, int rely, bool left, bool right, bool middle )
 {
     Input::getInstance()->onTouch(tTouchEvent(tTouchEvent::kTouchMove,
             tPoint2f(x, y), 0));
 }
コード例 #2
0
ファイル: Entity.cpp プロジェクト: hbiblia/GeometryWars
void Entity::draw(tSpriteBatch* spriteBatch)
{
    spriteBatch->draw(1, mImage, tPoint2f((int32_t)mPosition.x, (int32_t)mPosition.y), tOptional<tRectf>(), mColor,
                     mOrientation, getSize() / 2, tVector2f(1,1));
}