Welcome to
www.tdxlibrary.org
Home of the
the TDx_Library...
"RAD DirectX"
for
C++ Builder
...
|
TDx_Draw_Library v2.00 Component Reference
|
|
[ TDx_DrawSurface::DeleteAttachedSurface() ]
[ next: Destroy() ]
[ prev: CreateFromSurface() ]
public:
virtual bool __fastcall DeleteAttachedSurface( TDx_DrawSurface* pAttachedSurface );
TDX_DRAWSURFACE::DELETEATTACHEDSURFACE()
[ component method ]
- Description
The
TDx_DrawSurface::DeleteAttachedSurface
method
will
detach
attached
surfaces,
decrementing
the
reference
count
of
the
surface.
Surfaces
that
are
detached
are
not
released
unless
their
reference
count
is
reduced
to
0.
This
method
will
only
detach
attachments
explicitly
formed
using
TDx_DrawSurface::AddAttachedSurface().
Removing
surfaces
from
a
chain
may
change
the
attachment
order
or
designation
of
the
surfaces
remaining
in
that
chain.
For
example,
removing
a
front
buffer
causes
the
next
surface
in
the
chain
to
become
the
front
buffer
and
the
surface
after
that
to
become
the
back
buffer.
Detaching
a
back
buffer
causes
the
next
surface
in
the
chain
to
become
the
back
buffer
while
detaching
a
plain
surface
merely
shortens
the
chain.
Detaching
a
surface
from
a
chain
containing
two
surfaces
will
destroy
the
chain
and
return
the
surfaces
to
the
designations
they
had
prior
to
being
placed
in
the
chain.
If
the
method
call
fails,
the
OnError
event
will
be
triggered
with
one
of
the
following
values:
DDERR_CANNOTDETACHSURFACE
DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS
DDERR_SURFACELOST
DDERR_SURFACENOTATTACHED
- Parameters
AttachedSurface
The AttachedSurface parameter references the surface that is to be detached.
Set this parameter to NULL to detach all attached surfaces.
- See Also
- Top
If you would like to submit additions or improvements to this page, click: darren_john_dwyer@hotmail.com.
|
|