Class Renderer
- Namespace
- Lime
- Assembly
- Lime.dll
public static class Renderer
- Inheritance
-
Renderer
- Inherited Members
Fields
GlobalShaderParams
public static readonly ShaderParams GlobalShaderParams
Field Value
PolyCount3d
public static int PolyCount3d
Field Value
Properties
Blending
public static Blending Blending { set; }
Property Value
ColorFactor
public static Color4 ColorFactor { get; set; }
Property Value
ColorWriteEnabled
public static ColorWriteMask ColorWriteEnabled { set; }
Property Value
CullMode
public static CullMode CullMode { set; }
Property Value
DepthState
public static DepthState DepthState { set; }
Property Value
DrawCalls
public static int DrawCalls { get; }
Property Value
FrontFace
public static FrontFace FrontFace { set; }
Property Value
Projection
public static Matrix44 Projection { get; set; }
Property Value
RenderCycle
public static int RenderCycle { get; }
Property Value
ScissorState
public static ScissorState ScissorState { set; }
Property Value
Shader
public static ShaderId Shader { set; }
Property Value
StencilState
public static StencilState StencilState { set; }
Property Value
Transform1
public static Matrix32 Transform1 { set; }
Property Value
Transform2
public static Matrix32 Transform2 { get; set; }
Property Value
View
public static Matrix44 View { get; set; }
Property Value
ViewProjection
public static Matrix44 ViewProjection { get; }
Property Value
Viewport
public static Viewport Viewport { get; set; }
Property Value
World
public static Matrix44 World { get; set; }
Property Value
WorldView
public static Matrix44 WorldView { get; }
Property Value
WorldViewProjection
public static Matrix44 WorldViewProjection { get; }
Property Value
Methods
BeginFrame()
public static void BeginFrame()
Clear(ClearOptions)
public static void Clear(ClearOptions options)
Parameters
options
ClearOptions
Clear(ClearOptions, Color4)
public static void Clear(ClearOptions options, Color4 color)
Parameters
options
ClearOptionscolor
Color4
Clear(ClearOptions, Color4, float, byte)
public static void Clear(ClearOptions options, Color4 color, float depth, byte stencil)
Parameters
options
ClearOptionscolor
Color4depth
floatstencil
byte
Clear(Color4)
public static void Clear(Color4 color)
Parameters
color
Color4
DrawCircle(Vector2, float, int, Color4)
public static void DrawCircle(Vector2 center, float radius, int numSegments, Color4 color)
Parameters
DrawDashedLine(Vector2, Vector2, Color4, Vector2)
public static void DrawDashedLine(Vector2 a, Vector2 b, Color4 color, Vector2 dashSize)
Parameters
DrawGlyphList(List<Glyph>, Color4)
public static void DrawGlyphList(List<Glyph> glyphList, Color4 color)
Parameters
DrawHorizontalGradientRect(Vector2, Vector2, Color4, Color4)
public static void DrawHorizontalGradientRect(Vector2 a, Vector2 b, Color4 topColor, Color4 bottomColor)
Parameters
DrawHorizontalGradientRect(Vector2, Vector2, ColorGradient)
public static void DrawHorizontalGradientRect(Vector2 a, Vector2 b, ColorGradient gradient)
Parameters
a
Vector2b
Vector2gradient
ColorGradient
DrawHorizontalGradientRect(float, float, float, float, ColorGradient)
public static void DrawHorizontalGradientRect(float x0, float y0, float x1, float y1, ColorGradient gradient)
Parameters
x0
floaty0
floatx1
floaty1
floatgradient
ColorGradient
DrawLine(Vector2, Vector2, Color4, float, LineCap)
public static void DrawLine(Vector2 a, Vector2 b, Color4 color, float thickness = 1, LineCap cap = LineCap.Butt)
Parameters
DrawLine(float, float, float, float, Color4, float, LineCap)
public static 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
public static void DrawQuadrangle(Quadrangle q, Color4 color)
Parameters
q
Quadranglecolor
Color4
DrawQuadrangleOutline(Quadrangle, Color4, float)
Draws the quadrangle outline inscribed within the given bounds.
public static void DrawQuadrangleOutline(Quadrangle q, Color4 color, float thickness = 1)
Parameters
q
Quadranglecolor
Color4thickness
float
DrawRect(Vector2, Vector2, Color4)
public static void DrawRect(Vector2 a, Vector2 b, Color4 color)
Parameters
DrawRect(float, float, float, float, Color4)
public static 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.
public static 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.
public static void DrawRectOutline(float x0, float y0, float x1, float y1, Color4 color, float thickness = 1)
Parameters
DrawRound(Vector2, float, int, Color4)
public static void DrawRound(Vector2 center, float radius, int numSegments, Color4 color)
Parameters
DrawRound(Vector2, float, int, Color4, Color4)
public static void DrawRound(Vector2 center, float radius, int numSegments, Color4 innerColor, Color4 outerColor)
Parameters
DrawSprite(ISprite, Color4, Vector2, Vector2)
public static void DrawSprite(ISprite sprite, Color4 color, Vector2 position, Vector2 size)
Parameters
DrawSprite(ISprite, IMaterial, Color4, Vector2, Vector2)
public static void DrawSprite(ISprite sprite, IMaterial material, Color4 color, Vector2 position, Vector2 size)
Parameters
DrawTextLine(IFont, Vector2, string, Color4, float, int, int, float)
public static void DrawTextLine(IFont font, Vector2 position, string text, Color4 color, float fontHeight, int start, int length, float letterSpacing)
Parameters
font
IFontposition
Vector2text
stringcolor
Color4fontHeight
floatstart
intlength
intletterSpacing
float
DrawTextLine(IFont, Vector2, string, Color4, float, int, int, float, GlyphList, Action<int, Vector2, Vector2>, int)
public static void DrawTextLine(IFont font, Vector2 position, string text, Color4 color, float fontHeight, int start, int length, float letterSpacing, GlyphList glyphList, Action<int, Vector2, Vector2> onDrawChar = null, int tag = -1)
Parameters
font
IFontposition
Vector2text
stringcolor
Color4fontHeight
floatstart
intlength
intletterSpacing
floatglyphList
GlyphListonDrawChar
Action<int, Vector2, Vector2>tag
int
DrawTextLine(IFont, Vector2, string, float, Color4, float)
public static void DrawTextLine(IFont font, Vector2 position, string text, float fontHeight, Color4 color, float letterSpacing)
Parameters
DrawTextLine(Vector2, string, float, Color4, float)
public static void DrawTextLine(Vector2 position, string text, float fontHeight, Color4 color, float letterSpacing)
Parameters
DrawTextLine(float, float, string, float, Color4, float)
public static void DrawTextLine(float x, float y, string text, float fontHeight, Color4 color, float letterSpacing)
Parameters
DrawTexture(ITexture, Color4, Vector2, Vector2, Vector2, Vector2)
public static void DrawTexture(ITexture texture1, Color4 color, Vector2 position, Vector2 size, Vector2 uv0, Vector2 uv1)
Parameters
DrawTexture(ITexture, ITexture, Color4, Vector2, Vector2, Vector2, Vector2)
public static void DrawTexture(ITexture texture1, ITexture texture2, Color4 color, Vector2 position, Vector2 size, Vector2 uv0, Vector2 uv1)
Parameters
texture1
ITexturetexture2
ITexturecolor
Color4position
Vector2size
Vector2uv0
Vector2uv1
Vector2
DrawTexture(ITexture, ITexture, Color4, Vector2, Vector2, Vector2, Vector2, Vector2, Vector2)
public static void DrawTexture(ITexture texture1, ITexture texture2, Color4 color, Vector2 position, Vector2 size, Vector2 uv0t1, Vector2 uv1t1, Vector2 uv0t2, Vector2 uv1t2)
Parameters
texture1
ITexturetexture2
ITexturecolor
Color4position
Vector2size
Vector2uv0t1
Vector2uv1t1
Vector2uv0t2
Vector2uv1t2
Vector2
DrawTexture(ITexture, ITexture, IMaterial, Color4, Vector2, Vector2, Vector2, Vector2, Vector2, Vector2)
public static void DrawTexture(ITexture texture1, ITexture texture2, IMaterial material, Color4 color, Vector2 position, Vector2 size, Vector2 uv0t1, Vector2 uv1t1, Vector2 uv0t2, Vector2 uv1t2)
Parameters
texture1
ITexturetexture2
ITexturematerial
IMaterialcolor
Color4position
Vector2size
Vector2uv0t1
Vector2uv1t1
Vector2uv0t2
Vector2uv1t2
Vector2
DrawTriangleFan(ITexture, ITexture, IMaterial, Vertex[], int, int)
public static void DrawTriangleFan(ITexture texture1, ITexture texture2, IMaterial material, Vertex[] vertices, int numVertices, int offset = 0)
Parameters
DrawTriangleFan(ITexture, ITexture, Vertex[], int)
public static void DrawTriangleFan(ITexture texture1, ITexture texture2, Vertex[] vertices, int numVertices)
Parameters
DrawTriangleFan(ITexture, Vertex[], int)
public static void DrawTriangleFan(ITexture texture1, Vertex[] vertices, int numVertices)
Parameters
DrawTriangleFan(Vertex[], int)
public static void DrawTriangleFan(Vertex[] vertices, int numVertices)
Parameters
DrawTriangleStrip(ITexture, ITexture, IMaterial, Vertex[], int, int)
public static void DrawTriangleStrip(ITexture texture1, ITexture texture2, IMaterial material, Vertex[] vertices, int numVertices, int offset = 0)
Parameters
DrawTriangleStrip(ITexture, ITexture, Vertex[], int)
public static void DrawTriangleStrip(ITexture texture1, ITexture texture2, Vertex[] vertices, int numVertices)
Parameters
DrawTriangleStrip(ITexture, Vertex[], int)
public static void DrawTriangleStrip(ITexture texture1, Vertex[] vertices, int numVertices)
Parameters
DrawTriangleStrip(Vertex[], int)
public static void DrawTriangleStrip(Vertex[] vertices, int numVertices)
Parameters
DrawVerticalGradientRect(Vector2, Vector2, Color4, Color4)
public static void DrawVerticalGradientRect(Vector2 a, Vector2 b, Color4 topColor, Color4 bottomColor)
Parameters
DrawVerticalGradientRect(Vector2, Vector2, ColorGradient)
public static void DrawVerticalGradientRect(Vector2 a, Vector2 b, ColorGradient gradient)
Parameters
a
Vector2b
Vector2gradient
ColorGradient
DrawVerticalGradientRect(float, float, float, float, Color4, Color4)
public static void DrawVerticalGradientRect(float x0, float y0, float x1, float y1, Color4 topColor, Color4 bottomColor)
Parameters
DrawVerticalGradientRect(float, float, float, float, ColorGradient)
public static void DrawVerticalGradientRect(float x0, float y0, float x1, float y1, ColorGradient gradient)
Parameters
x0
floaty0
floatx1
floaty1
floatgradient
ColorGradient
EndFrame()
public static void EndFrame()
FindMinMaxGradientPointColors(ColorGradient, out Color4, out Color4)
public static void FindMinMaxGradientPointColors(ColorGradient gradient, out Color4 minPointColor, out Color4 maxPointColor)
Parameters
gradient
ColorGradientminPointColor
Color4maxPointColor
Color4
FixupFrontFace(FrontFace)
public static FrontFace FixupFrontFace(FrontFace frontFace)
Parameters
frontFace
FrontFace
Returns
FixupWVP(Matrix44)
public static Matrix44 FixupWVP(Matrix44 projection)
Parameters
projection
Matrix44
Returns
Flush()
public static void Flush()
MultiplyTransform1(Matrix32)
public static void MultiplyTransform1(Matrix32 transform)
Parameters
transform
Matrix32
MultiplyTransform2(Matrix32)
public static void MultiplyTransform2(Matrix32 transform)
Parameters
transform
Matrix32
PopState()
public static void PopState()
PushState(RenderState)
public static void PushState(RenderState mask)
Parameters
mask
RenderState
SetOrthogonalProjection(Vector2, Vector2)
public static void SetOrthogonalProjection(Vector2 leftTop, Vector2 rightBottom)
Parameters
SetOrthogonalProjection(float, float, float, float)
public static void SetOrthogonalProjection(float left, float top, float right, float bottom)
Parameters
SetScissorState(ScissorState, bool)
public static void SetScissorState(ScissorState value, bool intersectWithCurrent = false)
Parameters
value
ScissorStateintersectWithCurrent
bool