DirectX9 Bazı Fonksiyonlar ;

C

CapsLock

Enough
Ultra Member
Joined
Nov 5, 2019
Messages
959
Reaction score
718
Location
Peak
Border Oluşturma:
Code:
void DrawBorder( float x, float y, float w, float h, DWORD color1, DWORD color2, LPDIRECT3DDEVICE9 pDevice )
{
    DXUT_SCREEN_VERTEX vertices[6] =
    {
        x + w, y, 0.0f, 1.0f, color2, 0,0,
        x + w, y + h, 0.0f, 1.0f, color2, 0,0,
        x, y + h, 0.0f, 1.0f, color2, 0,0,

        x, y + h, 0.0f, 1.0f, color1, 0,0,
        x, y, 0.0f, 1.0f, color1, 0,0,
        x + w, y, 0.0f, 1.0f, color1, 0,0,
    };
    pDevice->DrawPrimitiveUP( D3DPT_LINESTRIP, 5, vertices, sizeof(DXUT_SCREEN_VERTEX) );
}
Mause:
Code:
void DrawMouse(DWORD color,LPDIRECT3DDEVICE9 pDevice)
{


            POINT myCursor;
        GetCursorPos(&myCursor);
        ScreenToClient(GetForegroundWindow(),&myCursor);
    
    int cList[6] = {8,6,4,3,2,1};

    for(int i=0;i<6;i++)
        DrawRect(myCursor.x+i+2,myCursor.y+i+2,2,cList[i],Orange,pDevice);
    return;

}
Kare:
Code:
void FillRGB( int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* pDevice )
{
    D3DRECT rec = { x, y, x + w, y + h };
    pDevice->Clear( 1, &rec, D3DCLEAR_TARGET, color, 0, 0 );
}
 
SPAM IS FORBIDDEN!
  • SPAMMERS ARE BANNED FROM THE FORUM AND CANNOT USE ANY OF THE CHEATS
  • For example: thanks, thx, very good, asdqwe, working, ty and so on!
  • For example: Writing the same message over and over. thanks, thx and so on!
  • Copying and copying someone else's message is prohibited.
  • It is forbidden to send messages to increase the number of comments on threads that you have no knowledge of.
  • Write your own opinion when commenting!
  • If you see spam message, please let us know with the REPORT button!

Tema düzenleyici

Top Bottom