Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- -----------------------------------------
- * Game hacking QTS ( Quickie Tip Series )
- * no. 15 - Draw texture as sprite
- -----------------------------------------
- * Author: SEGnosis - GHAnon.net
- * Thanks to:
- * bitterbanana - No known site
- * Drunken Cheetah - No known site
- * fatboy88 - No known site
- * Geek4Ever - No known site
- * learn_more - www.uc-forum.com
- * Novocaine - http://ilsken.net/blog/?page_id=64
- * Philly0494 - No known site
- * Roverturbo - www.uc-forum.com
- * SilentKarma - www.halocoders.com - offline
- * Strife - www.uc-forum.com
- * Wieter20 - No known site
- */
- //----------------------------------//
- LPD3DXSPRITE pSprite; // Sprite pointer
- D3DXCreateSprite( m_pDevice, &pSprite ); // Create sprite using device, ( only once )
- //----------------------------------//
- pSprite->Begin( D3DXSPRITE_ALPHABLEND );// D3DXSPRITE_ALPHABLEND to allow transparency
- // D3DXMatrixTransformation2D() to rotate and resize
- pSprite->Draw( m_TexFoo, 0, 0, &D3DXVECTOR3( 50, 50, 0 ), D3DCOLOR_XRGB( 255, 255, 255 ) );// Full color and full alpha channel
- pSprite->End();
- //----------------------------------//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement