C# Class Utility.PrimitiveRenderer

A renderer to help draw primitive types with a unified api
Mostrar archivo Open project: Jewelots/Spelunky-Tiles

Public Methods

Method Description
DrawRectangle ( SpriteBatch spriteBatch, Rectangle rect ) : void

Draws a rectangle

DrawRectangle ( SpriteBatch spriteBatch, Rectangle rect, Color color ) : void

Draws a rectangle

LoadContent ( Microsoft.Xna.Framework.Content.ContentManager Content ) : void

Load the content needed (must be called before drawing)

Method Details

DrawRectangle() public static method

Draws a rectangle
public static DrawRectangle ( SpriteBatch spriteBatch, Rectangle rect ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch Spritebatch to draw primitive on
rect Microsoft.Xna.Framework.Rectangle Rectangle coordinates to draw
return void

DrawRectangle() public static method

Draws a rectangle
public static DrawRectangle ( SpriteBatch spriteBatch, Rectangle rect, Color color ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch Spritebatch to draw primitive on
rect Microsoft.Xna.Framework.Rectangle Rectangle coordinates to draw
color Color Color to draw primitive
return void

LoadContent() public static method

Load the content needed (must be called before drawing)
public static LoadContent ( Microsoft.Xna.Framework.Content.ContentManager Content ) : void
Content Microsoft.Xna.Framework.Content.ContentManager
return void