www.BCB-Tools.com
Home of
RAD DirectX
for
C++ Builder
...
...
Please Register
So we can
create more
the TDx_Library
the TDx9_Library
|
TDx_Draw_Library v1.90 Component Reference
|
|
[ TDx_Draw::DuplicateSurface() ]
[ next: EnumDisplayModes() ]
[ prev: Destroy() ]
public:
virtual bool __fastcall DuplicateSurface( TDx_DrawSurface* pSurface, TDx_DrawSurface* pDupSurface );
TDX_DRAW::DUPLICATESURFACE()
[ component method ]
- Description
The
TDx_Draw::DuplicateSurface
method
will
duplicate
an
existing
surface.
The
new
surface
will
reference
the
same
surface
memory
as
the
existing
surface
and
function
in
an
identical
manner
to
the
original.
The
surface
memory
will
be
released
when
there
is
no
longer
anything
referencing
it.
Primary,
3-D
or
implicitly
created
surfaces
cannot
be
duplicated.
If
the
method
call
fails,
the
OnError
event
will
be
triggered
with
one
of
the
following
values:
DDERR_CANTDUPLICATE
DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS
DDERR_OUTOFMEMORY
DDERR_SURFACELOST
- Parameters
Surface
The Surface parameter references an existing surface that is to be duplicated.
DupSurface
The DupSurface parameter will reference the duplicate surface if this method returns successfully.
- See Also
- Top
If you would like to submit additions or improvements to this page, click: [email protected].
|
|