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.

    RenderText in DirectX11


    NeoIII
     Share

    Recommended Posts

    http://www.rufelt.com/fw1fontwrapper/

     

    Sample Code:

    IFW1Factory *pFW1Factory; 
    IFW1FontWrapper *pFontWrapper; 
    bool fontinit = false; 
    
    bool IsFontInit() 
    { 
       return fontinit; 
    } 
    
    bool CreateFont( ID3D11Device* pDevice ) 
    { 
       // Create the font-wrapper 
       HRESULT hResult = FW1CreateFactory(FW1_VERSION, &pFW1Factory); 
       if(FAILED(hResult)) { 
           return false;  
       } 
    
       hResult = pFW1Factory->CreateFontWrapper(pDevice, L"Arial", &pFontWrapper); 
       if(FAILED(hResult)) { 
           return false; 
       } 
    
       pFW1Factory->Release(); 
       fontinit = true; 
       return fontinit; 
    } 
    
    void RenderText( ID3D11DeviceContext* pImmediateContext, int x, int y, DWORD color, UINT Flags, char *szText, ... ) 
    { 
       if( !fontinit ) return; 
    
       va_list va_alist; 
       char logbuf[256]; 
    
       va_start (va_alist, szText); 
       _vsnprintf(logbuf, sizeof(logbuf), szText, va_alist); 
       va_end (va_alist); 
    
       pFontWrapper->DrawString( pImmediateContext, asciiDecode(logbuf).c_str(), 14.0f, x, y, color, Flags );             
    }  
    

     

    Present or any other hook:

        if( !IsFontInit() ) 
       { 
           CreateFont( DxRenderer->m_device ); 
       } else { 
           RenderText( DxRenderer->m_deviceContext, 10, 10, D3DCOLOR_ABGR( 255, 255, 102, 51 ), 0x0, "DirectX11 Hook" ); 
       }  
    

     

    Screen: bf3_esp_6u1k.png

    Edited by Neo I.I.I
    Link to comment
    Share on other sites

    • 2 months later...

    Screen: bf3_esp_6u1k.png

     

    OMG neo, that looks amaxing, dumb questin maby but, was that showing enemies or allys, if enemys, why not releas it as an wallhack?

    i just love it neo! keep you development up

    Link to comment
    Share on other sites

    • 3 weeks later...
    • 3 weeks later...

    I'm a newbie, can I ask a question?

    How do you install this to your computer or BF3?

     

    he makes an injector that injects the .dll "hack file" to bf3.

     

    the injector waits for process of battlefield 3. then when u start it it somehow infects bf3 with the hack (not perma infect. only until you exit game.

     

    thats how hacks work (so called trainers work pretty same, tho they are set on key press, hacks are most thesedays menus in-game)

    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...