Results 1 to 5 of 5
  1. #1
    F4DE's Avatar
    Join Date
    Apr 2016
    Gender
    male
    Location
    The Netherlands
    Posts
    158
    Reputation
    10
    Thanks
    973

    DirectX9 image in overlay

    Hi,
    Lately I started with c++ directX9 stuff, and I've created an overlay for my cheat. Now, I want to add an image to the overlay but I have No clue how to add it. So, does anyone know how to show an image on the overlay?

    Thanks

  2. #2
    Yemiez's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    Sweden
    Posts
    2,566
    Reputation
    731
    Thanks
    16,279
    My Mood
    Devilish
    Use a sprite and a texture.

    References:
    IDirect3DTexture9
    ID3DXSprite
    D3DXCreateTextureFromFile
    D3DXCreateSprite

    Code:
    sprite->Begin( D3DXSPRITE_ALPHABLEND /* See D3DXSPRITE */ );
    sprite->draw( texture_ptr,  [...] );
    sprite->End();
    Last edited by Yemiez; 05-26-2016 at 04:07 PM.

  3. #3
    F4DE's Avatar
    Join Date
    Apr 2016
    Gender
    male
    Location
    The Netherlands
    Posts
    158
    Reputation
    10
    Thanks
    973
    Quote Originally Posted by Yamiez View Post
    Use a sprite and a texture.

    References:
    IDirect3DTexture9
    ID3DXSprite
    D3DXCreateTextureFromFile
    D3DXCreateSprite

    Code:
    sprite->Begin( D3DXSPRITE_ALPHABLEND /* See D3DXSPRITE */ );
    sprite->draw( texture_ptr,  [...] );
    sprite->End();
    With what should I replace texture_ptr etc?

  4. #4
    Yemiez's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    Sweden
    Posts
    2,566
    Reputation
    731
    Thanks
    16,279
    My Mood
    Devilish
    Quote Originally Posted by F4DE View Post
    With what should I replace texture_ptr etc?
    This the reason why I gave you the links to the function, go figure what texture_ptr might be, the texture of course.

  5. #5
    F4DE's Avatar
    Join Date
    Apr 2016
    Gender
    male
    Location
    The Netherlands
    Posts
    158
    Reputation
    10
    Thanks
    973
    Quote Originally Posted by Yamiez View Post
    This the reason why I gave you the links to the function, go figure what texture_ptr might be, the texture of course.
    I know, I've got the rest now but I don't understand how to set the path for the texture / how to implement it?

Similar Threads

  1. Image title text overlay?
    By Rance-faga in forum Profile Edit Requests
    Replies: 3
    Last Post: 03-01-2014, 03:10 PM
  2. [REQUEST] Transparent image overlay tool
    By Gobblemewl in forum Hack Requests
    Replies: 2
    Last Post: 05-04-2013, 05:43 AM
  3. [Image] Reverse Image Search
    By Justin in forum General
    Replies: 13
    Last Post: 07-23-2012, 03:16 PM
  4. [Image] idle no image
    By Gamesreaper in forum General
    Replies: 22
    Last Post: 02-23-2012, 06:27 AM
  5. [Image] Tupac sex tape IMAGES
    By GiGux in forum General
    Replies: 22
    Last Post: 10-05-2011, 04:01 PM