Welcome to
www.tdxlibrary.org
Home of the
t
h
e
T
D
x
_
L
i
b
r
a
r
y
...
"
R
A
D
D
i
r
e
c
t
X
"
for
C++ Builder
...
TDx_Draw_Library v2.00 Component Reference
[
TDx_DrawSurface
::SetSurfaceDesc() ] [ next:
Unlock()
] [ prev:
SetPrivateData()
]
public:
virtual bool __fastcall SetSurfaceDesc(
TDDSurfaceDesc
* pSD );
TD
X_
D
RAW
S
URFACE::
S
ET
S
URFACE
D
ESC() [ component method ]
Description
The TDx_DrawSurface::SetSurfaceDesc method will modify the surface description of an existing surface.
Surface data and
pixel formats
can currently only be set for explicitly created system memory
surfaces
.
The application must allocate the new surface memory and thus must deallocate it also.
The surface memory allocated by TDx_Draw when the surface was originally created will be released.
If the method call fails, the OnError event will be triggered with one of the following values:
DDERR_INVALIDPARAMS
DDERR_INVALIDOBJECT
DDERR_SURFACELOST
DDERR_SURFACEBUSY
DDERR_INVALIDSURFACETYPE
DDERR_INVALIDPIXELFORMAT
DDERR_INVALIDCAPS
DDERR_UNSUPPORTED
DDERR_GENERIC
Parameters
SD
The SD parameter references a
TDDSurfaceDesc
component holding the
surface
description to be set.
See Also
TDx_DrawSurface
TDDSurfaceDesc
TDx_DrawSurface::OnSurfaceLost()
Top
If you would like to submit additions or improvements to this page, click:
darren_john_dwyer@hotmail.com
.
Top
Welcome
|
Latest News
|
Tools
|
Demos
|
Tutorials
|
Reference
|
Register
|
Downloads
FAQ
|
Links
|
Site Information
This page is
Copyright
© 2019 Darren John Dwyer, Australia. All Rights Reserved.
Borland C++ Builder, CBuilder, etc are
Trademarks
of
Borland Corporation
.
DirectX, DirectDraw, Windows, etc are
Trademarks
of
Microsoft Corporation
.