Libraries.Game.Graphics.GraphicsManager Documentation

The GraphicsManager class represents a Quorum interface with OpenGL in order to draw on the screen. This is used internally by the Game class, and most users will not need to interact with this class directl

Inherits from: Libraries.Language.Object

Summary

Variable Summary Table

VariablesDescription
integer GL_REPEAT
integer GL_TEXTURE_WRAP_S
integer GL_CLAMP_TO_EDGE
integer GL_NEAREST_MIPMAP_LINEAR
integer GL_TEXTURE_MAG_FILTER
integer GL_TEXTURE_MIN_FILTER
integer GL_NEARESTNote: Currently adding constants as they are needed. Hex values need to be translated to intege
integer GL_LINEAR_MIPMAP_LINEAR
integer GL_UNPACK_ALIGNMENT
integer GL_LINEAR_MIPMAP_NEAREST
integer GL_NEAREST_MIPMAP_NEAREST
integer GL_TEXTURE_WRAP_TThe last coordinates that were used to set the drawing region via the SetViewport actio
integer GL_MIRRORED_REPEAT
integer GL_TEXTURE_2D
integer GL_LINEAR

Actions Summary Table

ActionsDescription
ClearScreen(integer mask)This action clears the screen with the currently stored color in OpenG
ClearScreenColor(number red, number green, number blue, number alpha)This action sets the color to clear the screen with in OpenG
Compare(Libraries.Language.Object object)This action compares two object hash codes and returns an integer.
Equals(Libraries.Language.Object object)This action determines if two objects are equal based on their hash code values.
GetHashCode()This action gets the hash code for an object.
GetViewportHeight()
GetViewportWidth()
GetViewportX()
GetViewportY()
PixelStorageMode(integer type, integer parameter)Sets how OpenGL stores and loads pixels as a number of byte
SetTextureParameter(integer targetTexture, integer parameterType, integer parameterValue)Sets an option identified by the parameterType code inside the texture identified by the given targetTexture ID using the given parameterValu
SetViewport(integer x, integer y, integer width, integer height)

Actions Documentation

ClearScreen(integer mask)

This action clears the screen with the currently stored color in OpenG

Parameters

ClearScreenColor(number red, number green, number blue, number alpha)

This action sets the color to clear the screen with in OpenG

Parameters

Compare(Libraries.Language.Object object)

This action compares two object hash codes and returns an integer. The result is larger if this hash code is larger than the object passed as a parameter, smaller, or equal. In this case, -1 means smaller, 0 means equal, and 1 means larger. This action was changed in Quorum 7 to return an integer, instead of a CompareResult object, because the previous implementation was causing efficiency issues.

Example Code

Object o
        Object t
        integer result = o:Compare(t) //1 (larger), 0 (equal), or -1 (smalle

Parameters

Return

integer: The Compare result, Smaller, Equal, or Larger.

Equals(Libraries.Language.Object object)

This action determines if two objects are equal based on their hash code values.

Example Code

use Libraries.Language.Object
        use Libraries.Language.Types.Text
        Object o
        Text t
        boolean result = o:Equals(

Parameters

Return

boolean: True if the hash codes are equal and false if they are not equal.

GetHashCode()

This action gets the hash code for an object.

Example Code

Object o
        integer hash = o:GetHashCode

Return

integer: The integer hash code of the object.

GetViewportHeight()

Return

integer

GetViewportWidth()

Return

integer

GetViewportX()

Return

integer

GetViewportY()

Return

integer

PixelStorageMode(integer type, integer parameter)

Sets how OpenGL stores and loads pixels as a number of byte

Parameters

SetTextureParameter(integer targetTexture, integer parameterType, integer parameterValue)

Sets an option identified by the parameterType code inside the texture identified by the given targetTexture ID using the given parameterValu

Parameters

SetViewport(integer x, integer y, integer width, integer height)

Parameters