Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / GlobStruct question about bitmaps.

Author
Message
Freddix
AGK Developer
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 18th Apr 2007 15:31
I've found this in the globstruct:
iCurrentBitmapNumber.l : pCurrentBitmapTexture.l : pCurrentBitmapSurface.l
pHoldBackBufferPtr.l : pHoldDepthBufferPtr.l
dwBSDSpare1.l : dwBSDSpare2.l : dwBSDSpare3.l : dwBSDSpare4.l : dwBSDSpare5.l
(Definition are shown in PureBASIC format )

What does pCurrentBitmapTexture, pCurrentBitmapSurface, pHoldBackBufferPtr, pHoldDepthBufferPtr are exactly ?pointer to memory areas ? structure ? function like CreateDeleteString ?

Thanks.

Gandalf said: "All we have to decide is what to do with the time that is given to us"
Odyssey-Creators - X-Quad Editor - 3DMapEditor
Mod
18
Years of Service
User Offline
Joined: 8th Oct 2005
Location: France
Posted: 18th Apr 2007 18:59
Start with a "p" -> Pointers.

I don't think I'm wrong for these two (but not sure ) :

pCurrentBitmapTexture is a pointer to a DirectX9 Texture uses as the current bitmap in DBPro, object pointer.
pCurrentBitmapSurface is a pointer to a DirectX9 Surface uses as a render surface, it's an object pointer too.
Freddix
AGK Developer
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 18th Apr 2007 19:23
yes but they're equal to 0 when I try to read them.

Gandalf said: "All we have to decide is what to do with the time that is given to us"
Odyssey-Creators - X-Quad Editor - 3DMapEditor
Mod
18
Years of Service
User Offline
Joined: 8th Oct 2005
Location: France
Posted: 19th Apr 2007 20:46
Have you kept original types of these pointers ?

It's something like LPDIRECT3DTEXTURE9 and LPDIRECT3DSURFACE9. You'll need the DirectX SDK to exploit them.
Freddix
AGK Developer
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 21st Apr 2007 10:56
@Mod: I have the SDK installed but it does not explain why they're equal to 0

Gandalf said: "All we have to decide is what to do with the time that is given to us"
Odyssey-Creators - X-Quad Editor - 3DMapEditor
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 25th Apr 2007 07:35
Either, you have not retrieved the globstruct, or perhaps, you need to include the bitmap dll.

Cheers,

-db


There is a very fine line between hobby and mental illness.
Freddix
AGK Developer
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 25th Apr 2007 18:19
@DB User 2006+

I have the latest globstruct and Bitmap DLL is included cos in the DBPro source code that use the plugin I try to create that check theses uses fonctions from DBPROBITMAPDEBUG.DLL ...

Gandalf said: "All we have to decide is what to do with the time that is given to us"
Odyssey-Creators - X-Quad Editor - 3DMapEditor

Login to post a reply

Server time is: 2024-05-20 17:53:20
Your offset time is: 2024-05-20 17:53:20