C# 클래스 Sharpex2D.Rendering.OpenGL.OpenGLRenderer

상속: IRenderer, IDisposable
파일 보기 프로젝트 열기: ThuCommix/Sharpex2D

공개 메소드들

메소드 설명
Begin ( ) : void

Begins the draw operation.

CreateResource ( string fontFamily, float size, TextAccessoire accessoire ) : IFont

Creates a new Resource.

CreateResource ( int width, int height ) : ITexture

Creates a new Resource.

CreateResource ( string path ) : ITexture

Creates a new Resource.

Dispose ( ) : void

Disposes the object.

DrawString ( string text, IFont font, Rectangle rectangle, Color color ) : void

Draws a string.

DrawString ( string text, IFont font, Vector2 position, Color color ) : void

Draws a string.

DrawTexture ( ITexture texture, Rectangle rectangle, Color color, float opacity = 1 ) : void

Draws a Texture.

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

Draws a Texture.

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

Draws a Texture.

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

Draws a Texture.

DrawTexture ( ITexture texture, Vector2 position, Color color, float opacity = 1 ) : void

Draws a Texture.

End ( ) : void

Ends the draw operation.

Initialize ( ) : void

Initializes the renderer.

MeasureString ( string text, IFont font ) : Vector2

Measures the string.

OpenGLRenderer ( ) : System

Initializes a new OpenGLRenderer class.

ResetTransform ( ) : void

Resets the Transform.

SetTransform ( Matrix2x3 matrix ) : void

Sets the Transform.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Disposes the object.

비공개 메소드들

메소드 설명
GraphicsDeviceClearColorChanged ( object sender, EventArgs e ) : void

Triggered if the clear color changed.

WindowScreenSizeChanged ( object sender, EventArgs e ) : void

Triggered if the screen size changed.

메소드 상세

Begin() 공개 메소드

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

CreateResource() 공개 메소드

Creates a new Resource.
public CreateResource ( string fontFamily, float size, TextAccessoire accessoire ) : IFont
fontFamily string The FontFamily.
size float The Size.
accessoire TextAccessoire The TextAccessoire.
리턴 IFont

CreateResource() 공개 메소드

Creates a new Resource.
public CreateResource ( int width, int height ) : ITexture
width int The Width.
height int The Height.
리턴 ITexture

CreateResource() 공개 메소드

Creates a new Resource.
public CreateResource ( string path ) : ITexture
path string The Path.
리턴 ITexture

Dispose() 공개 메소드

Disposes the object.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Disposes the object.
protected Dispose ( bool disposing ) : void
disposing bool The disposing state.
리턴 void

DrawString() 공개 메소드

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

DrawString() 공개 메소드

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

DrawTexture() 공개 메소드

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

DrawTexture() 공개 메소드

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

DrawTexture() 공개 메소드

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

DrawTexture() 공개 메소드

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

DrawTexture() 공개 메소드

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

End() 공개 메소드

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

Initialize() 공개 메소드

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

MeasureString() 공개 메소드

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

OpenGLRenderer() 공개 메소드

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

ResetTransform() 공개 메소드

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

SetTransform() 공개 메소드

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