OnVertexBufferRangeInvalidated

From Multi Theft Auto: Wiki
Revision as of 13:44, 14 May 2017 by Xtravax (talk | contribs) (Created page with "<pageclass subcaption="C++ Function"></pageclass> This C++ Function is found inside of CAdditionalVertexStreamManager. It serves as an event when vertex buffer rage is i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This C++ Function is found inside of CAdditionalVertexStreamManager.

It serves as an event when vertex buffer rage is invalidated.

It can be found in Client/Client Core/Sources/CAdditionalVertexStreamManager.cpp in Visual Studio.

Required Arguments

  • pStreamData1: Pointer to the IDirect3DVertexBuffer9 type.
  • Offset: uint --.
  • Size: uint --.

Code

void CAdditionalVertexStreamManager::OnVertexBufferRangeInvalidated ( IDirect3DVertexBuffer9* pStreamData1, uint Offset, uint Size )
{
    SAdditionalStreamInfo* pAdditionalInfo = GetAdditionalStreamInfo ( pStreamData1 );
    if ( pAdditionalInfo )
    {
        pAdditionalInfo->ConvertedRanges.UnsetRange ( Offset, Size );
    }
}

See Also