Commit 5c3e9500 authored by cutealien's avatar cutealien

Add vector3d::getAs3Values (patch provided by slavik262)


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3441 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 5db243df
Changes in 1.8 (??.0?.2010)
- Add vector3d::getAs3Values (patch provided by slavik262)
- Add function to SViewFrustum to get corners of the near plane (patch provided by Matt Kline, aka slavik262)
- ParticleFadeOutAffector::setFadeOutTime can no longer be set to invalid values
......
......@@ -394,6 +394,16 @@ namespace core
array[3] = 0;
}
//! Fills an array of 3 values with the vector data (usually floats).
/** Useful for setting in shader constants for example.*/
void getAs3Values(T* array) const
{
array[0] = X;
array[1] = Y;
array[2] = Z;
}
//! X coordinate of the vector
T X;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment