| View previous topic :: View next topic |
| Author |
Message |
peter4d5 Cheater
Reputation: 0
Joined: 21 Dec 2010 Posts: 37
|
Posted: Fri Jun 14, 2013 9:42 pm Post subject: ask about IDirect3D9 |
|
|
from CE
| Code: | hr=d3d9->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, x, D3DCREATE_SOFTWARE_VERTEXPROCESSING, &d3dpp, &d3d9device);
uintptr_t *a=(uintptr_t *)*(uintptr_t *)d3d9device;
|
and what's it 'a' in delphi?
| Code: | var
3d9: IDirect3D9;
d3dpp: TD3DPresent_Parameters;
d3d9device : IDirect3DDevice9;
a : PDwordArray;
begin
hr := 3d9.CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, x , D3DCREATE_SOFTWARE_VERTEXPROCESSING, @d3dpp,d3d9device);
a := |
thank you.
_________________
my name is peter4d5 |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Fri Jun 14, 2013 10:49 pm Post subject: |
|
|
Something like this:
a := pointer(pointer(dword(d3d9device^);
I don't code in Delphi at all, used Google to figure out how to handle pointers in Delphi. Not sure if you will need to adjust the type of a though.
_________________
- Retired. |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25824 Location: The netherlands
|
Posted: Sat Jun 15, 2013 3:25 am Post subject: |
|
|
PPtruintarray(d3d9device)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
|