Show / Hide Table of Contents

Class Renderer

Singleton responsible for rendering

Inheritance
Object
Renderer
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Client.Rendering
Assembly: SlipeClient.dll
Syntax
public static class Renderer

Properties

| Improve this Doc View Source

BlendMode

Get and set the blendmode of the renderer

Declaration
public static BlendMode BlendMode { get; set; }
Property Value
Type Description
BlendMode
| Improve this Doc View Source

FpsLimit

Get and set the limit at which the game is rendered

Declaration
public static int FpsLimit { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

ScreenSize

Returns the size of the screen as a Vector2

Declaration
public static Vector2 ScreenSize { get; }
Property Value
Type Description
Vector2
| Improve this Doc View Source

Status

Gets information about various internal datum

Declaration
public static Status Status { get; }
Property Value
Type Description
Status
| Improve this Doc View Source

TestMode

This function is used for testing scripts written using guiCreateFont, dxCreateFont, dxCreateShader and dxCreateRenderTarget.

Declaration
public static TestMode TestMode { set; }
Property Value
Type Description
TestMode

Methods

| Improve this Doc View Source

RevertRenderTargetToScreen()

Reverts the current rendertarget to the screen

Declaration
public static bool RevertRenderTargetToScreen()
Returns
Type Description
Boolean
| Improve this Doc View Source

ScreenFromWorldPosition(Vector3, Single, Boolean)

Get the screen position from a world position

Declaration
public static Vector2 ScreenFromWorldPosition(Vector3 worldPosition, float edgeTolerance = 0F, bool relative = true)
Parameters
Type Name Description
Vector3 worldPosition
Single edgeTolerance
Boolean relative
Returns
Type Description
Vector2
| Improve this Doc View Source

SetAspectRatioAdjustmentEnabled(Boolean, Single)

This function allows for the positioning of dxDraw calls to be automatically adjusted according to the client's aspect ratio setting. This lasts for a single execution of an event handler for one of the following events: onClientRender, onClientPreRender and onClientHUDRender. So the function has to be called every frame, just like dxDraws.

Declaration
public static bool SetAspectRatioAdjustmentEnabled(bool enabled, float sourceRatio = 1F)
Parameters
Type Name Description
Boolean enabled
Single sourceRatio
Returns
Type Description
Boolean
| Improve this Doc View Source

SetRenderTarget(RenderTarget, Boolean)

This function changes the drawing destination for the dx functions.

Declaration
public static bool SetRenderTarget(RenderTarget target, bool clear = false)
Parameters
Type Name Description
RenderTarget target
Boolean clear
Returns
Type Description
Boolean
| Improve this Doc View Source

WorldFromScreenPosition(Vector2, Single)

Get the World position from a screen position

Declaration
public static Vector3 WorldFromScreenPosition(Vector2 screenPosition, float depth)
Parameters
Type Name Description
Vector2 screenPosition
Single depth
Returns
Type Description
Vector3

Events

| Improve this Doc View Source

OnHudRender

Declaration
public static event Renderer.OnHudRenderHandler OnHudRender
Event Type
Type Description
Renderer.OnHudRenderHandler
| Improve this Doc View Source

OnRender

Declaration
public static event Renderer.OnRenderHandler OnRender
Event Type
Type Description
Renderer.OnRenderHandler
  • Improve this Doc
  • View Source
Back to top Generated by DocFX