Exemplo n.º 1
0
	void PrimitiveBatch::begin_3d(const Matrix44& view_proj)
	{
		R_ASSERT(m_ready_to_draw==false);
		Matrix44 mat_transposed = view_proj.transposed();
		m_vsc_mat_viewproj[0] = mat_transposed.rows[0];
		m_vsc_mat_viewproj[1] = mat_transposed.rows[1];
		m_vsc_mat_viewproj[2] = mat_transposed.rows[2];
		m_vsc_mat_viewproj[3] = mat_transposed.rows[3];
		m_ready_to_draw = true;
	}
Exemplo n.º 2
0
void OpenGLTools::glMultMatrixMatrix44(const Matrix44 &p)
{
    glMultMatrixd(p.transposed().element);
}