HPL3/Amnesia: Rebirth/Scripting/cRendererCallbackFunctions

From Frictional Wiki
Jump to navigation Jump to search

Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!

Fields

cRendererCallbackFunctions has no public fields.

Functions

Return Type Function And Description
void ClearFrameBuffer(uint aFlags, bool abUsePosAndSize)
void DrawCurrent(eVertexBufferDrawType aDrawType = eVertexBufferDrawType_LastEnum, int alStart = 0, int alCount = -1)
void DrawQuad(const cVector3f &in aPos, const cVector2f &in avSize, const cVector2f &in avMinUV = 0, const cVector2f &in avMaxUV = 1, bool abInvertY = false, const cColor &in aColor = cColor, ../ 1, ../ 1)
void DrawWireFrame(iVertexBuffer@ apVtxBuffer, const cColor &in aColor, int alStart = 0, int alCount = -1)
iLowLevelGraphics GetLowLevelGfx()
bool SetBlendMode(eMaterialBlendMode aMode)
bool SetChannelMode(eMaterialChannelMode aMode)
bool SetCullActive(bool abX)
bool SetCullMode(eCullMode aMode)
bool SetDepthTest(bool abX)
bool SetDepthTestFunc(eDepthTestFunc aFunc)
bool SetDepthWrite(bool abX)
void SetFlatProjection(const cVector2f &in avSize = 1, float afMin = -100, float afMax = 100)
void SetFlatProjectionMinMax(const cVector3f &in avMin, const cVector3f &in avMax)
void SetFrameBuffer(iFrameBuffer@ apFrameBuffer, bool abUsePosAndSize = false)
void SetMatrix(const cMatrixf &in apMatrix)
void SetModelViewMatrix(const cMatrixf &in a_mtxModelView)
void SetNormalFrustumProjection()
bool SetProgram(iGpuProgram@ apProgram)
bool SetScissorActive(bool abX)
bool SetScissorRect(const cVector2l &in avPos, const cVector2l &in avSize, bool abAutoEnabling)
bool SetScissorRect(const cRect2l &in aClipRect, bool abAutoEnabling)
bool SetStencilActive(bool abX)
void SetTexture(int alUnit, iTexture@ apTexture)
void SetTextureRange(iTexture@ apTexture, int alFirstUnit, int alLastUnit = kMaxTextureUnits-1)
void SetVertexBuffer(iVertexBuffer@ apVtxBuffer)

Details

ClearFrameBuffer

void ClearFrameBuffer(uint aFlags,
                      bool abUsePosAndSize)


Parameters

  • aFlags (uint) —
  • abUsePosAndSize (bool) —

Returns:

  • void

DrawCurrent

void DrawCurrent(eVertexBufferDrawType aDrawType = eVertexBufferDrawType_LastEnum,
                 int alStart = 0,
                 int alCount = -1)


Parameters

Returns:

  • void

DrawQuad

void DrawQuad(const cVector3f &in aPos,
              const cVector2f &in avSize,
              const cVector2f &in avMinUV = 0,
              const cVector2f &in avMaxUV = 1,
              bool abInvertY = false,
              const cColor &in aColor = cColor,
               1,
               1)


Parameters

Returns:

  • void

DrawWireFrame

void DrawWireFrame(iVertexBuffer@ apVtxBuffer,
                   const cColor &in aColor,
                   int alStart = 0,
                   int alCount = -1)


Parameters

Returns:

  • void

GetLowLevelGfx

iLowLevelGraphics@ GetLowLevelGfx()

Returns:

  • iLowLevelGraphics@

SetBlendMode

bool SetBlendMode(eMaterialBlendMode aMode)


Parameters

Returns:

  • bool

SetChannelMode

bool SetChannelMode(eMaterialChannelMode aMode)


Parameters

Returns:

  • bool

SetCullActive

bool SetCullActive(bool abX)


Parameters

  • abX (bool) —

Returns:

  • bool

SetCullMode

bool SetCullMode(eCullMode aMode)


Parameters

Returns:

  • bool

SetDepthTest

bool SetDepthTest(bool abX)


Parameters

  • abX (bool) —

Returns:

  • bool

SetDepthTestFunc

bool SetDepthTestFunc(eDepthTestFunc aFunc)


Parameters

Returns:

  • bool

SetDepthWrite

bool SetDepthWrite(bool abX)


Parameters

  • abX (bool) —

Returns:

  • bool

SetFlatProjection

void SetFlatProjection(const cVector2f &in avSize = 1,
                       float afMin = -100,
                       float afMax = 100)


Parameters

  • avSize (cVector2f) —
  • afMin (float) —
  • afMax (float) —

Returns:

  • void

SetFlatProjectionMinMax

void SetFlatProjectionMinMax(const cVector3f &in avMin,
                             const cVector3f &in avMax)


Parameters

Returns:

  • void

SetFrameBuffer

void SetFrameBuffer(iFrameBuffer@ apFrameBuffer,
                    bool abUsePosAndSize = false)


Parameters

Returns:

  • void

SetMatrix

void SetMatrix(const cMatrixf &in apMatrix)


Parameters

Returns:

  • void

SetModelViewMatrix

void SetModelViewMatrix(const cMatrixf &in a_mtxModelView)


Parameters

Returns:

  • void

SetNormalFrustumProjection

void SetNormalFrustumProjection()

Returns:

  • void

SetProgram

bool SetProgram(iGpuProgram@ apProgram)


Parameters

Returns:

  • bool

SetScissorActive

bool SetScissorActive(bool abX)


Parameters

  • abX (bool) —

Returns:

  • bool

SetScissorRect

bool SetScissorRect(const cVector2l &in avPos,
                    const cVector2l &in avSize,
                    bool abAutoEnabling)


Parameters

Returns:

  • bool

SetScissorRect

bool SetScissorRect(const cRect2l &in aClipRect,
                    bool abAutoEnabling)


Parameters

  • aClipRect (cRect2l) —
  • abAutoEnabling (bool) —

Returns:

  • bool

SetStencilActive

bool SetStencilActive(bool abX)


Parameters

  • abX (bool) —

Returns:

  • bool

SetTexture

void SetTexture(int alUnit,
                iTexture@ apTexture)


Parameters

Returns:

  • void

SetTextureRange

void SetTextureRange(iTexture@ apTexture,
                     int alFirstUnit,
                     int alLastUnit = kMaxTextureUnits-1)


Parameters

  • apTexture (iTexture@) —
  • alFirstUnit (int) —
  • alLastUnit (int) —

Returns:

  • void

SetVertexBuffer

void SetVertexBuffer(iVertexBuffer@ apVtxBuffer)


Parameters

Returns:

  • void

References


See all references...