C# Class EmptyKeys.UserInterface.Renderers.Renderer

Implements abstract Renderer
Mostrar archivo Open project: EmptyKeys/UI_Engines Class Usage Examples

Public Methods

Method Description
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

Method Details

Begin() public abstract method

Begins the rendering
public abstract Begin ( ) : void
return void

Begin() public abstract method

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

BeginClipped() public abstract method

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

BeginClipped() public abstract method

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.
return void

CreateEffect() public abstract method

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

CreateFont() public abstract method

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

CreateGeometryBuffer() public abstract method

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

CreateTexture() public abstract method

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].
return EmptyKeys.UserInterface.Media.TextureBase

CreateTexture() public abstract method

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

Draw() public abstract method

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].
return void

Draw() public abstract method

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].
return void

DrawGeometryColor() public abstract method

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.
return void

DrawGeometryTexture() public abstract method

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.
return void

DrawText() public abstract method

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.
return void

End() public abstract method

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

EndClipped() public abstract method

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

GetSDFFontEffect() public abstract method

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

GetViewport() public abstract method

Gets the viewport.
public abstract GetViewport ( ) : Rect
return Rect

IsClipped() public abstract method

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.
return bool

ResetNativeSize() public abstract method

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