Home Reference Source
import GlTextWriter from './ui/gldraw/gltextwriter.js'
public class | source

GlTextWriter

draw text using msdf font texture, using GlRectInstancer

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get
Private Members
private

_cgl: *

private
private

_name: *

private

Method Summary

Public Methods
public
public

render(resX: *, resY: *, scrollX: *, scrollY: *, zoom: *)

public

Public Constructors

public constructor() source

Public Members

public get rectDrawer: * source

Private Members

private _cgl: * source

private _fontTex: * source

private _name: * source

private _rectDrawer: * source

Public Methods

public getFontTexture(): * source

Return:

*

public render(resX: *, resY: *, scrollX: *, scrollY: *, zoom: *) source

Params:

NameTypeAttributeDescription
resX *
resY *
scrollX *
scrollY *
zoom *

public setDebugRenderer(i: *) source

Params:

NameTypeAttributeDescription
i *