Matrix44 toMatrix44(const btTransform& original)
			{
				Matrix44 matrix;
				original.getOpenGLMatrix(matrix.getData());

				return matrix;
			}
Example #2
0
void Direct3D10Shader::setVar(const string& name, const Matrix44& value)
{
	Matrix44 columnMajorValue = value;
	columnMajorValue.transpose();

	effect->GetVariableByName(name.data())->AsMatrix()->SetMatrix(columnMajorValue.getData());
}
			btTransform toBtTransform(const Matrix44& original)
			{
				btTransform transform;
				transform.setFromOpenGLMatrix(original.getData());

				return transform;
			}