Very simple lol....
Emphasis on Very :P
Should help choobs. Good Job.
Hey.
Not much to say.
How to use:Code:struct _COLOR { int Alpha, Red, Green, Blue; DWORD ConvertToDWORDWithAlpha() { return D3DCOLOR_ARGB(Alpha,Red,Green,Blue); }; DWORD ConvertToDWORD() { return D3DCOLOR_XRGB(Red,Green,Blue); }; }; typedef struct COLOR : public _COLOR { public: COLOR (){}; COLOR ( int r, int g, int b ){Red = r;Green = g; Blue = b;}; COLOR ( int a, int r, int g,int b ){Alpha = a; Red = r;Green = g; Blue = b;}; COLOR ( COLOR& ){}; }COLOR, *PCOLOR;
Have Fun with itCode:Oh Common, thats simple C++
Creditz: me (but its very simple)
The Internet SHOULD Be Illegal
When you say
"Java is a great programming language because it works on all platforms"
it is just like
"anal sex is great because it works on all genders"
Are YOU a Troll?
Thanks. Useful for chams and anything usable by shifting colors.
hey u could use this for real chams
What's wrong with D3DCOLOR ?
The Internet SHOULD Be Illegal
When you say
"Java is a great programming language because it works on all platforms"
it is just like
"anal sex is great because it works on all genders"
Are YOU a Troll?
Nice struct there
No I do not make game hacks anymore, please stop asking.
D3D.Misc.GenerateTexture(DIPDev,&D3D.Chams.TexB,D3 D.Chams.CBack.ConvertToDWORD());//Create the ZBuffer Off Texture
Snippet of my Colorpicker(Thanks acid)
for the original thread: https://www.mpgh.net/forum/207-combat...or-picker.htmlCode:void cGUI::DrawColorPicker(LPDIRECT3DDEVICE9 pDevice,cButton &Button,COLOR &Col) { if(Button.Return && GUI.show){ if(SPRCR == true){ D3DXCreateTextureFromFileInMemory(pDevice,&Color,sizeof(Color),&D3D.Settings.MenuTexture); D3DXCreateSprite(pDevice,&D3D.Settings.Sprite); SPRCR = false; } D3D.Draw.Box(29,438,264,163,1,0x8D04A0A0,0xFF030303,pDevice,true,false); D3D.Draw.GameTextPixel(33,440,0xFF3DFFFF,"Color:"); D3D.Draw.FillRGB(62,442,135,11,Col.ConvertToDWORD(),pDevice,false); D3D.Draw.GameTextPixel(60,585,LightAvacado,"Thx ac1d_buRn for the Idea. Its not copied!"); D3DXVECTOR3 POS; POS.x = 33; POS.y = 457; POS.z = 0; D3D.Settings.Sprite->Begin(D3DXSPRITE_ALPHABLEND); D3D.Settings.Sprite->Draw(D3D.Settings.MenuTexture,NULL,NULL,&POS,0xFFFFFFFF); D3D.Settings.Sprite->End(); if(Hack.Readys.MouseIsIn(33,457,288,584)) { if(GetAsyncKeyState(1)<0) { HDC TheHDC = GetDC (NULL); DWORD Colors = GetPixel (TheHDC, Hack.Values.MousePos.x, Hack.Values.MousePos.y); ReleaseDC (NULL, TheHDC); Col.Alpha = 255; Col.Red = GetRValue (Colors); Col.Green = GetGValue (Colors); Col.Blue = GetBValue (Colors); } } RandomC.Draw(pDevice); if(RandomC.Return) { Col.Alpha = 255; Col.Red = Hack.Misc.GetRandomNumber(0,255); Col.Green = Hack.Misc.GetRandomNumber(0,255); Col.Blue = Hack.Misc.GetRandomNumber(0,255); RandomC.Return = false; } CloseC.Draw(pDevice); if(CloseC.Return){ Button.Return = false; CloseC.Return = false; } } else SPRCR = true; }
The Internet SHOULD Be Illegal
When you say
"Java is a great programming language because it works on all platforms"
it is just like
"anal sex is great because it works on all genders"
Are YOU a Troll?
Edit by Alessandro10
Work!
Last edited by Alessandro10; 03-02-2011 at 06:37 PM.
The Internet SHOULD Be Illegal
When you say
"Java is a great programming language because it works on all platforms"
it is just like
"anal sex is great because it works on all genders"
Are YOU a Troll?
You want to kno what would of been useful..... If it got the 4 Color types A, r, g, b for you from a DWORD... That is help
I just like programming, that is all.
Current Stuff:
- GPU Programmer (Cuda)
- Client/Server (Cloud Server)
- Mobile App Development
The Internet SHOULD Be Illegal
When you say
"Java is a great programming language because it works on all platforms"
it is just like
"anal sex is great because it works on all genders"
Are YOU a Troll?