mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-14 03:09:08 +00:00
SSE2: Align CMatrix
This commit is contained in:
parent
2b9a54a503
commit
d6e1053a61
3 changed files with 5 additions and 2 deletions
|
@ -290,7 +290,7 @@ public:
|
||||||
* \param matrix transformation matrix
|
* \param matrix transformation matrix
|
||||||
* \param hotspot position of string origine
|
* \param hotspot position of string origine
|
||||||
*/
|
*/
|
||||||
void render3D (IDriver& driver,CMatrix matrix,THotSpot hotspot = MiddleMiddle);
|
void render3D (IDriver& driver, const CMatrix &matrix, THotSpot hotspot = MiddleMiddle);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@ class CPlane;
|
||||||
* \author Nevrax France
|
* \author Nevrax France
|
||||||
* \date 2000
|
* \date 2000
|
||||||
*/
|
*/
|
||||||
|
NL_ALIGN_SSE2
|
||||||
class CMatrix
|
class CMatrix
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -143,11 +143,13 @@ void CComputedString::render2D (IDriver& driver,
|
||||||
/*------------------------------------------------------------------*\
|
/*------------------------------------------------------------------*\
|
||||||
render3D()
|
render3D()
|
||||||
\*------------------------------------------------------------------*/
|
\*------------------------------------------------------------------*/
|
||||||
void CComputedString::render3D (IDriver& driver,CMatrix matrix,THotSpot hotspot)
|
void CComputedString::render3D (IDriver& driver, const CMatrix &matrixp, THotSpot hotspot)
|
||||||
{
|
{
|
||||||
if (Vertices.getNumVertices() == 0)
|
if (Vertices.getNumVertices() == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
CMatrix matrix = matrixp;
|
||||||
|
|
||||||
// get window size
|
// get window size
|
||||||
uint32 wndWidth, wndHeight;
|
uint32 wndWidth, wndHeight;
|
||||||
driver.getWindowSize(wndWidth, wndHeight);
|
driver.getWindowSize(wndWidth, wndHeight);
|
||||||
|
|
Loading…
Reference in a new issue