-
-// Deprecated stuff
-
-MatrixStack *active_stack = &MatrixStack::modelview();
-
-void matrix_mode(MatrixMode m)
-{
- if(m==MODELVIEW)
- active_stack = &MatrixStack::modelview();
- else if(m==PROJECTION)
- active_stack = &MatrixStack::projection();
- else
- throw InvalidParameterValue("Texture matrices are not supported");
-}
-
-void load_identity()
-{
- *active_stack = Matrix();
-}
-
-void load_matrix(const float *matrix)
-{
- *active_stack = Matrix(matrix);
-}
-
-void load_matrix(const double *matrix)
-{
- *active_stack = Matrix(matrix);
-}
-
-void mult_matrix(const float *matrix)
-{
- *active_stack *= Matrix(matrix);
-}
-
-void mult_matrix(const double *matrix)
-{
- *active_stack *= Matrix(matrix);
-}
-
-void push_matrix()
-{
- active_stack->push();
-}
-
-void pop_matrix()
-{
- active_stack->pop();
-}
-
-void translate(float x, float y, float z)
-{
- *active_stack *= Matrix::translation(x, y, z);
-}
-
-void rotate(float a, float x, float y, float z)
-{
- *active_stack *= Matrix::rotation_deg(a, x, y, z);
-}
-
-void scale(float x, float y, float z)
-{
- *active_stack *= Matrix::scaling(x, y, z);
-}
-
-void scale_uniform(float s)
-{
- *active_stack *= Matrix::scaling(s);
-}
-