Archived

This topic is now archived and is closed to further replies.

Porting Open GL Code to Direct3D?

This topic is 5334 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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)

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites