Skip to main content
GameDev.net gamedev.net
🔒 Locked

Porting Open GL Code to Direct3D?

Started by GaryBartlett May 7, 2003 at 3:33 AM 3 replies 350+ views
Original Post
GaryBartlett
GaryBartlett
Is it very difficult to do? iv''e just bought game programming gems 1,its not here yet but on its way. Anyway,in my foolish rush to buy it based on all the reviews,i didn''t notice the part that it uses open gl for the code on the cd. I haven''t learnt open gl,and only know how to use Direct 3D. Is there any info on porting around. Thanks.
Trienco
Trienco
that shouldnt matter.. if you understand how d3d works then you''ll just have to look at their code to realize that opengl works pretty much the same. different syntax and not object oriented but 3d graphics work the same no matter which api ,-)

a small difference is that opengl has translate and rotate functions that directly change the matrix and work in local space, where d3d rather returns matrices for a transformation and lets you multiply yourself (and if i remember right, then this works in global space)
f@dzhttp://festini.device-zero.de
GaryBartlett
GaryBartlett
hopefully i''ll be be ok then.
Do you have the book? is it as good as the the reviews say?
i hear that the AI section is superb.
Thanks.
Trienco
Trienco
hehe.. thats just the section i didnt look at too carefully. i have all 3 standing here and usually every book had at least a few articles that were worth it
f@dzhttp://festini.device-zero.de
Dobbs
Dobbs
I got GPG when I was just beginning game programming, and while a bunch of it was over my head it really got me thinking and whetted my appetite for the subject. I''m definitely glad I bought it.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.