Table of Contents

Class Renderer

Namespace
Lime
Assembly
Lime.dll
public static class Renderer
Inheritance
Renderer
Inherited Members

Fields

GlobalShaderParams

public static readonly ShaderParams GlobalShaderParams

Field Value

ShaderParams

PolyCount3d

public static int PolyCount3d

Field Value

int

Properties

Blending

public static Blending Blending { set; }

Property Value

Blending

ColorFactor

public static Color4 ColorFactor { get; set; }

Property Value

Color4

ColorWriteEnabled

public static ColorWriteMask ColorWriteEnabled { set; }

Property Value

ColorWriteMask

CullMode

public static CullMode CullMode { set; }

Property Value

CullMode

DepthState

public static DepthState DepthState { set; }

Property Value

DepthState

DrawCalls

public static int DrawCalls { get; }

Property Value

int

FrontFace

public static FrontFace FrontFace { set; }

Property Value

FrontFace

Projection

public static Matrix44 Projection { get; set; }

Property Value

Matrix44

RenderCycle

public static int RenderCycle { get; }

Property Value

int

ScissorState

public static ScissorState ScissorState { set; }

Property Value

ScissorState

Shader

public static ShaderId Shader { set; }

Property Value

ShaderId

StencilState

public static StencilState StencilState { set; }

Property Value

StencilState

Transform1

public static Matrix32 Transform1 { set; }

Property Value

Matrix32

Transform2

public static Matrix32 Transform2 { get; set; }

Property Value

Matrix32

View

public static Matrix44 View { get; set; }

Property Value

Matrix44

ViewProjection

public static Matrix44 ViewProjection { get; }

Property Value

Matrix44

Viewport

public static Viewport Viewport { get; set; }

Property Value

Viewport

World

public static Matrix44 World { get; set; }

Property Value

Matrix44

WorldView

public static Matrix44 WorldView { get; }

Property Value

Matrix44

WorldViewProjection

public static Matrix44 WorldViewProjection { get; }

Property Value

Matrix44

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 ClearOptions
color Color4

Clear(ClearOptions, Color4, float, byte)

public static void Clear(ClearOptions options, Color4 color, float depth, byte stencil)

Parameters

options ClearOptions
color Color4
depth float
stencil 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

center Vector2
radius float
numSegments int
color Color4

DrawDashedLine(Vector2, Vector2, Color4, Vector2)

public static void DrawDashedLine(Vector2 a, Vector2 b, Color4 color, Vector2 dashSize)

Parameters

a Vector2
b Vector2
color Color4
dashSize Vector2

DrawGlyphList(List<Glyph>, Color4)

public static void DrawGlyphList(List<Glyph> glyphList, Color4 color)

Parameters

glyphList List<Glyph>
color Color4

DrawHorizontalGradientRect(Vector2, Vector2, Color4, Color4)

public static void DrawHorizontalGradientRect(Vector2 a, Vector2 b, Color4 topColor, Color4 bottomColor)

Parameters

a Vector2
b Vector2
topColor Color4
bottomColor Color4

DrawHorizontalGradientRect(Vector2, Vector2, ColorGradient)

public static void DrawHorizontalGradientRect(Vector2 a, Vector2 b, ColorGradient gradient)

Parameters

a Vector2
b Vector2
gradient ColorGradient

DrawHorizontalGradientRect(float, float, float, float, ColorGradient)

public static void DrawHorizontalGradientRect(float x0, float y0, float x1, float y1, ColorGradient gradient)

Parameters

x0 float
y0 float
x1 float
y1 float
gradient 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

a Vector2
b Vector2
color Color4
thickness float
cap LineCap

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

x0 float
y0 float
x1 float
y1 float
color Color4
thickness float
cap LineCap

DrawQuadrangle(Quadrangle, Color4)

Draws the quadrangle

public static void DrawQuadrangle(Quadrangle q, Color4 color)

Parameters

q Quadrangle
color 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 Quadrangle
color Color4
thickness float

DrawRect(Vector2, Vector2, Color4)

public static void DrawRect(Vector2 a, Vector2 b, Color4 color)

Parameters

a Vector2
b Vector2
color Color4

DrawRect(float, float, float, float, Color4)

public static void DrawRect(float x0, float y0, float x1, float y1, Color4 color)

Parameters

x0 float
y0 float
x1 float
y1 float
color Color4

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

a Vector2
b Vector2
color Color4
thickness float

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

x0 float
y0 float
x1 float
y1 float
color Color4
thickness float

DrawRound(Vector2, float, int, Color4)

public static void DrawRound(Vector2 center, float radius, int numSegments, Color4 color)

Parameters

center Vector2
radius float
numSegments int
color Color4

DrawRound(Vector2, float, int, Color4, Color4)

public static void DrawRound(Vector2 center, float radius, int numSegments, Color4 innerColor, Color4 outerColor)

Parameters

center Vector2
radius float
numSegments int
innerColor Color4
outerColor Color4

DrawSprite(ISprite, Color4, Vector2, Vector2)

public static void DrawSprite(ISprite sprite, Color4 color, Vector2 position, Vector2 size)

Parameters

sprite ISprite
color Color4
position Vector2
size Vector2

DrawSprite(ISprite, IMaterial, Color4, Vector2, Vector2)

public static void DrawSprite(ISprite sprite, IMaterial material, Color4 color, Vector2 position, Vector2 size)

Parameters

sprite ISprite
material IMaterial
color Color4
position Vector2
size Vector2

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 IFont
position Vector2
text string
color Color4
fontHeight float
start int
length int
letterSpacing 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 IFont
position Vector2
text string
color Color4
fontHeight float
start int
length int
letterSpacing float
glyphList GlyphList
onDrawChar 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

font IFont
position Vector2
text string
fontHeight float
color Color4
letterSpacing float

DrawTextLine(Vector2, string, float, Color4, float)

public static void DrawTextLine(Vector2 position, string text, float fontHeight, Color4 color, float letterSpacing)

Parameters

position Vector2
text string
fontHeight float
color Color4
letterSpacing float

DrawTextLine(float, float, string, float, Color4, float)

public static void DrawTextLine(float x, float y, string text, float fontHeight, Color4 color, float letterSpacing)

Parameters

x float
y float
text string
fontHeight float
color Color4
letterSpacing float

DrawTexture(ITexture, Color4, Vector2, Vector2, Vector2, Vector2)

public static void DrawTexture(ITexture texture1, Color4 color, Vector2 position, Vector2 size, Vector2 uv0, Vector2 uv1)

Parameters

texture1 ITexture
color Color4
position Vector2
size Vector2
uv0 Vector2
uv1 Vector2

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 ITexture
texture2 ITexture
color Color4
position Vector2
size Vector2
uv0 Vector2
uv1 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 ITexture
texture2 ITexture
color Color4
position Vector2
size Vector2
uv0t1 Vector2
uv1t1 Vector2
uv0t2 Vector2
uv1t2 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 ITexture
texture2 ITexture
material IMaterial
color Color4
position Vector2
size Vector2
uv0t1 Vector2
uv1t1 Vector2
uv0t2 Vector2
uv1t2 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

texture1 ITexture
texture2 ITexture
material IMaterial
vertices Vertex[]
numVertices int
offset int

DrawTriangleFan(ITexture, ITexture, Vertex[], int)

public static void DrawTriangleFan(ITexture texture1, ITexture texture2, Vertex[] vertices, int numVertices)

Parameters

texture1 ITexture
texture2 ITexture
vertices Vertex[]
numVertices int

DrawTriangleFan(ITexture, Vertex[], int)

public static void DrawTriangleFan(ITexture texture1, Vertex[] vertices, int numVertices)

Parameters

texture1 ITexture
vertices Vertex[]
numVertices int

DrawTriangleFan(Vertex[], int)

public static void DrawTriangleFan(Vertex[] vertices, int numVertices)

Parameters

vertices Vertex[]
numVertices int

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

texture1 ITexture
texture2 ITexture
material IMaterial
vertices Vertex[]
numVertices int
offset int

DrawTriangleStrip(ITexture, ITexture, Vertex[], int)

public static void DrawTriangleStrip(ITexture texture1, ITexture texture2, Vertex[] vertices, int numVertices)

Parameters

texture1 ITexture
texture2 ITexture
vertices Vertex[]
numVertices int

DrawTriangleStrip(ITexture, Vertex[], int)

public static void DrawTriangleStrip(ITexture texture1, Vertex[] vertices, int numVertices)

Parameters

texture1 ITexture
vertices Vertex[]
numVertices int

DrawTriangleStrip(Vertex[], int)

public static void DrawTriangleStrip(Vertex[] vertices, int numVertices)

Parameters

vertices Vertex[]
numVertices int

DrawVerticalGradientRect(Vector2, Vector2, Color4, Color4)

public static void DrawVerticalGradientRect(Vector2 a, Vector2 b, Color4 topColor, Color4 bottomColor)

Parameters

a Vector2
b Vector2
topColor Color4
bottomColor Color4

DrawVerticalGradientRect(Vector2, Vector2, ColorGradient)

public static void DrawVerticalGradientRect(Vector2 a, Vector2 b, ColorGradient gradient)

Parameters

a Vector2
b Vector2
gradient 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

x0 float
y0 float
x1 float
y1 float
topColor Color4
bottomColor Color4

DrawVerticalGradientRect(float, float, float, float, ColorGradient)

public static void DrawVerticalGradientRect(float x0, float y0, float x1, float y1, ColorGradient gradient)

Parameters

x0 float
y0 float
x1 float
y1 float
gradient 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 ColorGradient
minPointColor Color4
maxPointColor Color4

FixupFrontFace(FrontFace)

public static FrontFace FixupFrontFace(FrontFace frontFace)

Parameters

frontFace FrontFace

Returns

FrontFace

FixupWVP(Matrix44)

public static Matrix44 FixupWVP(Matrix44 projection)

Parameters

projection Matrix44

Returns

Matrix44

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

leftTop Vector2
rightBottom Vector2

SetOrthogonalProjection(float, float, float, float)

public static void SetOrthogonalProjection(float left, float top, float right, float bottom)

Parameters

left float
top float
right float
bottom float

SetScissorState(ScissorState, bool)

public static void SetScissorState(ScissorState value, bool intersectWithCurrent = false)

Parameters

value ScissorState
intersectWithCurrent bool