someguy Posted May 14, 2003 Posted May 14, 2003 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! Quote
AndreRyan Posted May 19, 2003 Posted May 19, 2003 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. Quote .Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?
ThePentiumGuy Posted May 29, 2003 Posted May 29, 2003 language? what language are you using? either way, if you have to specify a device , a device is something directdraw depends on if you're not sure, go to http://www.kuhnstall.de/tutorials/dx9sharp1.html and go to: directDraw theory, it explains everything clearly Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
AndreRyan Posted May 31, 2003 Posted May 31, 2003 He said "Mesh" and "Vertex Buffer" meaning Direct3D Quote .Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.