Class Renderer
Singleton responsible for 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
|
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
|
Improve this Doc
View Source
ScreenSize
Returns the size of the screen as a Vector2
Declaration
public static Vector2 ScreenSize { get; }
Property Value
|
Improve this Doc
View Source
Status
Gets information about various internal datum
Declaration
public static Status Status { get; }
Property Value
|
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
Methods
|
Improve this Doc
View Source
RevertRenderTargetToScreen()
Reverts the current rendertarget to the screen
Declaration
public static bool RevertRenderTargetToScreen()
Returns
|
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
Returns
|
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
Returns
|
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
Returns
|
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
Returns
Events
|
Improve this Doc
View Source
OnHudRender
Declaration
public static event Renderer.OnHudRenderHandler OnHudRender
Event Type
|
Improve this Doc
View Source
OnRender
Declaration
public static event Renderer.OnRenderHandler OnRender
Event Type