Page 1 of 2 12 LastLast
Results 1 to 15 of 24

Hybrid View

  1. #1
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,409
    My Mood
    In Love

    D3d Draw Triangle

    I think this is how you do it

    Code:
    void FillARGBTriangle(int x1, int y1, int x2, int y2, int x3, int y3, D3DCOLOR color, IDirect3DDevice9 *pDevice)
    {
    	struct Vertex
    	{
    		float x,y,z,ht;
    		DWORD Color;
    	};
    
    	Vertex V[4];
        V[0].Color = V[1].Color = V[2].Color = V[3].Color = color;
        V[0].z   = V[1].z   = V[2].z   = V[3].z   = 0.0f;
        V[0].ht = V[1].ht = V[2].ht = V[3].ht = 0.0f;
    
    	V[0].x = (float)x1;
    	V[0].y = (float)y1;
    	V[1].x = (float)x2;
    	V[1].y = (float)y2;
    	V[2].x = (float)x3;
    	V[2].y = (float)y3;
    	V[3].x = (float)x1 + 1;
    	V[3].y = (float)y1 + 1;
    
    	pDevice->SetTexture(0, NULL);
    	pDevice->SetFVF(D3DFVF_XYZRHW | D3DFVF_DIFFUSE | D3DFVF_TEX1); 
    	pDevice->DrawPrimitiveUP(D3DPT_TRIANGLESTRIP,2,V,sizeof(Vertex));
    }
    Credits:
    Pheron
    System32
    No I do not make game hacks anymore, please stop asking.

  2. The Following 5 Users Say Thank You to flameswor10 For This Useful Post:

    CAFlames (01-25-2011),Otaviomorais (02-21-2013),S0aD (05-14-2011),Sydney (01-06-2011),Turbulence (03-24-2011)

  3. #2
    ғᴜᴋᴏᴊʀ's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    1,557
    Reputation
    87
    Thanks
    141
    My Mood
    Inspired
    Quote Originally Posted by flameswor10 View Post
    Credits:
    System32
    This made me lol.


    [IMG]https://i186.photobucke*****m/albums/x253/Rypleys/MNC/biohazard2.jpg[/IMG]

    MPGH in 5 words:

    Quote Originally Posted by ZEROProJect View Post
    1 in a million community

  4. #3
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty
    post a screenie

  5. #4
    ^...,^'s Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    New Zealand,Auckland
    Posts
    698
    Reputation
    4
    Thanks
    90
    My Mood
    Lonely
    Quote Originally Posted by ac1d_buRn View Post
    post a screenie
    aggred i wont to see this... small or big white or black

  6. #5
    DannyIzHere's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Location
    In front of my PC.
    Posts
    824
    Reputation
    -3
    Thanks
    44
    My Mood
    Fine
    Quote Originally Posted by ^...,^ View Post
    aggred i wont to see this... small or big white or black
    Its big and black trust me .

  7. #6
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,409
    My Mood
    In Love
    Quote Originally Posted by DannyIzHere View Post


    Its big and black trust me .
    Lol wtf. Who the fk are you O.O
    No I do not make game hacks anymore, please stop asking.

  8. #7
    DannyIzHere's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Location
    In front of my PC.
    Posts
    824
    Reputation
    -3
    Thanks
    44
    My Mood
    Fine
    Quote Originally Posted by flameswor10 View Post
    Lol wtf. Who the fk are you O.O
    Im a member on MPGH.
    Nice to meet you.

  9. #8
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,409
    My Mood
    In Love
    sorry guys, but iu don't have a menu base for me to use with. So can't get a screenshot
    No I do not make game hacks anymore, please stop asking.

  10. #9
    _Fk127_'s Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    720
    Reputation
    16
    Thanks
    208
    My Mood
    Bitchy
    Quote Originally Posted by flameswor10 View Post
    sorry guys, but iu don't have a menu base for me to use with. So can't get a screenshot
    There are other ways to use DirectX than menu hacks.



    Put this image in your signature if you support HTML5 development!

  11. #10
    mo3ad001's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    842
    Reputation
    53
    Thanks
    797
    My Mood
    Busy
    you don't need a menu to made a screen !!
    make simple box
    Last edited by mo3ad001; 01-05-2011 at 11:19 AM.

    H A X O
    Email : Noobmem@hotmail.com


  12. #11
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty
    Quote Originally Posted by flameswor10 View Post
    sorry guys, but iu don't have a menu base for me to use with. So can't get a screenshot
    i dont care. post a screenie you gimp

  13. #12
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Someone needs to release draw an oval..

  14. #13
    Mr.Magicman's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Sitting in my cave full of thoughts learning Asembly
    Posts
    2,102
    Reputation
    16
    Thanks
    649
    My Mood
    Cold
    Quote Originally Posted by whit View Post
    Someone needs to release draw an oval..
    Do you know how hard it is to calculate a oval??

  15. #14
    seaplusplus's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    106
    Reputation
    4
    Thanks
    51
    My Mood
    Drunk
    Quote Originally Posted by Mr.Magicman View Post


    Do you know how hard it is to calculate a oval??
    Yah, that probably would be hard...

  16. #15
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by Mr.Magicman View Post


    Do you know how hard it is to calculate a oval??
    Nope's ..

Page 1 of 2 12 LastLast