123456789101112131415161718192021222324252627282930 |
- // $Id$
- using System;
- using DataStructures;
- using OpenGl;
- namespace SceneGraph
- {
- /// <summary>
- /// A scene graph node which applies a transform to the current opengl
- /// transform (the matrix will be multiplied with the currently active
- /// tranform)
- /// </summary>
- public sealed class Transform : NodeWithChilds
- {
- public Matrix Matrix;
- public override unsafe void Draw(Gdk.Rectangle cliprect)
- {
- gl.PushMatrix();
- gl.MultMatrixf(Matrix.Elements);
- DrawChilds(cliprect);
- gl.PopMatrix();
- }
- }
- }
|