Solved

Direct3D

Posted on 2011-09-14
4
492 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

626 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