C# 클래스 Sharpex2D.Rendering.DirectX9.DirectXGraphics

상속: IGraphics
파일 보기 프로젝트 열기: ThuCommix/Sharpex2D

공개 메소드들

메소드 설명
Begin ( ) : void

Begins the draw operation.

DirectXGraphics ( ) : System

Initializes a new DirectXGraphics class.

DrawArc ( Pen pen, Rectangle rectangle, float startAngle, float sweepAngle ) : void

Draws an Arc.

DrawEllipse ( Pen pen, Ellipse ellipse ) : void

Draws a Ellipse.

DrawLine ( Pen pen, Vector2 start, Vector2 target ) : void

Draws a Line between two points.

DrawPolygon ( Pen pen, Polygon polygon ) : void

Draws a Polygon.

DrawRectangle ( Pen pen, Rectangle rectangle ) : void

Draws a Rectangle.

DrawString ( string text, Font font, Rectangle rectangle, System.Color color ) : void

Draws a string.

DrawString ( string text, Font font, Vector2 position, System.Color color ) : void

Draws a string.

DrawTexture ( SpriteSheet spriteSheet, Rectangle rectangle, System.Color color, float opacity = 1 ) : void

Draws a Texture.

DrawTexture ( SpriteSheet spriteSheet, Vector2 position, System.Color color, float opacity = 1 ) : void

Draws a Texture.

DrawTexture ( Texture2D texture, Rectangle rectangle, System.Color color, float opacity = 1 ) : void

Draws a Texture.

DrawTexture ( Texture2D texture, Rectangle source, Rectangle destination, System.Color color, float opacity = 1 ) : void

Draws a Texture.

DrawTexture ( Texture2D texture, Vector2 position, System.Color color, float opacity = 1 ) : void

Draws a Texture.

End ( ) : void

Ends the draw operation.

FillEllipse ( System.Color color, Ellipse ellipse ) : void

Fills a Ellipse.

FillPolygon ( System.Color color, Polygon polygon ) : void

Fills a Polygon.

FillRectangle ( System.Color color, Rectangle rectangle ) : void

Fills a Rectangle.

Initialize ( ) : void

Initializes the graphics.

MeasureString ( string text, Font font ) : Vector2

Measures the string.

ResetTransform ( ) : void

Resets the Transform.

SetTransform ( Matrix2x3 matrix ) : void

Sets the Transform.

비공개 메소드들

메소드 설명
SetHighestMultisampleType ( PresentParameters presentParameters ) : void

Sets the highest MultisampleType.

메소드 상세

Begin() 공개 메소드

Begins the draw operation.
public Begin ( ) : void
리턴 void

DirectXGraphics() 공개 메소드

Initializes a new DirectXGraphics class.
public DirectXGraphics ( ) : System
리턴 System

DrawArc() 공개 메소드

Draws an Arc.
public DrawArc ( Pen pen, Rectangle rectangle, float startAngle, float sweepAngle ) : void
pen Pen The Pen.
rectangle Sharpex2D.Math.Rectangle The Rectangle.
startAngle float The StartAngle.
sweepAngle float The SweepAngle.
리턴 void

DrawEllipse() 공개 메소드

Draws a Ellipse.
public DrawEllipse ( Pen pen, Ellipse ellipse ) : void
pen Pen The Pen.
ellipse Sharpex2D.Math.Ellipse The Ellipse.
리턴 void

DrawLine() 공개 메소드

Draws a Line between two points.
public DrawLine ( Pen pen, Vector2 start, Vector2 target ) : void
pen Pen The Pen.
start Vector2 The Startpoint.
target Vector2 The Targetpoint.
리턴 void

DrawPolygon() 공개 메소드

Draws a Polygon.
public DrawPolygon ( Pen pen, Polygon polygon ) : void
pen Pen The Pen.
polygon Sharpex2D.Math.Polygon The Polygon.
리턴 void

DrawRectangle() 공개 메소드

Draws a Rectangle.
public DrawRectangle ( Pen pen, Rectangle rectangle ) : void
pen Pen The Pen.
rectangle Sharpex2D.Math.Rectangle The Rectangle.
리턴 void

DrawString() 공개 메소드

Draws a string.
public DrawString ( string text, Font font, Rectangle rectangle, System.Color color ) : void
text string The Text.
font Font The Font.
rectangle Sharpex2D.Math.Rectangle The Rectangle.
color System.Color The Color.
리턴 void

DrawString() 공개 메소드

Draws a string.
public DrawString ( string text, Font font, Vector2 position, System.Color color ) : void
text string The Text.
font Font The Font.
position Vector2 The Position.
color System.Color The Color.
리턴 void

DrawTexture() 공개 메소드

Draws a Texture.
public DrawTexture ( SpriteSheet spriteSheet, Rectangle rectangle, System.Color color, float opacity = 1 ) : void
spriteSheet SpriteSheet The SpriteSheet.
rectangle Sharpex2D.Math.Rectangle The Rectangle.
color System.Color The Color.
opacity float The Opacity.
리턴 void

DrawTexture() 공개 메소드

Draws a Texture.
public DrawTexture ( SpriteSheet spriteSheet, Vector2 position, System.Color color, float opacity = 1 ) : void
spriteSheet SpriteSheet The SpriteSheet.
position Vector2 The Position.
color System.Color The Color.
opacity float The Opacity.
리턴 void

DrawTexture() 공개 메소드

Draws a Texture.
public DrawTexture ( Texture2D texture, Rectangle rectangle, System.Color color, float opacity = 1 ) : void
texture Texture2D The Texture.
rectangle Sharpex2D.Math.Rectangle The Rectangle.
color System.Color The Color.
opacity float The Opacity.
리턴 void

DrawTexture() 공개 메소드

Draws a Texture.
public DrawTexture ( Texture2D texture, Rectangle source, Rectangle destination, System.Color color, float opacity = 1 ) : void
texture Texture2D The Texture.
source Sharpex2D.Math.Rectangle The SourceRectangle.
destination Sharpex2D.Math.Rectangle The DestinationRectangle.
color System.Color The Color.
opacity float The Opacity.
리턴 void

DrawTexture() 공개 메소드

Draws a Texture.
public DrawTexture ( Texture2D texture, Vector2 position, System.Color color, float opacity = 1 ) : void
texture Texture2D The Texture.
position Vector2 The Position.
color System.Color The Color.
opacity float The Opacity.
리턴 void

End() 공개 메소드

Ends the draw operation.
public End ( ) : void
리턴 void

FillEllipse() 공개 메소드

Fills a Ellipse.
public FillEllipse ( System.Color color, Ellipse ellipse ) : void
color System.Color The Color.
ellipse Sharpex2D.Math.Ellipse The Ellipse.
리턴 void

FillPolygon() 공개 메소드

Fills a Polygon.
public FillPolygon ( System.Color color, Polygon polygon ) : void
color System.Color The Color.
polygon Sharpex2D.Math.Polygon The Polygon.
리턴 void

FillRectangle() 공개 메소드

Fills a Rectangle.
public FillRectangle ( System.Color color, Rectangle rectangle ) : void
color System.Color The Color.
rectangle Sharpex2D.Math.Rectangle The Rectangle.
리턴 void

Initialize() 공개 메소드

Initializes the graphics.
public Initialize ( ) : void
리턴 void

MeasureString() 공개 메소드

Measures the string.
public MeasureString ( string text, Font font ) : Vector2
text string The String.
font Font The Font.
리턴 Vector2

ResetTransform() 공개 메소드

Resets the Transform.
public ResetTransform ( ) : void
리턴 void

SetTransform() 공개 메소드

Sets the Transform.
public SetTransform ( Matrix2x3 matrix ) : void
matrix Matrix2x3 The Matrix.
리턴 void