Exemplo n.º 1
0
        /// <summary>
        /// This function simply draws the normal as an arrow.
        /// </summary>
        void IInteractable.DrawPick(OpenGL gl)
        {
            //	We set some point styles here.
            SharpGL.SceneGraph.Attributes.Point point = new SharpGL.SceneGraph.Attributes.Point();
            point.Size = 5;
            point.Set(gl);

            //	Here we just draw a point.
            gl.Begin(OpenGL.LINES);
            gl.Vertex(0, 0, 0);
            gl.Vertex(this);
            gl.End();

            //	Restore old styles.
            point.Restore(gl);
        }
Exemplo n.º 2
0
        /// <summary>
        /// This function simply draws the normal as an arrow.
        /// </summary>
        void IInteractable.DrawPick(OpenGL gl)
        {
            //	We set some point styles here.
            SharpGL.SceneGraph.Attributes.Point point = new SharpGL.SceneGraph.Attributes.Point();
            point.Size = 5;
            point.Set(gl);

            //	Here we just draw a point.
            gl.Begin(OpenGL.LINES);
            gl.Vertex(0, 0, 0);
            gl.Vertex(this);
            gl.End();

            //	Restore old styles.
            point.Restore(gl);
        }