ZBUFFER question1

Started by
1 comment, last by oreste 9 years, 7 months ago
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?
Advertisement

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

Thanx!!

This topic is closed to new replies.

Advertisement