Solved

Direct3D

Posted on 2011-09-14
4
488 Views
Last Modified: 2013-12-21
OK so pretty much I'm lost with some D3D issues.  I've gotten everything except being able to draw a background.  This is for a GUI and whenever I draw a box for the background it draws all over everything else.  Any suggestions?
0
Comment
Question by:dxanon
  • 2
4 Comments
 
LVL 13

Expert Comment

by:themrrobert
ID: 36538134
draw the background first, you must draw the objects in order
0
 

Author Comment

by:dxanon
ID: 36538196
I see that...to give you a bit of background I'm a programmer for a rather large company and we produce NVR software.  I wish I could post the code here but it would be against our policy.  It's a pretty complex application -- I'm familiar with everything except DirectX -- and it's just killing me.  Where would you at least put the function for drawing a background?
0
 
LVL 13

Accepted Solution

by:
themrrobert earned 500 total points
ID: 36538239
I assume that you have a function/object called updateScreen() or similar somewhere near the top of your main loop.

I haven't working with directX since version 8 so i'm a bit rusty, but you should draw the objects in the z order in which they should appear.

Inside the updateScreen() function should be ALL of the dx drawing  commands. You can use variables to logically choose which objects to draw, but they should all be encapsulated this way to ensure you aren't drawing over yourself.

Hopefully this can help you, we both knows its hard without the original code
0
 
LVL 12

Expert Comment

by:satsumo
ID: 37060339
This question is quite old, are you still looking for an answer?  I could probably help.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question