C# Class Flood.GUI.GwenRenderer

Inheritance: Flood.GUI.Renderers.Renderer
显示文件 Open project: FloodProject/flood Class Usage Examples

Public Methods

Method Description
Clear ( ) : void
DrawFilledRect ( Rectangle rect ) : void
DrawTexturedRect ( ResourceHandle imageHandle, RectangleF rect, System.Vector2 topLeftUV, System.Vector2 topRightUV, System.Vector2 bottomRightUV, System.Vector2 bottomLeftUV ) : void
DrawTexturedRect ( ResourceHandle imageHandle, RectangleF rect, float u1, float v1, float u2, float v2 ) : void
GwenRenderer ( ) : System
MeasureText ( Font font, string text ) : System.Vector2
PixelColor ( ResourceHandle imageHandle, uint x, uint y, System.Color defaultColor ) : System.Color
Render ( RenderBlock rb ) : void
RenderText ( Font font, Vector2i position, string text ) : void

Method Details

Clear() public method

public Clear ( ) : void
return void

DrawFilledRect() public method

public DrawFilledRect ( Rectangle rect ) : void
rect Rectangle
return void

DrawTexturedRect() public method

public DrawTexturedRect ( ResourceHandle imageHandle, RectangleF rect, System.Vector2 topLeftUV, System.Vector2 topRightUV, System.Vector2 bottomRightUV, System.Vector2 bottomLeftUV ) : void
imageHandle ResourceHandle
rect RectangleF
topLeftUV System.Vector2
topRightUV System.Vector2
bottomRightUV System.Vector2
bottomLeftUV System.Vector2
return void

DrawTexturedRect() public method

public DrawTexturedRect ( ResourceHandle imageHandle, RectangleF rect, float u1, float v1, float u2, float v2 ) : void
imageHandle ResourceHandle
rect RectangleF
u1 float
v1 float
u2 float
v2 float
return void

GwenRenderer() public method

public GwenRenderer ( ) : System
return System

MeasureText() public method

public MeasureText ( Font font, string text ) : System.Vector2
font Font
text string
return System.Vector2

PixelColor() public method

public PixelColor ( ResourceHandle imageHandle, uint x, uint y, System.Color defaultColor ) : System.Color
imageHandle ResourceHandle
x uint
y uint
defaultColor System.Color
return System.Color

Render() public method

public Render ( RenderBlock rb ) : void
rb RenderBlock
return void

RenderText() public method

public RenderText ( Font font, Vector2i position, string text ) : void
font Font
position Vector2i
text string
return void