Table of Contents

Interface IRenderer

Namespace
Lime
Assembly
Lime.dll
public interface IRenderer

Properties

Blending

Blending Blending { get; set; }

Property Value

Blending

ColorFactor

Color4 ColorFactor { get; set; }

Property Value

Color4

ColorWriteEnabled

ColorWriteMask ColorWriteEnabled { get; set; }

Property Value

ColorWriteMask

CullMode

CullMode CullMode { get; set; }

Property Value

CullMode

DepthState

DepthState DepthState { get; set; }

Property Value

DepthState

DrawCalls

int DrawCalls { get; }

Property Value

int

GlobalShaderParams

ShaderParams GlobalShaderParams { get; }

Property Value

ShaderParams

PolyCount3d

int PolyCount3d { get; }

Property Value

int

Projection

Matrix44 Projection { get; set; }

Property Value

Matrix44

RenderCycle

int RenderCycle { get; }

Property Value

int

ScissorState

ScissorState ScissorState { get; set; }

Property Value

ScissorState

Shader

ShaderId Shader { get; set; }

Property Value

ShaderId

StencilState

StencilState StencilState { get; set; }

Property Value

StencilState

Transform1

Matrix32 Transform1 { get; set; }

Property Value

Matrix32

Transform2

Matrix32 Transform2 { get; set; }

Property Value

Matrix32

View

Matrix44 View { get; set; }

Property Value

Matrix44

ViewProjection

Matrix44 ViewProjection { get; }

Property Value

Matrix44

Viewport

Viewport Viewport { get; set; }

Property Value

Viewport

World

Matrix44 World { get; set; }

Property Value

Matrix44

WorldView

Matrix44 WorldView { get; }

Property Value

Matrix44

WorldViewProjection

Matrix44 WorldViewProjection { get; }

Property Value

Matrix44

Methods

BeginFrame()

void BeginFrame()

Clear(ClearOptions)

void Clear(ClearOptions options)

Parameters

options ClearOptions

Clear(ClearOptions, Color4)

void Clear(ClearOptions options, Color4 color)

Parameters

options ClearOptions
color Color4

Clear(ClearOptions, Color4, float, byte)

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

Parameters

options ClearOptions
color Color4
depth float
stencil byte

Clear(Color4)

void Clear(Color4 color)

Parameters

color Color4

DrawCircle(Vector2, float, int, Color4)

void DrawCircle(Vector2 center, float radius, int numSegments, Color4 color)

Parameters

center Vector2
radius float
numSegments int
color Color4

DrawDashedLine(Vector2, Vector2, Color4, Vector2)

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

Parameters

a Vector2
b Vector2
color Color4
dashSize Vector2

DrawGlyphList(List<Glyph>, Color4)

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

Parameters

glyphList List<Glyph>
color Color4

DrawHorizontalGradientRect(Vector2, Vector2, Color4, Color4)

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

Parameters

a Vector2
b Vector2
topColor Color4
bottomColor Color4

DrawHorizontalGradientRect(Vector2, Vector2, ColorGradient)

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

Parameters

a Vector2
b Vector2
gradient ColorGradient

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

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)

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)

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

void DrawQuadrangle(Quadrangle q, Color4 color)

Parameters

q Quadrangle
color Color4

DrawQuadrangleOutline(Quadrangle, Color4, float)

Draws the quadrangle outline inscribed within the given bounds.

void DrawQuadrangleOutline(Quadrangle q, Color4 color, float thickness = 1)

Parameters

q Quadrangle
color Color4
thickness float

DrawRect(Vector2, Vector2, Color4)

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

Parameters

a Vector2
b Vector2
color Color4

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

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.

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.

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)

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)

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

Parameters

center Vector2
radius float
numSegments int
innerColor Color4
outerColor Color4

DrawSprite(ITexture, Color4, Vector2, Vector2, Vector2, Vector2)

void DrawSprite(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

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

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

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

texture1 ITexture
texture2 ITexture
color Color4
position Vector2
size Vector2
uv0t1 Vector2
uv1t1 Vector2
uv0t2 Vector2
uv1t2 Vector2

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

texture1 ITexture
texture2 ITexture
material IMaterial
color Color4
position Vector2
size Vector2
uv0t1 Vector2
uv1t1 Vector2
uv0t2 Vector2
uv1t2 Vector2

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

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)

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

font IFont
position Vector2
text string
color Color4
fontHeight float
start int
length int
letterSpacing float
list GlyphList
onDrawChar Action<int, Vector2, Vector2>
tag int

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

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)

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)

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

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

RenderBatchRegion DrawTriangleFan(ITexture texture1, ITexture texture2, IMaterial material, Vertex[] vertices, int numVertices)

Parameters

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

Returns

RenderBatchRegion

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

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

Parameters

texture1 ITexture
texture2 ITexture
vertices Vertex[]
numVertices int

DrawTriangleFan(ITexture, Vertex[], int)

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

Parameters

texture1 ITexture
vertices Vertex[]
numVertices int

DrawTriangleFan(Vertex[], int)

void DrawTriangleFan(Vertex[] vertices, int numVertices)

Parameters

vertices Vertex[]
numVertices int

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

RenderBatchRegion DrawTriangleStrip(ITexture texture1, ITexture texture2, IMaterial material, Vertex[] vertices, int numVertices)

Parameters

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

Returns

RenderBatchRegion

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

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

Parameters

texture1 ITexture
texture2 ITexture
vertices Vertex[]
numVertices int

DrawTriangleStrip(ITexture, Vertex[], int)

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

Parameters

texture1 ITexture
vertices Vertex[]
numVertices int

DrawTriangleStrip(Vertex[], int)

void DrawTriangleStrip(Vertex[] vertices, int numVertices)

Parameters

vertices Vertex[]
numVertices int

DrawVerticalGradientRect(Vector2, Vector2, Color4, Color4)

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

Parameters

a Vector2
b Vector2
topColor Color4
bottomColor Color4

DrawVerticalGradientRect(Vector2, Vector2, ColorGradient)

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

Parameters

a Vector2
b Vector2
gradient ColorGradient

DrawVerticalGradientRect(float, float, float, float, Color4, Color4)

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)

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

Parameters

x0 float
y0 float
x1 float
y1 float
gradient ColorGradient

EndFrame()

void EndFrame()

FixupWVP(Matrix44)

Matrix44 FixupWVP(Matrix44 projection)

Parameters

projection Matrix44

Returns

Matrix44

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

font IFont
text string
fontHeight float
start int
length int
letterSpacing float

Returns

Vector2

MeasureTextLine(IFont, string, float, float)

Vector2 MeasureTextLine(IFont font, string text, float fontHeight, float letterSpacing)

Parameters

font IFont
text string
fontHeight float
letterSpacing float

Returns

Vector2

MeasureTextLine(string, float, float)

Vector2 MeasureTextLine(string text, float fontHeight, float letterSpacing)

Parameters

text string
fontHeight float
letterSpacing float

Returns

Vector2

SetOrthogonalProjection(Vector2, Vector2)

void SetOrthogonalProjection(Vector2 leftTop, Vector2 rightBottom)

Parameters

leftTop Vector2
rightBottom Vector2

SetOrthogonalProjection(float, float, float, float)

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

Parameters

left float
top float
right float
bottom float