June 2017
Beginner to intermediate
368 pages
8h 31m
English
In Eclipse, create a new folder called /amd/src and a new file called model_renderer.js:

The structure of AMD modules is described in the Moodle documentation at: https://docs.moodle.org/dev/Javascript_Modules.
Within model_renderer.js, we will implement what is, in essence, a single closure function that will be called from view.php. Within the close, we can implement an init() function to initialize the wavefront renderer and allow the user to manipulate the model. Rather than repeat the code here, check out the complete declaration at https://github.com/iandavidwild/moodle-mod_wavefront/blob/develop/amd/src/model_renderer.js ...
Read now
Unlock full access