HPL3/Amnesia: Rebirth/Scripting/cRendererCallbackFunctions
< HPL3 | Amnesia: Rebirth | Scripting
Jump to navigation
Jump to search
This page has been automatically generated, but it needs descriptions added to the various fields/functions in order to be complete. |
Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!
Contents
- 1 Fields
- 2 Functions
- 3 Details
- 3.1 ClearFrameBuffer
- 3.2 DrawCurrent
- 3.3 DrawQuad
- 3.4 DrawWireFrame
- 3.5 GetLowLevelGfx
- 3.6 SetBlendMode
- 3.7 SetChannelMode
- 3.8 SetCullActive
- 3.9 SetCullMode
- 3.10 SetDepthTest
- 3.11 SetDepthTestFunc
- 3.12 SetDepthWrite
- 3.13 SetFlatProjection
- 3.14 SetFlatProjectionMinMax
- 3.15 SetFrameBuffer
- 3.16 SetMatrix
- 3.17 SetModelViewMatrix
- 3.18 SetNormalFrustumProjection
- 3.19 SetProgram
- 3.20 SetScissorActive
- 3.21 SetScissorRect
- 3.22 SetScissorRect
- 3.23 SetStencilActive
- 3.24 SetTexture
- 3.25 SetTextureRange
- 3.26 SetVertexBuffer
- 4 References
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
- aDrawType (eVertexBufferDrawType) —
- alStart (int) —
- alCount (int) —
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
- aPos (cVector3f) —
- avSize (cVector2f) —
- avMinUV (cVector2f) —
- avMaxUV (cVector2f) —
- abInvertY (bool) —
- aColor (cColor) —
- 1 (../) —
- 1 (../) —
Returns:
- void
DrawWireFrame
void DrawWireFrame(iVertexBuffer@ apVtxBuffer,
const cColor &in aColor,
int alStart = 0,
int alCount = -1)
Parameters
- apVtxBuffer (iVertexBuffer@) —
- aColor (cColor) —
- alStart (int) —
- alCount (int) —
Returns:
- void
GetLowLevelGfx
iLowLevelGraphics@ GetLowLevelGfx()
Returns:
- iLowLevelGraphics@—
SetBlendMode
SetChannelMode
bool SetChannelMode(eMaterialChannelMode aMode)
Parameters
- aMode (eMaterialChannelMode) —
Returns:
- bool—
SetCullActive
bool SetCullActive(bool abX)
Parameters
- abX (bool) —
Returns:
- bool—
SetCullMode
SetDepthTest
bool SetDepthTest(bool abX)
Parameters
- abX (bool) —
Returns:
- bool—
SetDepthTestFunc
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
SetFrameBuffer
void SetFrameBuffer(iFrameBuffer@ apFrameBuffer,
bool abUsePosAndSize = false)
Parameters
- apFrameBuffer (iFrameBuffer@) —
- abUsePosAndSize (bool) —
Returns:
- void
SetMatrix
SetModelViewMatrix
void SetModelViewMatrix(const cMatrixf &in a_mtxModelView)
Parameters
- a_mtxModelView (cMatrixf) —
Returns:
- void
SetNormalFrustumProjection
void SetNormalFrustumProjection()
Returns:
- void
SetProgram
SetScissorActive
bool SetScissorActive(bool abX)
Parameters
- abX (bool) —
Returns:
- bool—
SetScissorRect
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
- alUnit (int) —
- apTexture (iTexture@) —
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
- apVtxBuffer (iVertexBuffer@) —
Returns:
- void