QuadRenderer

Namespace: Murder.Core.Graphics
Assembly: Murder.dll

public class QuadRenderer

Renders a simple quad to the screen. Uncomment the Vertex / Index buffers to make it a static fullscreen quad. The performance effect is barely measurable though and you need to dispose of the buffers when finished!

⭐ Constructors

public QuadRenderer(GraphicsDevice _)

Parameters
_ GraphicsDevice

⭐ Methods

RenderQuad(GraphicsDevice, Vector2, Vector2)

public void RenderQuad(GraphicsDevice graphicsDevice, Vector2 v1, Vector2 v2)

Parameters
graphicsDevice GraphicsDevice
v1 Vector2
v2 Vector2