BCB-Tools.com

Home of
RAD DirectX

C++ Builder wrapping DirectX

...

Please Register

So we can
create more

the TDx_Library
the TDx9_Library



Welcome to BCB-Tools.com Latest News

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

Register Here! Available Downloads

Frequently Asked Questions Discussion Forums Receive emails from BCB-Tools.com Send us some Feedback

Links to other sites Information about the BCB-Tools.com website


    TDx_Draw_Library v1.90 Component Reference

    -= Click to navigate the reference =-

    -= Go to the TDx_Draw description =-   Component: TDX_DRAW::ENUMSURFACES()

    Go to the Welcome Page
    [ TDx_Draw ]     [ next: EvaluateMode() ]     [ prev: EnumDisplayModes() ]

    public:
         virtual bool __fastcall EnumSurfaces( dword pFlags, TDDSurfaceDesc* pSurfaceDesc, void* pContext );

    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::EnumSurfaces method will enumerate any existing or possible surfaces compatible with a specfied surface description.

    Calling this method triggers the TDx_Draw::OnEnumSurfaces() event.

    When DDENUMSURFACES_CANBECREATED is set in the Flags parameter, an attempt is made to create a temporary surface meeting the enumeration critera.
    When DDENUMSURFACES_DOESEXIST is set in the Flags parameter, the reference count of each enumerated surface will be incremented.

    If you don't wish to utilize those surfaces, use TDx_DrawSurface::Release() to remove them after each enumeration is performed.

    If the method call fails, the OnError event will be triggered with one of the following values:
    DDERR_INVALIDOBJECT
    DDERR_INVALIDPARAMS




    PARAMETERS

    Top     See Also

      Flags
      The Flags parameter defines flags indicating how the enumeration is to employ the information referenced by the SD parameter of this method.
      The described effect applies when the flag is set.

        DDENUMSURFACES_ALL
        All surfaces that meet the search criterion will be enumerated.
        DDENUMSURFACES_DOESEXIST must also be set.

        DDENUMSURFACES_CANBECREATED
        The first surface that meets the search criterion and can be created will be enumerated.
        DDENUMSURFACES_MATCH must also be set.

        DDENUMSURFACES_DOESEXIST
        Only surfaces that already exist and meet the search criterion will be enumerated.

        DDENUMSURFACES_MATCH
        Only surfaces that match the surface description referenced by the SD parameter of this method will be enumerated.

        DDENUMSURFACES_NOMATCH
        Only surfaces that do not match the surface description referenced by the SD parameter of this method will be enumerated.

      SurfaceDesc
      The SurfaceDesc parameter references a TDDSurfaceDesc component defining the surface description to use for the enumeration.
      This parameter may be NULL when DDENUMSURFACES_ALL is set in the Flags parameter of this method.

      Context
      The Context parameter references an application defined object passed to the TDx_Draw::EnumSurfacesCallback() event for each surface enumerated.





    SEE ALSO

    Top     Parameters






























Top

Welcome |  Latest News |  Tools |  Demos |  Tutorials |  Reference |  Register |  Downloads
FAQ |  Forums |  Feedback |  Mailing List |  Links |  Site Information

This page is Copyright © 2008 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.