------------------
Skullpture Entertainment
#40842461
🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
DirectX and Delphi
![](http://www.gamedev.net/community/forums/ubb/smile.gif)
Ofcuz, you can use DirectX in Delphi.
Hori has made a very good interface for DirectX called DelphiX, it comes with full source !
check it out. http://www.ingjapan.ne.jp/hori/index-e.html
You can also have a look at my site: http://www.microtower.com
- there you can find a link to the DelphiX Webring.
Good luck
CU
------------------
Skullpture Entertainment
#40842461
Are there more C/C++ resources for DirectX than Delphi resources? Yup. Does that affect "performance" either? Nope.
Use the development environment you are most productive using. DirectX will take care of itself.
------------------
DavidRM
Samu Games
And, with the performance, I originally meant using components. But that's another point.
CU
------------------
Skullpture Entertainment
#40842461
The DirectX architecture is COM. COM is defined similar to C++, but the marshalling that goes on "behind the scenes" in the DirectX interface is a system-level thing. Intentionally "language indenpendent." In the long run, it devolves to simply a calling an API.
Thus, how DirectX is called from one language is more or less the same as calling it from another.
------------------
DavidRM
Samu Games
My site is at http://www.neoteric.force9.co.uk/
It's for delphi game programmers, I'm not a tru authority on the subject, but I'd like people to join me and build a great site.
A full game will be available for people to disect real soon.
My problem now is that most calculations are quite slow from Delphi (or maybe I am doing things wrong). So, next task is accesing the DirectX surfaces from inline assembler code. ¿Any ideas? I managed to fill a screen with colors, but I have some problems with backbuffer pointers swapping. ¿Has someone worked with some ASM stuff over DirectX surfaces?
Thanks everyone,
------------------
Signed,
macl
The Lobocom Demoworld
"fantastic world of demos"
http://www.lobocom.es/unknown
I wanted to make complete tutorials, but I don't have much time, so if you have some remarks or comments mail-me.
The subjects of examples are : Direct Draw, Direct 3d Immediate Mode, Direct Sound...
You can find other source code in my project (french) : http://www.multimania.com/k42
Laurent MASCHERPA ___________________________
laurent.mascherpa@epita.fr
I can't tell which one is better. In some tests, VisualC seemed to be faster than Delphi, but in others Delphi is faster that VisualC. Ofcourse, this depends of the code you write, and how well optimized it is...