Class vxlProgram

Represents the ESSL source code of each program

Constructor

vxlProgram()

Methods

.copy(prg)

Parameters:

Type Name Description
prg

<static> createFromDOM(id, vertexShaderId, fragmentShaderId)
Creates a program object from the ESSL scripts embedded in the DOM

Parameters:

Type Name Description
Object id

Object vertexShaderId

Object fragmentShaderId

<static> createFromJSON(json)
Creates a new program from the JSON definition passed as parameter

Parameters:

Type Name Description
Object json

<static> createFromTextURL(id, vertexShaderURL, fragmentShaderURL)
Creates a new program using the URLs... work in progress...

Parameters:

Type Name Description
Object id

Object vertexShaderURL

Object fragmentShaderURL

.introspect()
Obtain the list of attributes and uniforms from the code