2 questions - DirectX & OpenPureBasic

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by wrtyler.

I can create a triangle in a window using the OpenGL commands. Is it possible to do the same thing with DirectX commands? I want to do this with real geometry, not using a sprite.

I came across the mention of OpenPureBasic which converts C/C++ files into PureBasic. It appears that it is/was an Amiga program. Does this exist anymore? And is there some equivalent program for Windoze?

regards,
wayne
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

It's still exist on the amiga but was not ported to PC. Windows header are much harder to convert than AmigaOS one so I don't plan to port it for now.

Foir directX, you can call it with the help of CallCOM() command. Not easy tough.

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by wrtyler.

Thank you for the info. I'm off to investigate CallCOM.

regards,
wayne
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by wrtyler.

I need a little more help on my DirectX problem.

I am trying to use CallCOM, on Fred's suggestion. I have read everything on the forums about it, but I'm still confused. I understand what information you are supposed to have before using CallCOM(), but what I am missing is where to get that info.

For example, this is from one of Danilo's postings:

#ShellLink_QueryInterface = 0
#ShellLink_AddRef = 4
#ShellLink_Release = 8
#ShellLink_GetPath = 12
#ShellLink_GetIDList = 16
#ShellLink_SetIDList = 20

Where do you find out what the order of the above listing is supposed to be? How do I find out the #ShellLink_AddRef is supposed to equal 4 and not 8 or 12?

I have VC++ and MSDN. I have looked through the header files and the documentation, but have not seen where the info is kept.

Please remember that the above is just an example. What I am really trying to do is draw a triangle in a window using real geometry (as opposed to sprites) with DirectX. And yes, I know that it is much easier to do with OpenGL, but I want to learn more about DirectX.

regards,
wayne
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

Danilo had done a full DirectDraw example somewhere.. May be he can point it out to you ?

Fred - AlphaSND
Post Reply