HPL3/Amnesia: Rebirth/Scripting/iLowLevelGraphics

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

iLowLevelGraphics has no public fields.

Functions

Return Type Function And Description
void DrawBoxMinMax(const cVector3f &in avMin, const cVector3f &in avMax, const cColor &in aCol)
void DrawLine(const cVector3f &in avBegin, const cVector3f &in avEnd, const cColor &in aCol)
void DrawLineQuad(const cVector3f &in avPos, const cVector2f &in avSize, const cColor &in aCol)
void DrawSphere(const cVector3f &in avPos, float afRadius, const cColor &in aCol, int alSegments = 32)
tString GetGraphicsInfo()
int GetNumDisplays()
cVector2f GetScreenSizeFloat()
cVector2l GetScreenSizeInt()
cVector2l GetWindowPosition()
void SetBrightness(float afX)
void SetContrast(float afX)
void SetDisplayMode(eDisplayMode aMode)
void SetGammaCorrection(float afX)
void SetVsyncMode(eVSyncMode aMode)

Details

DrawBoxMinMax

void DrawBoxMinMax(const cVector3f &in avMin,
                   const cVector3f &in avMax,
                   const cColor &in aCol)


Parameters

Returns:

  • void

DrawLine

void DrawLine(const cVector3f &in avBegin,
              const cVector3f &in avEnd,
              const cColor &in aCol)


Parameters

Returns:

  • void

DrawLineQuad

void DrawLineQuad(const cVector3f &in avPos,
                  const cVector2f &in avSize,
                  const cColor &in aCol)


Parameters

Returns:

  • void

DrawSphere

void DrawSphere(const cVector3f &in avPos,
                float afRadius,
                const cColor &in aCol,
                int alSegments = 32)


Parameters

  • avPos (cVector3f) —
  • afRadius (float) —
  • aCol (cColor) —
  • alSegments (int) —

Returns:

  • void

GetGraphicsInfo

tString GetGraphicsInfo()

Returns:

  • tString

GetNumDisplays

int GetNumDisplays()

Returns:

  • int

GetScreenSizeFloat

cVector2f GetScreenSizeFloat()

Returns:

  • cVector2f

GetScreenSizeInt

const cVector2l& GetScreenSizeInt()

Returns:

  • const cVector2l&

GetWindowPosition

cVector2l GetWindowPosition()

Returns:

  • cVector2l

SetBrightness

void SetBrightness(float afX)


Parameters

  • afX (float) —

Returns:

  • void

SetContrast

void SetContrast(float afX)


Parameters

  • afX (float) —

Returns:

  • void

SetDisplayMode

void SetDisplayMode(eDisplayMode aMode)


Parameters

Returns:

  • void

SetGammaCorrection

void SetGammaCorrection(float afX)


Parameters

  • afX (float) —

Returns:

  • void

SetVsyncMode

void SetVsyncMode(eVSyncMode aMode)


Parameters

Returns:

  • void

References

See all references...