<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/UpdateCurrentStateInfo?action=history&amp;feed=atom</id>
	<title>UpdateCurrentStateInfo - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/UpdateCurrentStateInfo?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=UpdateCurrentStateInfo&amp;action=history"/>
	<updated>2026-05-12T23:42:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=UpdateCurrentStateInfo&amp;diff=50997&amp;oldid=prev</id>
		<title>Xtravax: Created page with &quot;&lt;pageclass subcaption=&quot;C++ Function&quot;&gt;&lt;/pageclass&gt;  This C++ Function is found inside of CAdditionalVertexStreamManager.  It updates current state info.  It can be found in...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=UpdateCurrentStateInfo&amp;diff=50997&amp;oldid=prev"/>
		<updated>2017-05-14T13:32:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pageclass subcaption=&amp;quot;C++ Function&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;  This C++ Function is found inside of &lt;a href=&quot;/wiki/CAdditionalVertexStreamManager&quot; title=&quot;CAdditionalVertexStreamManager&quot;&gt;CAdditionalVertexStreamManager&lt;/a&gt;.  It updates current state info.  It can be found in...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pageclass subcaption=&amp;quot;C++ Function&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This C++ Function is found inside of [[CAdditionalVertexStreamManager]].&lt;br /&gt;
&lt;br /&gt;
It updates current state info.&lt;br /&gt;
&lt;br /&gt;
It can be found in '''Client/Client Core/Sources/CAdditionalVertexStreamManager.cpp''' in Visual Studio.&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
*'''state:''' To be defined.&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns a boolean value whether current state info was updated or not.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c++&amp;quot;&amp;gt;&lt;br /&gt;
bool CAdditionalVertexStreamManager::UpdateCurrentStateInfo ( SCurrentStateInfo&amp;amp; state )&lt;br /&gt;
{&lt;br /&gt;
    // Get vertex declaration&lt;br /&gt;
    if ( FAILED( m_pDevice-&amp;gt;GetVertexDeclaration ( &amp;amp;state.decl.pVertexDeclaration ) ) )&lt;br /&gt;
        return false;&lt;br /&gt;
&lt;br /&gt;
    // Get vertex declaration desc&lt;br /&gt;
    if ( state.decl.pVertexDeclaration )&lt;br /&gt;
    {&lt;br /&gt;
        if ( FAILED( state.decl.pVertexDeclaration-&amp;gt;GetDeclaration ( state.decl.elements, &amp;amp;state.decl.numElements ) ) )&lt;br /&gt;
            return false;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    // Get vertex stream&lt;br /&gt;
    if ( FAILED( m_pDevice-&amp;gt;GetStreamSource ( 1, &amp;amp;state.stream1.pStreamData, &amp;amp;state.stream1.OffsetInBytes, &amp;amp;state.stream1.Stride ) ) )&lt;br /&gt;
        return NULL;&lt;br /&gt;
&lt;br /&gt;
    // Get vertex stream desc&lt;br /&gt;
    if ( state.stream1.pStreamData )&lt;br /&gt;
    {&lt;br /&gt;
        if ( FAILED( state.stream1.pStreamData-&amp;gt;GetDesc ( &amp;amp;state.decl.VertexBufferDesc1 ) ) )&lt;br /&gt;
            return false;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    return true;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
*[[CAdditionalVertexStreamManager]]&lt;/div&gt;</summary>
		<author><name>Xtravax</name></author>
	</entry>
</feed>