- #ifdef WIN32\r
- D3DXVECTOR3 center(0.0f, 0.0f, 0.0f); // center at the upper-left corner\r
- D3DXVECTOR3 position((FLOAT)x, (FLOAT)y, 0.0f); // position at 50, 50 with no depth\r
- RECT rect = {0,0,40,36};\r
- d3dspt->Draw(texture, &rect, ¢er, &position, D3DCOLOR_XRGB(255,255,255));\r
- #endif // WIN32\r
+ this->sprite->blit(\r
+ this->x,\r
+ this->y,\r
+ 1.0, 1.0, 0, 0, COLOUR_RGBA(255, 255, 255, 255)\r
+ );\r