Well, I usually do OpenGL, but I figure it could be useful to learn D3D too, so I've started to look into it. So far I've gotten a colored triangle on the screen
Anyway, do I have to use vertex buffers? Are there no equivalent to glVertex3f() or something like that? It seams like overkill and a waste of time to use vertex buffers for simple test apps. Also, the options how to create the vertex buffers seams limited to me, only interleaved arrays with predefined datatypes and predefined ordering as far as I can tell, even Glide were more flexible than that :/
Btw, do anyone know the rationale why Direct3D have backface culling and lighting enabled by default? It seams like a good way to waste the beginners time trying to figure out why nothing comes out on the screen. Not until I changed the clear color to blue I saw that I actually got a triangle on the screen, but it was black instead of gourad shaded, had to actively disable lighting for it to work.
Anyway, do I have to use vertex buffers? Are there no equivalent to glVertex3f() or something like that? It seams like overkill and a waste of time to use vertex buffers for simple test apps. Also, the options how to create the vertex buffers seams limited to me, only interleaved arrays with predefined datatypes and predefined ordering as far as I can tell, even Glide were more flexible than that :/
Btw, do anyone know the rationale why Direct3D have backface culling and lighting enabled by default? It seams like a good way to waste the beginners time trying to figure out why nothing comes out on the screen. Not until I changed the clear color to blue I saw that I actually got a triangle on the screen, but it was black instead of gourad shaded, had to actively disable lighting for it to work.