BCB Components rotating around DirectX

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


    COMPONENT REFERENCE

    Go to the description    TDX_3DVERTEXBUFFER::PROCESSVERTICIES()

    Go to the Welcome Page
    [ TDx_3DVertexBuffer ]     [ next: ProcessVerticiesStrided() ]     [ prev: Optimize() ]

    public:
         virtual bool __fastcall ProcessVerticies( dword pVertexOp, dword pDestIndex, dword pCount, TDx_3DVertexBuffer* pSrcBuffer, dword pSrcIndex, TDx_3DDevice* pD3DDevice, dword pFlags );

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


    DESCRIPTION

    Top     Parameters     See Also

    The TDx_3DVertexBuffer::ProcessVertices() method processes or moves vertices from one vertex buffer to another.

    The destination buffer calls this method, effectively processing transformed vertices into itself from a source vertex buffer.
    Processing consists of applying the transformation matrices of the TDx_3DDevice plus optional clipping, lighting and extents processing.

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




    PARAMETERS

    Top     See Also

      VertexOp
      The VertexOp parameter indicates how to process vertices as they are transferred.
      The described effect applies when the flag is set.

        D3DVOP_CLIP
        Transform and clip vertices using the viewing frustrum.
        Cannot be set for vertex buffers without clipping information.
        eg: those with D3DVBCAPS_DONOTCLIP set.

        D3DVOP_EXTENTS
        Transform and update the screen rectangle extents when the vertices are rendered.

        May improve performance, but the TDx_3DDevice::GetClipStatus() extents are not updated when this technique is employed.

        D3DVOP_LIGHT
        Transform and light the vertices.

        D3DVOP_TRANSFORM
        Transform the vertices using the world, view and projection matrices of the TDx_3DDevice.

        This flag must always be set or the method will fail, returning DDERR_INVALIDPARAMS.

      DestIndex
      The DestIndex parameter indicates where processed vertices are to be placed in this, the destination buffer.

      Count
      The Count parameter defines how many of the source buffer vertices to process.

      SrcBuffer
      The SrcBuffer parameter references the source TDx_3DVertexBuffer.

      SrcIndex
      The SrcIndex parameter indicates where in the source buffer to begin processing.

      D3DDevice
      The D3DDevice parameter references the TDx_3DDevice that is being used to transform the vertices.

      Flags
      The Flags parameter indicates whether unmodified vertices should be transferred.
      The described effect applies when the flag is set.

      Set 0 for default processing, which is still copy vertices unmodified by the current vertex operation from the source to the destination buffer.

        D3DPV_DONOTCOPYDATA
        Copy only those vertices modified in the current vertex operation to the destination buffer.





    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 © 2003 BCB-Tools.com Pty. Ltd., Sydney, Australia. All Rights Reserved.
Borland C++ Builder, CBuilder, etc are Trademarks of Borland Corporation.
DirectX, DirectDraw, Windows, etc are Trademarks of Microsoft Corporation.