Back to class index
DepthState[Class Summary]
stateID
depthTestEnabled
depthWriteEnabled
depthFunc
ctor (+1 overload)
~dtor
Create(...)
Deinit()
ReComputeStateID()

DepthState::Create

Syntax

void DepthState::Create(bool depthTestEnabled, bool depthWriteEnabled, DepthCmpFunc depthFunc);

Recreates this state object to the given Z-buffering state options.

Parameters

booldepthTestEnabledIf true, rasterized pixels are tested against the depth buffer for visibility. If false, all rendered pixels pass the depth test. booldepthWriteEnabledIf true, each rasterized pixel that passed the depth test updates the depth buffer with its own depth. If false, Z-buffer is not modified during rendering. DepthCmpFuncdepthFuncThe comparison operator to use during the depth test stage.

Leave a Comment

Name:
Comments:
Captcha:captcha image Type in the black symbols:
Back to class index