Beispiel #1
0
const Matrix4f* Pipeline::GetTrans()
{
    Matrix4f ScaleTrans, RotateTrans, TranslationTrans;

    InitScaleTransform(ScaleTrans);
    InitRotateTransform(RotateTrans);
    InitTranslationTransform(TranslationTrans);

    m_transformation = TranslationTrans * RotateTrans * ScaleTrans;
    return &m_transformation;
}
Beispiel #2
0
void Matrix4f::InitTranslationTransform( const Vector3f& transform )
{
	InitTranslationTransform( transform.x, transform.y, transform.z );
}