class LuaFont
Lua opengl font object.
[source]
methods
LuaFont.Begin
function LuaFont.Begin(userDefinedBlending: boolean?)
@param userDefinedBlending
- When true
doesn’t set the gl.BlendFunc automatically. Defaults to false
.
Begin a block of font commands.
[source]
Fonts can be printed without using Start/End, but when doing several operations it’s more optimal if done inside a block.
Also allows disabling automatic setting of the blend mode. Otherwise the font will always print with BlendFunc(GL.SRC_ALPHA, GL.ONE_MINUS_SRC_ALPHA)
.
@see gl.BlendFuncSeparate
LuaFont.SubmitBuffered
function LuaFont.SubmitBuffered(
noBillboarding: boolean?,
userDefinedBlending: boolean?
)
@param noBillboarding
- When false
sets 3d billboard mode. Defaults to true
.
@param userDefinedBlending
- When true
doesn’t set the gl.BlendFunc automatically. Defaults to false
.
Draws text printed with the buffered
option.
[source]
@see gl.BlendFuncSeparate