Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- -----------------------------------------
- * Game hacking QTS ( Quickie Tip Series )
- * no. 4 - Primitive rectangle drawing function
- -----------------------------------------
- * 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
- */
- //----------------------------------//
- // Uses same Line variable as from no. 3 - Primitive line drawing function.
- // Why this is better than Clear() is because it supports alpha transparency.
- void DrawRect ( long X, long Y, long W, long H, D3DCOLOR Color )
- {
- D3DXVECTOR2 vLine[ 2 ];
- g_pLine->SetWidth( W );
- g_pLine->SetAntialias( 0 );
- g_pLine->SetGLLines( 1 );
- g_pLine->SetWidth( W );
- g_pLine->Begin();
- vLine[ 0 ][ 0 ] = X+W/2;
- vLine[ 0 ][ 1 ] = Y;
- vLine[ 1 ][ 0 ] = X+W/2;
- vLine[ 1 ][ 1 ] = Y+H;
- g_pLine->Draw( vLine, 2, Color );
- g_pLine->End();
- }
- //----------------------------------//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement