class RenderTargetEx

Extension class for RenderTarget, for adding additional functionality for the script interface.

Public

Methods

staticGetWidth

static u32 GetWidth(const SPtr<RenderTarget> &thisPtr)

Width of the render target, in pixels.

staticGetHeight

static u32 GetHeight(const SPtr<RenderTarget> &thisPtr)

Height of the render target, in pixels.

staticGetGammaCorrection

static bool GetGammaCorrection(const SPtr<RenderTarget> &thisPtr)

True if pixels written to the render target will be gamma corrected.

staticGetPriority

static i32 GetPriority(const SPtr<RenderTarget> &thisPtr)

Controls in what order is the render target rendered to compared to other render targets.

Targets with higher priority will be rendered before ones with lower priority.

staticSetPriority

static void SetPriority(const SPtr<RenderTarget> &thisPtr, i32 priority)

Controls in what order is the render target rendered to compared to other render targets.

Targets with higher priority will be rendered before ones with lower priority.

staticGetSampleCount

static u32 GetSampleCount(const SPtr<RenderTarget> &thisPtr)

Controls how many samples are used for multisampling. (0 or 1 if multisampling is not used).