Commit 9283a532 authored by Nathan H. Bean's avatar Nathan H. Bean

Added missing quad constructor

parent 9784da04
......@@ -147,7 +147,18 @@ Now let's write our `Draw()` method:
To wrap up the `Quad`, we'll need to add a constructor that takes a parameter of type `Game` and invokes our initialization:
```
```csharp
/// <summary>
/// Constructs the Quad
/// </summary>
/// <param name="game">The Game the Quad belongs to</param>
public Quad(Game game)
{
this.game = game;
InitializeVertices();
InitializeIndices();
InitializeEffect();
}
```
## Adding our Quad to Game1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment