Last active
August 29, 2015 14:03
-
-
Save kof/ed7898eb285471ac3a7a to your computer and use it in GitHub Desktop.
RenderController
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SomeView.prototype.show = function() { | |
var prevAnimation = { | |
transition: {}, | |
transform: {} | |
} | |
var thisAnimation = { | |
transition: {}, | |
transform: {} | |
} | |
app.controller.show(this, thisAnimation, prevAnimation, callback) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A lot depends on your use case.
Do you want individual renderables to be automatically removed? (in which case you would return a variable-length array of the renderables with their transforms in a
.render
function)Does your entire Scene (made up of several renderables) transform in unison, or do you want atomic control of each renderable in your Scene? The former only requires
RenderController
.