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_DrawPalette description =-   Component: TDX_DRAWPALETTE::GETCAPS()

    Go to the Welcome Page
    [ TDx_DrawPalette ]     [ next: GetEntries() ]     [ prev: Destroy() ]

    public:
         virtual bool __fastcall GetCaps( dword* pCaps );

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


    DESCRIPTION

    Top     Parameters     See Also

    The TDx_DrawPalette::GetCaps method will return the palette capabilities.

    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

      Caps
      The Caps parameter will reference the palette capabilities if this method returns successfully.
      The described effect applies when the flag is set.
      These flags are the same as those listed for TDDCaps::PalCaps.

        DDPCAPS_1BIT
        The palette index is 1 bit.
        There will be 2 color table entries.

        DDPCAPS_2BIT
        The palette index is 2 bit.
        There will be 4 color table entries.

        DDPCAPS_4BIT
        The palette index is 4 bit.
        There will be 16 color table entries.

        DDPCAPS_8BIT
        The palette index is 8 bit.
        There will be 256 color table entries.

        DDPCAPS_8BITENTRIES
        The palette index is an index to a 8-bit color index.
        This flag is only valid when the target surface is 8 bpp and either DDPCAPS_1BIT, DDPCAPS_2BIT or DDPCAPS_4BIT is set. Color entries are 8 bits and are indexes into the 8 bpp palette of the destination surface.

        DDPCAPS_ALLOW256
        The palette can have all 256 entries specified by the application.
        Entry 0 and entry 255 on 8-bit palettes are reserved for system use unless this flag is set.

        DDPCAPS_ALPHA
        The peFlags member of the associated PALETTEENTRY structure is to be interpreted as an 8-bit alpha value.
        Palettes utilizing this capability may only be attached to textures.

        DDPCAPS_PRIMARYSURFACE
        The palette is attached to the primary surface.
        Changes to the palette will be immediately apparent on the display unless DDPCAPS_VSYNC is set and supported.

        DDPCAPS_PRIMARYSURFACELEFT
        The palette is attached to the primary surface for the left eye.
        Changes to the palette will have an immediate effect on the left eye display unless DDPCAPS_VSYNC is set and supported.

        DDPCAPS_VSYNC
        The palette is capable of being modified synchronously with the monitor's refresh rate.





    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.