1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- /**
- * @author sunag / http://www.sunag.com.br/
- */
- function NodeFrame( time ) {
- this.time = time !== undefined ? time : 0;
- this.frameId = 0;
- };
- NodeFrame.prototype = {
- constructor: NodeFrame,
- update: function ( delta ) {
- ++this.frameId;
- this.time += delta;
- this.delta = delta;
- return this;
- },
-
- setRenderer: function( renderer ) {
-
- this.renderer = renderer;
-
- return this;
-
- },
-
- updateNode: function ( node ) {
- if ( node.frameId === this.frameId ) return this;
- node.updateFrame( this );
- node.frameId = this.frameId;
- return this;
- }
-
- };
- export { NodeFrame };
|