Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


ZBUFFER question1


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 oreste   Members   -  Reputation: 149

Like
0Likes
Like

Posted 01 September 2014 - 11:08 AM

In the code i'm working on in my tut. the ZBUFFER is cleared in the following statement: Clear(0, NULL, D3DClear_ZBUFFER, D3DColor_XRGB(0, 0, 0), 1.0F, 0) What do the two last parameters (1.0f and 0) refer to?

Sponsor:

#2 megadan   GDNet+   -  Reputation: 664

Like
0Likes
Like

Posted 01 September 2014 - 11:51 AM

The 1.0f means it will set all values in the zbuffer to 1.0f.  The 0 is the value to store in the stencil buffer.  If you're not using a stencil buffer, it won't have an effect.

 

See http://msdn.microsoft.com/en-us/library/windows/desktop/bb174352(v=vs.85).aspx



#3 oreste   Members   -  Reputation: 149

Like
0Likes
Like

Posted 01 September 2014 - 01:25 PM

Thanx!!




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS