C# Класс Sharpex2D.Rendering.DirectX9.DirectXGraphics

Наследование: IGraphics
Показать файл Открыть проект

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

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