Jump to content
  • Advertisement
Sign in to follow this  

DirectX Drawing

This topic is 4411 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, I've been agonizing over this question about about DirectX for some time now. When one calls a draw function, let's say for a line(line.draw), which object type does it draw to and where is this object located? My guess is that it would be located somewhere in the Device but of what type the object is eludes me(maybe some Surface or Texture?). The reason I ask is because I'm doing many line.draws for stationary lines and it would be much more efficient to draw the lines only once to, say a Surface, obtain and save that Surface, and then just give that Surface to the Device before the Device renders. The issue is that all of this is speculative, and probably wrong since I've tried a few things and none of them have worked. It would also help if anyone had a good website(other than MSDN) that has detailed info on what the members and functions of the Device do. Thanks in advance for your help.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!