Rendering/CM2Light: Difference between revisions

From wowdev
Jump to navigation Jump to search
(Created page with "=== CM2Light::SetDirection === <syntaxhighlight lang="cpp"> void __thiscall CM2Light::SetDirection(CM2Light *this, const C3Vector& dir) { this->m_dir = *dir; C3Vector::...")
 
m (Stubbing CM2Light::SetPosition)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:


<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">
void __thiscall CM2Light::SetDirection(CM2Light *this, const C3Vector& dir) {
void __thiscall CM2Light::SetDirection(CM2Light *this, const C3Vector &dir) {


   this->m_dir = *dir;
   this->m_dir = *dir;
Line 10: Line 10:
}
}
</syntaxhighlight>
</syntaxhighlight>
=== CM2Light::SetPosition ===
TODO

Latest revision as of 15:16, 28 August 2017

CM2Light::SetDirection

void __thiscall CM2Light::SetDirection(CM2Light *this, const C3Vector &dir) {

  this->m_dir = *dir;

  C3Vector::normalize(this->m_dir);

}

CM2Light::SetPosition

TODO