Table of Contents

Class PlatformRenderer

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

Properties

CurrentRenderTarget

public static RenderTexture CurrentRenderTarget { get; }

Property Value

RenderTexture

DrawCount

public static int DrawCount { get; }

Property Value

int

OffscreenRendering

public static bool OffscreenRendering { get; }

Property Value

bool

PipelineCacheSupported

public static bool PipelineCacheSupported { get; }

Property Value

bool

Methods

BeginFrame()

public static void BeginFrame()

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

Draw(PrimitiveTopology, int, int)

public static void Draw(PrimitiveTopology topology, int startVertex, int vertexCount)

Parameters

topology PrimitiveTopology
startVertex int
vertexCount int

DrawIndexed(PrimitiveTopology, int, int, int)

public static void DrawIndexed(PrimitiveTopology topology, int startIndex, int indexCount, int baseVertex = 0)

Parameters

topology PrimitiveTopology
startIndex int
indexCount int
baseVertex int

GetFormatFeatures(Format)

public static FormatFeatures GetFormatFeatures(Format format)

Parameters

format Format

Returns

FormatFeatures

GetPipelineCacheData()

public static byte[] GetPipelineCacheData()

Returns

byte[]

SetBlendState(BlendState)

public static void SetBlendState(BlendState value)

Parameters

value BlendState

SetColorWriteMask(ColorWriteMask)

public static void SetColorWriteMask(ColorWriteMask value)

Parameters

value ColorWriteMask

SetCullMode(CullMode)

public static void SetCullMode(CullMode value)

Parameters

value CullMode

SetDepthState(DepthState)

public static void SetDepthState(DepthState value)

Parameters

value DepthState

SetFrontFace(FrontFace)

public static void SetFrontFace(FrontFace value)

Parameters

value FrontFace

SetIndexBuffer(Buffer, int, IndexFormat)

public static void SetIndexBuffer(Buffer buffer, int offset, IndexFormat format)

Parameters

buffer Buffer
offset int
format IndexFormat

SetPipelineCacheData(byte[])

public static bool SetPipelineCacheData(byte[] data)

Parameters

data byte[]

Returns

bool

SetScissorState(ScissorState)

public static void SetScissorState(ScissorState value)

Parameters

value ScissorState

SetShaderParams(ShaderParams[])

public static void SetShaderParams(ShaderParams[] paramsArray)

Parameters

paramsArray ShaderParams[]

SetShaderParams(ShaderParams[], int)

public static void SetShaderParams(ShaderParams[] paramsArray, int count)

Parameters

paramsArray ShaderParams[]
count int

SetShaderProgram(ShaderProgram)

public static void SetShaderProgram(ShaderProgram program)

Parameters

program ShaderProgram

SetStencilState(StencilState)

public static void SetStencilState(StencilState value)

Parameters

value StencilState

SetTexture(int, ITexture)

public static void SetTexture(int slot, ITexture texture)

Parameters

slot int
texture ITexture

SetVertexBuffer(int, Buffer, int)

public static void SetVertexBuffer(int slot, Buffer buffer, int offset)

Parameters

slot int
buffer Buffer
offset int

SetVertexInputLayout(VertexInputLayout)

public static void SetVertexInputLayout(VertexInputLayout layout)

Parameters

layout VertexInputLayout

SetViewport(Viewport)

public static void SetViewport(Viewport value)

Parameters

value Viewport

TryGetGLInfo(out GLInfo)

public static bool TryGetGLInfo(out GLInfo info)

Parameters

info GLInfo

Returns

bool

Events

ContextLost

public static event Action ContextLost

Event Type

Action

RenderTargetChanged

public static event Action RenderTargetChanged

Event Type

Action