|
@ -16,6 +16,6 @@ public static class Geometry { |
|
|
// Make a 1x1 white texture: |
|
|
// Make a 1x1 white texture: |
|
|
Texture2D whiteTexture = new Texture2D(GraphicsDevice, 1, 1); |
|
|
Texture2D whiteTexture = new Texture2D(GraphicsDevice, 1, 1); |
|
|
whiteTexture.SetData(new Color[] { Color.White }); |
|
|
whiteTexture.SetData(new Color[] { Color.White }); |
|
|
// When done with it: |
|
|
|
|
|
|
|
|
// When done with it, in UnloadContent or similar: |
|
|
whiteTexture.Dispose(); |
|
|
whiteTexture.Dispose(); |
|
|
``` |
|
|
``` |