Original Post
Hi
I''ve been programming using OpenGL for a while now, but I want to get started with Direct3D. Ideally, my new engine will use a plugin system, so you can choose to render with either OpenGL or D3D, and to the main program, they''re both the same.
So I have a couple of questions about D3D from a OGL programmer''s perspective:
- can you use arrays of data, like compiled vertex arrays, or arrays of vertices, normals, etc? These can really speed things up with OpenGL, and I''d like to use the same data structures with both rendering engines.
- how does D3D handle textures? As far as storing them, generating them, loading them from a file, etc, I mean.
- I''m not really sure what other things I''m going to have to ask. Can anyone give me a good idea of the main differences - from a programming point of view - I''m not trying to make a DirectX vs OpenGL debate, I just want to know what problems I''m likely to run into when trying to have one program, one data set, etc, that uses both of them.
Thanks,
David.