C# 클래스 EmptyKeys.UserInterface.Renderers.Renderer

Implements abstract Renderer
파일 보기 프로젝트 열기: EmptyKeys/UI_Engines 1 사용 예제들

공개 메소드들

메소드 설명
Begin ( ) : void

Begins the rendering

Begin ( EffectBase effect ) : void

Begins the rendering with custom effect

BeginClipped ( Rect clipRect ) : void

Begins the clipped rendering

BeginClipped ( Rect clipRect, EffectBase effect ) : void

Begins the clipped rendering with custom effect

CreateEffect ( object nativeEffect ) : EffectBase

Creates the effect.

CreateFont ( object nativeFont ) : FontBase

Creates the font.

CreateGeometryBuffer ( ) : GeometryBuffer

Creates the geometry buffer.

CreateTexture ( int width, int height, bool mipmap, bool dynamic ) : TextureBase

Creates the texture.

CreateTexture ( object nativeTexture ) : TextureBase

Creates the texture.

Draw ( TextureBase texture, PointF position, Size renderSize, ColorW color, Rect source, bool centerOrigin ) : void

Draws the specified texture.

Draw ( TextureBase texture, PointF position, Size renderSize, ColorW color, bool centerOrigin ) : void

Draws the specified texture.

DrawGeometryColor ( GeometryBuffer buffer, PointF position, ColorW color, float opacity, float depth ) : void

Draws the color of the geometry.

DrawGeometryTexture ( GeometryBuffer buffer, PointF position, TextureBase texture, float opacity, float depth ) : void

Draws the geometry texture.

DrawText ( FontBase font, string text, PointF position, Size renderSize, ColorW color, PointF scale, float depth ) : void

Draws the text.

End ( bool endEffect = false ) : void

Ends rendering

EndClipped ( bool endEffect = false ) : void

Ends the clipped rendering

GetSDFFontEffect ( ) : EffectBase

Gets the SDF font effect.

GetViewport ( ) : Rect

Gets the viewport.

IsClipped ( PointF position, Size renderSize ) : bool

Determines whether the specified rectangle is outside of clip bounds

ResetNativeSize ( ) : void

Resets the size of the native. Sets NativeScreenWidth and NativeScreenHeight based on active back buffer

메소드 상세

Begin() 공개 추상적인 메소드

Begins the rendering
public abstract Begin ( ) : void
리턴 void

Begin() 공개 추상적인 메소드

Begins the rendering with custom effect
public abstract Begin ( EffectBase effect ) : void
effect EmptyKeys.UserInterface.Media.EffectBase The effect.
리턴 void

BeginClipped() 공개 추상적인 메소드

Begins the clipped rendering
public abstract BeginClipped ( Rect clipRect ) : void
clipRect Rect The clip rect.
리턴 void

BeginClipped() 공개 추상적인 메소드

Begins the clipped rendering with custom effect
public abstract BeginClipped ( Rect clipRect, EffectBase effect ) : void
clipRect Rect The clip rect.
effect EmptyKeys.UserInterface.Media.EffectBase The effect.
리턴 void

CreateEffect() 공개 추상적인 메소드

Creates the effect.
public abstract CreateEffect ( object nativeEffect ) : EffectBase
nativeEffect object The native effect.
리턴 EmptyKeys.UserInterface.Media.EffectBase

CreateFont() 공개 추상적인 메소드

Creates the font.
public abstract CreateFont ( object nativeFont ) : FontBase
nativeFont object The native font.
리턴 EmptyKeys.UserInterface.Media.FontBase

CreateGeometryBuffer() 공개 추상적인 메소드

Creates the geometry buffer.
public abstract CreateGeometryBuffer ( ) : GeometryBuffer
리턴 EmptyKeys.UserInterface.Media.GeometryBuffer

CreateTexture() 공개 추상적인 메소드

Creates the texture.
public abstract CreateTexture ( int width, int height, bool mipmap, bool dynamic ) : TextureBase
width int The width.
height int The height.
mipmap bool if set to true [mipmap].
dynamic bool if set to true [dynamic].
리턴 EmptyKeys.UserInterface.Media.TextureBase

CreateTexture() 공개 추상적인 메소드

Creates the texture.
public abstract CreateTexture ( object nativeTexture ) : TextureBase
nativeTexture object The native texture.
리턴 EmptyKeys.UserInterface.Media.TextureBase

Draw() 공개 추상적인 메소드

Draws the specified texture.
public abstract Draw ( TextureBase texture, PointF position, Size renderSize, ColorW color, Rect source, bool centerOrigin ) : void
texture EmptyKeys.UserInterface.Media.TextureBase The texture.
position PointF The position.
renderSize Size Size of the render.
color ColorW The color.
source Rect The source.
centerOrigin bool if set to true [center origin].
리턴 void

Draw() 공개 추상적인 메소드

Draws the specified texture.
public abstract Draw ( TextureBase texture, PointF position, Size renderSize, ColorW color, bool centerOrigin ) : void
texture EmptyKeys.UserInterface.Media.TextureBase The texture.
position PointF The position.
renderSize Size Size of the render.
color ColorW The color.
centerOrigin bool if set to true [center origin].
리턴 void

DrawGeometryColor() 공개 추상적인 메소드

Draws the color of the geometry.
public abstract DrawGeometryColor ( GeometryBuffer buffer, PointF position, ColorW color, float opacity, float depth ) : void
buffer EmptyKeys.UserInterface.Media.GeometryBuffer The buffer.
position PointF The position.
color ColorW The color.
opacity float The opacity.
depth float The depth.
리턴 void

DrawGeometryTexture() 공개 추상적인 메소드

Draws the geometry texture.
public abstract DrawGeometryTexture ( GeometryBuffer buffer, PointF position, TextureBase texture, float opacity, float depth ) : void
buffer EmptyKeys.UserInterface.Media.GeometryBuffer The buffer.
position PointF The position.
texture EmptyKeys.UserInterface.Media.TextureBase The texture.
opacity float The opacity.
depth float The depth.
리턴 void

DrawText() 공개 추상적인 메소드

Draws the text.
public abstract DrawText ( FontBase font, string text, PointF position, Size renderSize, ColorW color, PointF scale, float depth ) : void
font EmptyKeys.UserInterface.Media.FontBase The font.
text string The text.
position PointF The position.
renderSize Size Size of the render.
color ColorW The color.
scale PointF The scale.
depth float The depth.
리턴 void

End() 공개 추상적인 메소드

Ends rendering
public abstract End ( bool endEffect = false ) : void
endEffect bool
리턴 void

EndClipped() 공개 추상적인 메소드

Ends the clipped rendering
public abstract EndClipped ( bool endEffect = false ) : void
endEffect bool
리턴 void

GetSDFFontEffect() 공개 추상적인 메소드

Gets the SDF font effect.
public abstract GetSDFFontEffect ( ) : EffectBase
리턴 EmptyKeys.UserInterface.Media.EffectBase

GetViewport() 공개 추상적인 메소드

Gets the viewport.
public abstract GetViewport ( ) : Rect
리턴 Rect

IsClipped() 공개 추상적인 메소드

Determines whether the specified rectangle is outside of clip bounds
public abstract IsClipped ( PointF position, Size renderSize ) : bool
position PointF The position.
renderSize Size Size of the render.
리턴 bool

ResetNativeSize() 공개 추상적인 메소드

Resets the size of the native. Sets NativeScreenWidth and NativeScreenHeight based on active back buffer
public abstract ResetNativeSize ( ) : void
리턴 void