Esempio n. 1
0
        public unsafe void DrawBox(bool drawChildren, bool bindBox)
        {
            Box box = bindBox ? _extents : GetBox();

            if (bindBox)
            {
                GL.MatrixMode(MatrixMode.Modelview);
                GL.PushMatrix();

                fixed(Matrix *m = &_frameMatrix)
                GL.MultMatrix((float *)m);
            }

            TKContext.DrawWireframeBox(box);

            if (bindBox)
            {
                GL.PopMatrix();
            }

            if (drawChildren)
            {
                foreach (MDL0BoneNode b in Children)
                {
                    b.DrawBox(true, bindBox);
                }
            }
        }