Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    [Source] Drawing Rectangle


    a1fahrrad
     Share

    Recommended Posts

    The DrawBox Funktion

    void DrawBox( LPDIRECT3DDEVICE9 pDevice , int x, int y, int w, int h, DWORD Color )
    {
    D3DRECT rec;
    rec.x1 = x;
    rec.x2 = x + w;
    rec.y1 = y;
    rec.y2 = y + h;
    pDevice->Clear( 1, &rec, D3DCLEAR_TARGET, Color, 0, 0 );
    }

     

    The Rectangle Funktion:

    void DrawRectangle(int x, int y, int w, int h, int s, DWORD Color, LPDIRECT3DDEVICE9 pDevice)
    {
    DrawBox(pDevice, x, y, w, s, Color );
    DrawBox(pDevice, x, y, s, h, Color );
    DrawBox(pDevice, (x+w), y, s, h, Color );
    DrawBox(pDevice, x, (y+h), w+s, s, Color );
    }

     

    How To use:

    DrawRectangle(X, Y, width, high, size, Color, Device );

     

    Credits:

    To the one who made the FillRGB Funktion.

    a1fahrrad (Rectangle Funktion)

    post-6030-1238091120_thumb.png

    Edited by a1fahrrad
    Link to comment
    Share on other sites

    • 1 month later...

    This is for D3D9 right?

     

    Damn i made it work for D3D8

    Edited by ZWE47
    Link to comment
    Share on other sites

    Lol? you didn't made it hahhahaa...

     

    You only copyed and pasted the script in oyur base.

    Link to comment
    Share on other sites

    Lol? you didn't made it hahhahaa...

     

    You only copyed and pasted the script in oyur base.

     

    Yea but this script is based on D3D9 and i made it work for D3D8 xD

     

    Understand now?

    Link to comment
    Share on other sites

    changing LPDIRECT3DDEVICE9 to LPDIRECT3DDEVICE8. lol

     

    But i dont think anyone can really take clam to this function it has been posted over the web. You could probly find this same function on any Directx Coding website out there.

    Link to comment
    Share on other sites

    • 2 weeks later...

    Crazy mike how can i hide this while pressing Insert Buttom.. :S i cant make it dissapear

    Link to comment
    Share on other sites

    if(GetAsynckEyState(VK_INSERT))

    {

    DrawRectangle(X, Y, width, high, size, Color, Device );

    }

     

     

     

    @CrazyMike

     

    I made this without Source Code or something, you can do it with a little bit mathematik knowledge :]

    Link to comment
    Share on other sites

    ..\base.cpp(431) : error C3861: 'GetAsynckEyState': identifier not found

     

    Help?

    Link to comment
    Share on other sites

    Damn i will stop this is not that important O.o

     

    Check my hook:

     

    vip1.png

    vip2.png

    vip.png

    Edited by ZWE47
    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...