www.BCB-Tools.com

Home of
RAD DirectX
for
C++ Builder

...

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 Welcome Page

    [ TDx_DrawSurface::SetPrivateData() ]     [ next: SetSurfaceDesc() ]     [ prev: SetPriority() ]

    public:

         virtual bool __fastcall SetPrivateData( REFGUID pTag, void* pData, dword pSize, dword pFlags );





    -= Go to the TDx_DrawSurface description =-    TDX_DRAWSURFACE::SETPRIVATEDATA()   [ component method ]

    • Description

        The TDx_DrawSurface::SetPrivateData method will associate application specific data with the surface.

        Multiple sets of data may be associated with a surface.

        The memory referenced by the Data parameter is not managed by TDx_Draw, so if the buffer was dynamically allocated, it is the applications responsibility to free the memory.

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

    • Parameters

        Tag
        The Tag parameter references the GUID of the private data that is to be set.

        Data
        The Data parameter references the buffer holding the private data that is to be associated with the surface.

        Size
        The Size parameter defines the size, in bytes, of the buffer referenced by the Data parameter of this method.

        Flags
        The Flags parameter defines flags indicating the type of data being associated and its lifetime.
        The described effect applies when the flag is set.
        Setting no flags causes the data to be stored in a buffer allocated by TDx_Draw, which will be freed when appropriate.

          DDSPD_IUNKNOWNPOINTER
          The information referenced by the Data parameter of this method references an IUnknown interface.
          The interface's reference count will be incremented and then decremented when the data is no longer needed.

          DDSPD_VOLATILE
          The data being associated will only remain valid until the current state of the surface changes.
          Attempts to retrieve the data after the surface has changed will return DDERR_EXPIRED.


    • See Also
    • Top





    If you would like to submit additions or improvements to this page, click: admin@bcb-tools.com.



























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.