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_3DI_Library v2.00 Component Reference

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

    [ TDx_3DVertexBuffer::ProcessVerticesStrided() ]     [ next: Unlock() ]     [ prev: ProcessVertices() ]

    public:

         virtual bool __fastcall ProcessVerticesStrided( dword pVertexOp, dword pDestIndex, dword pCount, TD3DDrawPrimitiveStridedData* pVertexArray, dword pSrcIndex, TDx_3DDevice* pD3DDevice, dword pFlags );





    -= Go to the TDx_3DVertexBuffer description =-    TDX_3DVERTEXBUFFER::PROCESSVERTICESSTRIDED()   [ component method ]

    • Description

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

        The destination buffer calls this method, effectively processing transformed strided vertices into itself from a source strided 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

        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.

        VertexArray
        The VertexArray parameter references a TD3DDrawPrimitiveStridedData component describing the vertices of the primitive to be processed.

        SrcIndex
        The SrcIndex parameter indicates where in the TD3DDrawPrimitiveStidedData component to begin processing vertices.

        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.

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


    • 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.