Example #1
0
        /// <summary>
        /// Draws the sprite.
        /// </summary>
        public void Draw()
        {
            if (Texture == null)
            {
                Rect.Draw();
                return;
            }

            Texture.Bind();
            Rect.Draw();
            Texture.Unbind();
        }
Example #2
0
    void OnRenderObject()
    {
        material.SetPass(0);
        GL.wireframe = false;
        GL.Color(Color.yellow);
        GL.PushMatrix();
        GL.Begin(GL.LINES);

        //ls2d.Draw();
        //vectorAix.Draw();
        rc2d.Draw();
        ls2d1.Draw();


        GL.End();
        GL.PopMatrix();

        GL.wireframe = false;
    }
Example #3
0
 public void Draw()
 {
     rect.Draw();
 }