Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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!

Posted
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.
.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?
  • 2 weeks later...
Posted

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

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

Posted
He said "Mesh" and "Vertex Buffer" meaning Direct3D
.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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...