Must I specify a device?

someguy

Newcomer
Joined
May 9, 2003
Messages
2
I'm trying to use DirectX on a project to create a simplified graphics API for beginner programmers. In my efforts, I've come across a very frustrating feature of DirectX, i.e. when I specify a vertex buffer or mesh, I must specify the device upon construction of a mesh object. I would like to leave this field blank, ideally, and then specify the device later - sometime before rendering (the idea is that the rendered objects might be sent to different devices). Is there any way to do this?

thanks!
 
Passing the Device is compulsory, the mesh needs to write values to the Video RAM or System RAM are the name of the specified Device object. You could just create the meshes just before the first rendering pass, the user could que up meshes and they'll be created when their used the first time.
 
Back
Top