Porting Open GL Code to Direct3D?

Started by
3 comments, last by GaryBartlett 20 years, 11 months ago
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.
Advertisement
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
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.
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
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.

This topic is closed to new replies.

Advertisement