C# 클래스 Utility.PrimitiveRenderer

A renderer to help draw primitive types with a unified api
파일 보기 프로젝트 열기: Jewelots/Spelunky-Tiles

공개 메소드들

메소드 설명
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