Page 3 of 3 FirstFirst 123
Results 31 to 38 of 38
  1. #31
    koolwrench's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    California
    Posts
    173
    Reputation
    10
    Thanks
    48
    My Mood
    Amused
    why isnt this stickied lol
    i need this
    DONT FORGET TO PRESS THE THANKS BUTTON

    accomplishment list:
    post 5 times []
    post 10 times []
    post 50 times[]
    post 100 times[]
    begin to learn coding[]
    code first program []
    code second program[]
    code first hack []
    code a awsome hack[]
    become a member[]
    become a well known[]
    get a unbeliavable[]
    get an unbeliavble+[]
    get called a haxor without hacking[]
    hack without being called a hacker[]






    RESPECT LIST:
    [MPGH]Dave84311
    [Mpgh]Liz

  2. #32
    .L33T's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    80
    Reputation
    9
    Thanks
    49
    My Mood
    Cool
    Quote Originally Posted by koolwrench View Post
    why isnt this stickied lol
    i need this
    Let me guess... Because it isn't noob spon feed?

  3. #33
    HL-SDK's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    56
    Reputation
    11
    Thanks
    26
    [php]using namespace std;

    static bool once = false;
    if (!once)
    {
    once = true;
    ifstream file ("YOUR_PICTURE_FILE.POOP", ios::in|ios::binary|ios::ate);
    if (file.is_open())
    {
    ifstream:os_type size = file.tellg();
    char* memblock = new char [size];
    file.seekg (0, ios::beg);
    file.read (memblock, size);
    file.close();

    D3DXCreateTextureFromFileInMemory(g_pDevice,memblo ck,size,tex);

    delete[] memblock;
    }
    }
    [/php]
    ?????? no more 4GB .h files???????

    This should probably be broken out into a texture and sprite management class......................................

  4. #34
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,070
    Reputation
    50
    Thanks
    940
    My Mood
    Fine
    Quote Originally Posted by HL-SDK View Post
    [php]using namespace std;

    static bool once = false;
    if (!once)
    {
    once = true;
    ifstream file ("YOUR_PICTURE_FILE.POOP", ios::in|ios::binary|ios::ate);
    if (file.is_open())
    {
    ifstream:os_type size = file.tellg();
    char* memblock = new char [size];
    file.seekg (0, ios::beg);
    file.read (memblock, size);
    file.close();

    D3DXCreateTextureFromFileInMemory(g_pDevice,memblo ck,size,tex);

    delete[] memblock;
    }
    }
    [/php]
    ?????? no more 4GB .h files???????

    This should probably be broken out into a texture and sprite management class......................................
    I was actually doing something like this for the FPS engine I am currently coding, its a very effective and easy method /

  5. The Following User Says Thank You to CodeDemon For This Useful Post:

    HL-SDK (10-11-2010)

  6. #35
    Jàzzà_'s Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    185
    Reputation
    11
    Thanks
    97
    My Mood
    Cool
    I need this tut thank's acid_buRn
    Although I think iv seen a thread similar to this already on the forum
    Anyways thanks again


    Applications:
    Jàzzà InjectXD | Radio♫ v1.1 | File Name Sorter
    Better than Bombsaway707 Radio (:

  7. #36
    UltimateX1's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    114
    Reputation
    10
    Thanks
    10
    My Mood
    Yeehaw
    Quote Originally Posted by ac1d_buRn View Post
    Well i thought id create a tutorial on this, Since some people are asking. The code is NOT mine. Credits to pyroctain666 for the code and im not sure who made the program

    First get your image and open it up in the converter provided.
    Convert the image to bytes. The output bytes will be in the text file.

    Define you bytes like this:
    [php]
    BYTE Menu[ ] = {output bytes here};
    [/php]

    In the globals, Put:
    [php]
    LPD3DXSPRITE Sprite;
    LPDIRECT3DTEXTURE9 MenuTexture;
    static BOOL Create = TRUE;
    [/php]

    Now, Go to your Endscene or Present and create your texture and sprite like so:
    [php]
    if(Create){
    D3DXCreateTextureFromFileInMemory(Device,&Menu,siz eof(Menu),&MenuTexture);
    D3DXCreateSprite(pDevice,&Sprite);
    Create = FALSE;
    }
    [/php]

    Now you need to draw the sprite (In Endscene or Present again)
    [php]
    D3DXVECTOR3 POS;
    POS.x = 15;
    POS.y = 15;
    POS.z = 0;

    Sprite->Begin();
    Sprite->Draw(MenuTexture,NULL,NULL,&POS,0xFFFFFFFF);
    Sprite->End();
    [/php]

    If you would like the image transperent, Replace
    [php]
    Sprite->Begin();
    [/php]

    With
    [php]
    Sprite->Begin(D3DXSPRITE_ALPLHABLEND);
    [/php]

    I havent tested it yet, But it should work. I will tesst once CA finishes patching.

    acid_buRn

    Ohh and the virus scan:
    VirusTotal - Free Online Virus and Malware Scan - Result
    alphla??? dont you mean alpha lolz

  8. #37
    whatup777+'s Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    246
    Reputation
    11
    Thanks
    15
    Quote Originally Posted by HL-SDK View Post
    [php]using namespace std;

    static bool once = false;
    if (!once)
    {
    once = true;
    ifstream file ("YOUR_PICTURE_FILE.POOP", ios::in|ios::binary|ios::ate);
    if (file.is_open())
    {
    ifstream:os_type size = file.tellg();
    char* memblock = new char [size];
    file.seekg (0, ios::beg);
    file.read (memblock, size);
    file.close();

    D3DXCreateTextureFromFileInMemory(g_pDevice,memblo ck,size,tex);

    delete[] memblock;
    }
    }
    [/php]
    ?????? no more 4GB .h files???????

    This should probably be broken out into a texture and sprite management class......................................
    Good Code Man.

    Quote Originally Posted by UltimateX1 View Post
    alphla??? dont you mean alpha lolz
    You want a Un-1337 Sticker. :/

  9. #38
    QQiswhyihack's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    If i told you, i'd have to kill you :)
    Posts
    134
    Reputation
    10
    Thanks
    61
    My Mood
    Asleep
    Nice ac1d, Looks good.. i might try it on my new menu, dont know yet though......
    Still coding it so, QQ's Menu coming soon
    RespectsList
    MrSkaFighter
    Spook
    CoderNever

    Thank You for This sig, Peter/Vengeance.

    Uploaded with ImageShack.us
    Respect Aint Easy to earn, helpful people are always loyal.
    Goals
    Get 50 post []
    get 100 post []
    get 150 post []
    get 200 post []
    Make a Auto-On Hack []
    Release My first hack []
    Make a hotKey hack []
    Make a menu-hack []
    Hack, not get called a hacker []
    Hack, get QQed at and lol []
    Be known on MPGH [] -Unknown.
    Yes i have a long goal list, but a long goal list is someone who wants to accomplish alot of things..

Page 3 of 3 FirstFirst 123

Similar Threads

  1. [Release]How to make Windows Genuine
    By SunBeam in forum General Hacking
    Replies: 2
    Last Post: 12-21-2008, 12:15 PM
  2. [Release] How to make a favicon.
    By KyleForrest in forum General
    Replies: 0
    Last Post: 10-24-2008, 11:00 AM
  3. [Release] How to make a video in CA
    By duyxngoc94 in forum Combat Arms Hacks & Cheats
    Replies: 12
    Last Post: 09-08-2008, 09:57 PM
  4. [Release]How To Do Cap The Flag Glitch
    By KakashiRock in forum Combat Arms Hacks & Cheats
    Replies: 13
    Last Post: 08-05-2008, 04:42 AM
  5. How to draw a car in MS
    By AN1MAL in forum Entertainment
    Replies: 9
    Last Post: 12-18-2006, 05:38 PM