Welcome to
www.tdxlibrary.org
Home of the
the TDx_Library...
"RAD DirectX"
for
C++ Builder
...
|
TDx_3DI_Library v2.00 Component Reference
|
|
[ TDx_3DDevice::CreateStateBlock() ]
[ next: DeleteStateBlock() ]
[ prev: Create() ]
public:
virtual bool __fastcall CreateStateBlock( D3DSTATEBLOCKTYPE pType, dword* pBlockHandle );
TDX_3DDEVICE::CREATESTATEBLOCK()
[ component method ]
- Description
The
TDx_3DDevice::CreateStateBlock()
method
will
create
a
new
state
block
from
all
or
some
of
the
current
device
settings.
If
the
method
call
fails,
the
OnError
event
will
be
triggered
with
one
of
the
following
values:
D3DERR_INBEGINSTATEBLOCK
DDERR_INVALIDPARAMS
DDERR_OUTOFMEMORY
- Parameters
Type
The Type parameter defines the type of state data that the new state block should contain.
Possible values are:
D3DSBT_ALL for all states.
D3DSBT_PIXELSTATE for only pixel related states.
D3DSBT_VERTEXSTATE for only vertex related states.
Pixel states are those affecting pixel and depth buffer processing during rasterisation.
Vertex states are those affectiing vertex processing.
Some states are present in both the pixel and the vertex subgroups.
BlockHandle
The BlockHandle parameter will reference the new device state block if this method returns successfully.
- See Also
- Top
If you would like to submit additions or improvements to this page, click: darren_john_dwyer@hotmail.com.
|
|