[ TDx_Draw ]
[ next: DDEnumerate() ]
[ prev: CreatePalette() ]
public:
virtual bool __fastcall CreateSurface( TDDSurfaceDesc* pSurfaceDesc, TDx_DrawSurface* pSurface );
If you would like to submit additions or improvements to this page, click: admin@bcb-tools.com.
DESCRIPTION
Top
Parameters
See Also
The
TDx_Draw::CreateSurface
method
will
create
a
surface
to
be
used
by
the
TDx_Draw
component
calling
this
method.
If
the
method
call
fails,
the
OnError
event
will
be
triggered
with
one
of
the
following
values:
DDERR_INCOMPATIBLEPRIMARY
DDERR_INVALIDCAPS
DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS
DDERR_INVALIDPIXELFORMAT
DDERR_NOALPHAHW
DDERR_NOCOOPERATIVELEVELSET
DDERR_NODIRECTDRAWHW
DDERR_NOEMULATION
DDERR_NOEXCLUSIVEMODE
DDERR_NOFLIPHW
DDERR_NOMIPMAPHW
DDERR_NOOVERLAYHW
DDERR_NOZBUFFERHW
DDERR_OUTOFMEMORY
DDERR_OUTOFVIDEOMEMORY
DDERR_PRIMARYSURFACEALREADYEXISTS
DDERR_UNSUPPORTEDMODE
PARAMETERS
Top
See Also
SurfaceDesc
The SurfaceDesc parameter references a TDDSurfaceDesc component describing the surface to be created.
Unused properties of the component referenced by this parameter should be set to zero before this method is called.
Surface
The Surface parameter will reference the newly created surface if this method returns successfully.
SEE ALSO
Top
Parameters