VCL RAD DirectX for C++ Builder

Welcome to

www.tdxlibrary.org

Home of the
the TDx_Library...

=- RAD DirectX =-

"RAD DirectX"
for
C++ Builder

...

Welcome to tdxlibrary.org Latest News

Development Tools Demo Applications Step-By-Step Tutorials Component Reference

Register our Tools Available Downloads

Frequently Asked Questions Links to other sites Information about the tdxlibrary.org website


    TDx_Draw_Library v2.00 Component Reference

    -= Click to navigate the reference =-
    Go to the Welcome Page

    [ TDx_DrawSurface::DeleteAttachedSurface() ]     [ next: Destroy() ]     [ prev: CreateFromSurface() ]

    public:

         virtual bool __fastcall DeleteAttachedSurface( TDx_DrawSurface* pAttachedSurface );





    -= Go to the TDx_DrawSurface description =-    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.



























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.