C# Класс Utility.PrimitiveRenderer

A renderer to help draw primitive types with a unified api
Показать файл Открыть проект

Открытые методы

Метод Описание
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)

Описание методов

DrawRectangle() публичный статический Метод

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
Результат void

DrawRectangle() публичный статический Метод

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
Результат void

LoadContent() публичный статический Метод

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
Результат void