Exemplo n.º 1
0
 /// <summary>
 /// Function to draw the object.
 /// </summary>
 /// <remarks>Please note that this doesn't draw the object to the target right away, but queues it up to be
 /// drawn when <see cref="GorgonLibrary.Renderers.Gorgon2D.Render">Render</see> is called.
 /// </remarks>
 public void Draw()
 {
     TransformVertices();
     Gorgon2D.AddRenderable(this);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Function to add this renderable object to the cache of objects that need rendering.
 /// </summary>
 /// <remarks>Functions that manipulate raw vertex/index data must call this function when drawing.  This method adds the vertices for this object into
 /// an internal cache of vertices that will be rendered upon a state change, or a call to the <see cref="Renderers.Gorgon2D.Render"/>, or the <see cref="Renderers.Gorgon2D.Flush"/> methods.</remarks>
 protected virtual void AddToRenderQueue()
 {
     Gorgon2D.AddRenderable(this);
 }