Class PlatformRenderer
- Namespace
- Lime
- Assembly
- Lime.dll
public static class PlatformRenderer
- Inheritance
-
PlatformRenderer
- Inherited Members
-
Properties
public static RenderTexture CurrentRenderTarget { get; }
Property Value
- RenderTexture
public static int DrawCount { get; }
Property Value
- int
public static bool OffscreenRendering { get; }
Property Value
- bool
public static bool PipelineCacheSupported { get; }
Property Value
- bool
Methods
public static void BeginFrame()
public static void Clear(ClearOptions options, Color4 color)
Parameters
options
ClearOptions
color
Color4
public static void Clear(ClearOptions options, Color4 color, float depth, byte stencil)
Parameters
options
ClearOptions
color
Color4
depth
float
stencil
byte
public static void Draw(PrimitiveTopology topology, int startVertex, int vertexCount)
Parameters
topology
PrimitiveTopology
startVertex
int
vertexCount
int
public static void DrawIndexed(PrimitiveTopology topology, int startIndex, int indexCount, int baseVertex = 0)
Parameters
topology
PrimitiveTopology
startIndex
int
indexCount
int
baseVertex
int
public static FormatFeatures GetFormatFeatures(Format format)
Parameters
format
Format
Returns
- FormatFeatures
public static byte[] GetPipelineCacheData()
Returns
- byte[]
public static void SetBlendState(BlendState value)
Parameters
value
BlendState
public static void SetColorWriteMask(ColorWriteMask value)
Parameters
value
ColorWriteMask
public static void SetCullMode(CullMode value)
Parameters
value
CullMode
public static void SetDepthState(DepthState value)
Parameters
value
DepthState
public static void SetFrontFace(FrontFace value)
Parameters
value
FrontFace
public static void SetIndexBuffer(Buffer buffer, int offset, IndexFormat format)
Parameters
buffer
Buffer
offset
int
format
IndexFormat
public static bool SetPipelineCacheData(byte[] data)
Parameters
data
byte[]
Returns
- bool
public static void SetScissorState(ScissorState value)
Parameters
value
ScissorState
public static void SetShaderParams(ShaderParams[] paramsArray)
Parameters
paramsArray
ShaderParams[]
public static void SetShaderParams(ShaderParams[] paramsArray, int count)
Parameters
paramsArray
ShaderParams[]
count
int
public static void SetShaderProgram(ShaderProgram program)
Parameters
program
ShaderProgram
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
public static void SetVertexBuffer(int slot, Buffer buffer, int offset)
Parameters
slot
int
buffer
Buffer
offset
int
public static void SetVertexInputLayout(VertexInputLayout layout)
Parameters
layout
VertexInputLayout
public static void SetViewport(Viewport value)
Parameters
value
Viewport
public static bool TryGetGLInfo(out GLInfo info)
Parameters
info
GLInfo
Returns
- bool
Events
ContextLost
public static event Action ContextLost
Event Type
- Action
public static event Action RenderTargetChanged
Event Type
- Action