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

            Texture.Bind();
            Rect.Draw();
            Texture.Unbind();
        }
예제 #2
0
파일: GridLine.cs 프로젝트: 741645596/graph
    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;
    }
예제 #3
0
 public void Draw()
 {
     rect.Draw();
 }