Sha256: 7035ecdeabd5451cfa9c78c2cc40e0d0d0e08c13b030dd852b0810fbfe2cdb04
Contents?: true
Size: 1.1 KB
Versions: 5
Compression:
Stored size: 1.1 KB
Contents
/** * class Jax.View * * Provides a container class around which View functions can be stored. * * This is useful because other parts of Jax will set up helper methods and * delegation methods for a View to make use of. * * For example, one of the most common tasks for a View is to clear the * rendering canvas: * * this.glClear(GL_COLOR_BIT | GL_DEPTH_BUFFER_BIT); * * The _glClear_ method is delegated into the Jax.Context associated with * this view. * * By default, in addition to all WebGL methods, the following delegates and * properties are created by Jax: * * * *world* - the instance of Jax.World that houses all of the objects in * the scene * * *player* - the instance of Jax.Player for this context containing information * about the human user. * * *context* - the instance of Jax.Context that this view is associated with. * **/ Jax.View = (function() { return Jax.Class.create({ initialize: function(view_func) { this.view_func = view_func; }, render: function() { this.view_func(); } }); })();
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
jax-0.0.0.5 | src/jax/view.js |
jax-0.0.0.4 | src/jax/view.js |
jax-0.0.0.3 | src/jax/view.js |
jax-0.0.0.2 | src/jax/view.js |
jax-0.0.0.1 | src/jax/view.js |