Interface IRenderer
- Namespace
- Lime
- Assembly
- Lime.dll
public interface IRenderer
Properties
Blending
Blending Blending { get; set; }
Property Value
ColorFactor
Color4 ColorFactor { get; set; }
Property Value
ColorWriteEnabled
ColorWriteMask ColorWriteEnabled { get; set; }
Property Value
CullMode
CullMode CullMode { get; set; }
Property Value
DepthState
DepthState DepthState { get; set; }
Property Value
DrawCalls
int DrawCalls { get; }
Property Value
GlobalShaderParams
ShaderParams GlobalShaderParams { get; }
Property Value
PolyCount3d
int PolyCount3d { get; }
Property Value
Projection
Matrix44 Projection { get; set; }
Property Value
RenderCycle
int RenderCycle { get; }
Property Value
ScissorState
ScissorState ScissorState { get; set; }
Property Value
Shader
ShaderId Shader { get; set; }
Property Value
StencilState
StencilState StencilState { get; set; }
Property Value
Transform1
Matrix32 Transform1 { get; set; }
Property Value
Transform2
Matrix32 Transform2 { get; set; }
Property Value
View
Matrix44 View { get; set; }
Property Value
ViewProjection
Matrix44 ViewProjection { get; }
Property Value
Viewport
Viewport Viewport { get; set; }
Property Value
World
Matrix44 World { get; set; }
Property Value
WorldView
Matrix44 WorldView { get; }
Property Value
WorldViewProjection
Matrix44 WorldViewProjection { get; }
Property Value
Methods
BeginFrame()
void BeginFrame()
Clear(ClearOptions)
void Clear(ClearOptions options)
Parameters
optionsClearOptions
Clear(ClearOptions, Color4)
void Clear(ClearOptions options, Color4 color)
Parameters
optionsClearOptionscolorColor4
Clear(ClearOptions, Color4, float, byte)
void Clear(ClearOptions options, Color4 color, float depth, byte stencil)
Parameters
optionsClearOptionscolorColor4depthfloatstencilbyte
Clear(Color4)
void Clear(Color4 color)
Parameters
colorColor4
DrawCircle(Vector2, float, int, Color4)
void DrawCircle(Vector2 center, float radius, int numSegments, Color4 color)
Parameters
DrawDashedLine(Vector2, Vector2, Color4, Vector2)
void DrawDashedLine(Vector2 a, Vector2 b, Color4 color, Vector2 dashSize)
Parameters
DrawGlyphList(List<Glyph>, Color4)
void DrawGlyphList(List<Glyph> glyphList, Color4 color)
Parameters
DrawHorizontalGradientRect(Vector2, Vector2, Color4, Color4)
void DrawHorizontalGradientRect(Vector2 a, Vector2 b, Color4 topColor, Color4 bottomColor)
Parameters
DrawHorizontalGradientRect(Vector2, Vector2, ColorGradient)
void DrawHorizontalGradientRect(Vector2 a, Vector2 b, ColorGradient gradient)
Parameters
aVector2bVector2gradientColorGradient
DrawHorizontalGradientRect(float, float, float, float, ColorGradient)
void DrawHorizontalGradientRect(float x0, float y0, float x1, float y1, ColorGradient gradient)
Parameters
x0floaty0floatx1floaty1floatgradientColorGradient
DrawLine(Vector2, Vector2, Color4, float, LineCap)
void DrawLine(Vector2 a, Vector2 b, Color4 color, float thickness = 1, LineCap cap = LineCap.Butt)
Parameters
DrawLine(float, float, float, float, Color4, float, LineCap)
void DrawLine(float x0, float y0, float x1, float y1, Color4 color, float thickness = 1, LineCap cap = LineCap.Butt)
Parameters
DrawQuadrangle(Quadrangle, Color4)
Draws the quadrangle
void DrawQuadrangle(Quadrangle q, Color4 color)
Parameters
qQuadranglecolorColor4
DrawQuadrangleOutline(Quadrangle, Color4, float)
Draws the quadrangle outline inscribed within the given bounds.
void DrawQuadrangleOutline(Quadrangle q, Color4 color, float thickness = 1)
Parameters
qQuadranglecolorColor4thicknessfloat
DrawRect(Vector2, Vector2, Color4)
void DrawRect(Vector2 a, Vector2 b, Color4 color)
Parameters
DrawRect(float, float, float, float, Color4)
void DrawRect(float x0, float y0, float x1, float y1, Color4 color)
Parameters
DrawRectOutline(Vector2, Vector2, Color4, float)
Draws the rectangle outline inscribed within the given bounds.
void DrawRectOutline(Vector2 a, Vector2 b, Color4 color, float thickness = 1)
Parameters
DrawRectOutline(float, float, float, float, Color4, float)
Draws the rectangle outline inscribed within the given bounds.
void DrawRectOutline(float x0, float y0, float x1, float y1, Color4 color, float thickness = 1)
Parameters
DrawRound(Vector2, float, int, Color4)
void DrawRound(Vector2 center, float radius, int numSegments, Color4 color)
Parameters
DrawRound(Vector2, float, int, Color4, Color4)
void DrawRound(Vector2 center, float radius, int numSegments, Color4 innerColor, Color4 outerColor)
Parameters
DrawSprite(ITexture, Color4, Vector2, Vector2, Vector2, Vector2)
void DrawSprite(ITexture texture1, Color4 color, Vector2 position, Vector2 size, Vector2 uv0, Vector2 uv1)
Parameters
DrawSprite(ITexture, ITexture, Color4, Vector2, Vector2, Vector2, Vector2)
void DrawSprite(ITexture texture1, ITexture texture2, Color4 color, Vector2 position, Vector2 size, Vector2 uv0, Vector2 uv1)
Parameters
texture1ITexturetexture2ITexturecolorColor4positionVector2sizeVector2uv0Vector2uv1Vector2
DrawSprite(ITexture, ITexture, Color4, Vector2, Vector2, Vector2, Vector2, Vector2, Vector2)
void DrawSprite(ITexture texture1, ITexture texture2, Color4 color, Vector2 position, Vector2 size, Vector2 uv0t1, Vector2 uv1t1, Vector2 uv0t2, Vector2 uv1t2)
Parameters
texture1ITexturetexture2ITexturecolorColor4positionVector2sizeVector2uv0t1Vector2uv1t1Vector2uv0t2Vector2uv1t2Vector2
DrawSprite(ITexture, ITexture, IMaterial, Color4, Vector2, Vector2, Vector2, Vector2, Vector2, Vector2)
void DrawSprite(ITexture texture1, ITexture texture2, IMaterial material, Color4 color, Vector2 position, Vector2 size, Vector2 uv0t1, Vector2 uv1t1, Vector2 uv0t2, Vector2 uv1t2)
Parameters
texture1ITexturetexture2ITexturematerialIMaterialcolorColor4positionVector2sizeVector2uv0t1Vector2uv1t1Vector2uv0t2Vector2uv1t2Vector2
DrawTextLine(IFont, Vector2, string, Color4, float, int, int, float)
void DrawTextLine(IFont font, Vector2 position, string text, Color4 color, float fontHeight, int start, int length, float letterSpacing)
Parameters
fontIFontpositionVector2textstringcolorColor4fontHeightfloatstartintlengthintletterSpacingfloat
DrawTextLine(IFont, Vector2, string, Color4, float, int, int, float, GlyphList, Action<int, Vector2, Vector2>, int)
void DrawTextLine(IFont font, Vector2 position, string text, Color4 color, float fontHeight, int start, int length, float letterSpacing, GlyphList list, Action<int, Vector2, Vector2> onDrawChar = null, int tag = -1)
Parameters
fontIFontpositionVector2textstringcolorColor4fontHeightfloatstartintlengthintletterSpacingfloatlistGlyphListonDrawCharAction<int, Vector2, Vector2>tagint
DrawTextLine(IFont, Vector2, string, float, Color4, float)
void DrawTextLine(IFont font, Vector2 position, string text, float fontHeight, Color4 color, float letterSpacing)
Parameters
DrawTextLine(Vector2, string, float, Color4, float)
void DrawTextLine(Vector2 position, string text, float fontHeight, Color4 color, float letterSpacing)
Parameters
DrawTextLine(float, float, string, float, Color4, float)
void DrawTextLine(float x, float y, string text, float fontHeight, Color4 color, float letterSpacing)
Parameters
DrawTriangleFan(ITexture, ITexture, IMaterial, Vertex[], int)
RenderBatchRegion DrawTriangleFan(ITexture texture1, ITexture texture2, IMaterial material, Vertex[] vertices, int numVertices)
Parameters
Returns
DrawTriangleFan(ITexture, ITexture, Vertex[], int)
void DrawTriangleFan(ITexture texture1, ITexture texture2, Vertex[] vertices, int numVertices)
Parameters
DrawTriangleFan(ITexture, Vertex[], int)
void DrawTriangleFan(ITexture texture1, Vertex[] vertices, int numVertices)
Parameters
DrawTriangleFan(Vertex[], int)
void DrawTriangleFan(Vertex[] vertices, int numVertices)
Parameters
DrawTriangleStrip(ITexture, ITexture, IMaterial, Vertex[], int)
RenderBatchRegion DrawTriangleStrip(ITexture texture1, ITexture texture2, IMaterial material, Vertex[] vertices, int numVertices)
Parameters
Returns
DrawTriangleStrip(ITexture, ITexture, Vertex[], int)
void DrawTriangleStrip(ITexture texture1, ITexture texture2, Vertex[] vertices, int numVertices)
Parameters
DrawTriangleStrip(ITexture, Vertex[], int)
void DrawTriangleStrip(ITexture texture1, Vertex[] vertices, int numVertices)
Parameters
DrawTriangleStrip(Vertex[], int)
void DrawTriangleStrip(Vertex[] vertices, int numVertices)
Parameters
DrawVerticalGradientRect(Vector2, Vector2, Color4, Color4)
void DrawVerticalGradientRect(Vector2 a, Vector2 b, Color4 topColor, Color4 bottomColor)
Parameters
DrawVerticalGradientRect(Vector2, Vector2, ColorGradient)
void DrawVerticalGradientRect(Vector2 a, Vector2 b, ColorGradient gradient)
Parameters
aVector2bVector2gradientColorGradient
DrawVerticalGradientRect(float, float, float, float, Color4, Color4)
void DrawVerticalGradientRect(float x0, float y0, float x1, float y1, Color4 topColor, Color4 bottomColor)
Parameters
DrawVerticalGradientRect(float, float, float, float, ColorGradient)
void DrawVerticalGradientRect(float x0, float y0, float x1, float y1, ColorGradient gradient)
Parameters
x0floaty0floatx1floaty1floatgradientColorGradient
EndFrame()
void EndFrame()
FixupWVP(Matrix44)
Matrix44 FixupWVP(Matrix44 projection)
Parameters
projectionMatrix44
Returns
Flush()
void Flush()
MeasureTextLine(IFont, string, float, int, int, float)
Vector2 MeasureTextLine(IFont font, string text, float fontHeight, int start, int length, float letterSpacing)
Parameters
Returns
MeasureTextLine(IFont, string, float, float)
Vector2 MeasureTextLine(IFont font, string text, float fontHeight, float letterSpacing)
Parameters
Returns
MeasureTextLine(string, float, float)
Vector2 MeasureTextLine(string text, float fontHeight, float letterSpacing)
Parameters
Returns
SetOrthogonalProjection(Vector2, Vector2)
void SetOrthogonalProjection(Vector2 leftTop, Vector2 rightBottom)
Parameters
SetOrthogonalProjection(float, float, float, float)
void SetOrthogonalProjection(float left, float top, float right, float bottom)