C# 클래스 Oglr.Core.Drawing

상속: IDrawing
파일 보기 프로젝트 열기: SteveDunn/oglr

공개 메소드들

메소드 설명
CreateCircleTexture ( GraphicsDevice graphicsDevice, int radius, int borderWidth, int borderInnerTransitionWidth, int borderOuterTransitionWidth, Color color, Color borderColor ) : Microsoft.Xna.Framework.Graphics.Texture2D
DrawBox ( SpriteBatch spriteBatch, Rectangle r, Color c, int lineWidth ) : void
DrawBoxFilled ( SpriteBatch sb, Rectangle r, Color c ) : void
DrawBoxFilled ( SpriteBatch sb, Vector2 upperLeft, Vector2 lowerRight, Color c ) : void
DrawBoxFilled ( SpriteBatch sb, float x, float y, float w, float h, Color c ) : void
DrawCircle ( SpriteBatch sb, Vector2 position, float radius, Color c, int linewidth ) : void
DrawCircleFilled ( SpriteBatch spriteBatch, Vector2 position, float radius, Color color ) : void
DrawLine ( SpriteBatch spriteBatch, Vector2 startpos, Vector2 endpos, Color c, int linewidth ) : void
DrawLine ( SpriteBatch spriteBatch, float x1, float y1, float x2, float y2, Color color, int lineWidth ) : void
DrawPath ( SpriteBatch spriteBatch, Vector2 points, Color color, int lineWidth ) : void
DrawPixel ( SpriteBatch spriteBatch, int x, int y, Color color ) : void
DrawPolygon ( SpriteBatch spriteBatch, Vector2 points, Color color, int lineWidth ) : void
DrawPolygonFilled ( SpriteBatch spriteBatch, Vector2 worldPoints, Color color ) : void
Drawing ( IGame game ) : System

비공개 메소드들

메소드 설명
makeCircle ( Vector2 position, float radius, int numpoints ) : Vector2[]
resizeBasicEffect ( ) : void

메소드 상세

CreateCircleTexture() 공개 메소드

public CreateCircleTexture ( GraphicsDevice graphicsDevice, int radius, int borderWidth, int borderInnerTransitionWidth, int borderOuterTransitionWidth, Color color, Color borderColor ) : Microsoft.Xna.Framework.Graphics.Texture2D
graphicsDevice GraphicsDevice
radius int
borderWidth int
borderInnerTransitionWidth int
borderOuterTransitionWidth int
color Color
borderColor Color
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

DrawBox() 공개 메소드

public DrawBox ( SpriteBatch spriteBatch, Rectangle r, Color c, int lineWidth ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
r Microsoft.Xna.Framework.Rectangle
c Color
lineWidth int
리턴 void

DrawBoxFilled() 공개 메소드

public DrawBoxFilled ( SpriteBatch sb, Rectangle r, Color c ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
r Microsoft.Xna.Framework.Rectangle
c Color
리턴 void

DrawBoxFilled() 공개 메소드

public DrawBoxFilled ( SpriteBatch sb, Vector2 upperLeft, Vector2 lowerRight, Color c ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
upperLeft Vector2
lowerRight Vector2
c Color
리턴 void

DrawBoxFilled() 공개 메소드

public DrawBoxFilled ( SpriteBatch sb, float x, float y, float w, float h, Color c ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
x float
y float
w float
h float
c Color
리턴 void

DrawCircle() 공개 메소드

public DrawCircle ( SpriteBatch sb, Vector2 position, float radius, Color c, int linewidth ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
position Vector2
radius float
c Color
linewidth int
리턴 void

DrawCircleFilled() 공개 메소드

public DrawCircleFilled ( SpriteBatch spriteBatch, Vector2 position, float radius, Color color ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
position Vector2
radius float
color Color
리턴 void

DrawLine() 공개 메소드

public DrawLine ( SpriteBatch spriteBatch, Vector2 startpos, Vector2 endpos, Color c, int linewidth ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
startpos Vector2
endpos Vector2
c Color
linewidth int
리턴 void

DrawLine() 공개 메소드

public DrawLine ( SpriteBatch spriteBatch, float x1, float y1, float x2, float y2, Color color, int lineWidth ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
x1 float
y1 float
x2 float
y2 float
color Color
lineWidth int
리턴 void

DrawPath() 공개 메소드

public DrawPath ( SpriteBatch spriteBatch, Vector2 points, Color color, int lineWidth ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
points Vector2
color Color
lineWidth int
리턴 void

DrawPixel() 공개 메소드

public DrawPixel ( SpriteBatch spriteBatch, int x, int y, Color color ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
x int
y int
color Color
리턴 void

DrawPolygon() 공개 메소드

public DrawPolygon ( SpriteBatch spriteBatch, Vector2 points, Color color, int lineWidth ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
points Vector2
color Color
lineWidth int
리턴 void

DrawPolygonFilled() 공개 메소드

public DrawPolygonFilled ( SpriteBatch spriteBatch, Vector2 worldPoints, Color color ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
worldPoints Vector2
color Color
리턴 void

Drawing() 공개 메소드

public Drawing ( IGame game ) : System
game IGame
리턴 System