/// <summary> /// Draws the sprite. /// </summary> public void Draw() { if (Texture == null) { Rect.Draw(); return; } Texture.Bind(); Rect.Draw(); Texture.Unbind(); }
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; }
public void Draw() { rect.Draw(); }