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::ValidateDevice() ]
[ prev: SetViewPort() ]
public:
virtual bool __fastcall ValidateDevice( dword* pPasses );
TDX_3DDEVICE::VALIDATEDEVICE()
[ component method ]
- Description
The
TDx_3DDevice::ValidateDevice()
method
will
check
if
the
device
can
render
the
currently
set
render
states,
textures
and
texture
stage
states
in
one
pass.
You
can
determine
if
a
specific
blending
operation
can
be
performed
by
setting
it
up
and
calling
this
method.
Since
this
method
uses
the
current
render
state,
texture
states
and
textures,
modifications
to
those
values
may
invalidate
the
results
of
previous
ValidateDevice
calls.
Try
to
specify
the
texture
(D3DTA_TEXTURE)
for
each
stage
as
the
1st
argument
rather
than
the
second.
At
the
time
Dx7
was
published:
Diffuse
iterated
values
as
an
argument
or
operation
(D3DTA_DIFFUSE
or
D3DTOP_BLENDDIFFUSEALPHA)
were
rarely
supported,
iterated
color
data
often
only
being
introduceable
at
the
last
texture
stage.
Diffuse
or
scalar
values
at
arbitrary
texture
stages
were
rarely
supported,
more
often
it
was
required
that
they
be
applied
to
the
first
or
last
texture
stage.
Alpha
operations
that
were
intricate
or
substantially
different
to
the
color
operations
were
less
likely
to
be
supported.
Often
cards
only
have
a
simple
blending
unit
associated
with
the
first
texture,
so
you
may
need
to
only
use
the
2nd
texture
stage,
setting
D3DTA_TEXTURE
->
D3DTOP_SELECTARG1
for
the
first
one.
Sometimes
simultaneous
use
of
D3DTA_TFACTOR
and
D3DTA_DIFFUSE
is
unsupported.
Sometimes
simultaneous
multitexture
blending
and
mipmapped
trilinear
filtering
is
unsupported,
try
turning
off
trilinear
and
revalidating.
Maybe
use
multipass
rendering
instead.
If
the
method
call
fails,
the
OnError
event
will
be
triggered
with
one
of
the
following
values:
DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS
D3DERR_CONFLICTINGTEXTUREFILTER
D3DERR_CONFLICTINGTEXTUREPALETTE
D3DERR_TOOMANYOPERATIONS
D3DERR_UNSUPPORTEDALPHAARG
D3DERR_UNSUPPORTEDALPHAOPERATION
D3DERR_UNSUPPORTEDCOLORARG
D3DERR_UNSUPPORTEDCOLOROPERATION
D3DERR_UNSUPPORTEDFACTORVALUE
D3DERR_UNSUPPORTEDTEXTUREFILTER
D3DERR_WRONGTEXTUREFORMAT
- Parameters
Passes
The Passes parameter will reference the number of rendering passes required to complete the currently defined operation.
- See Also
- Top
If you would like to submit additions or improvements to this page, click: darren_john_dwyer@hotmail.com.
|
|