Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inheritance in TG.Program #20

Open
fernandojsg opened this issue Feb 2, 2015 · 1 comment
Open

Inheritance in TG.Program #20

fernandojsg opened this issue Feb 2, 2015 · 1 comment

Comments

@fernandojsg
Copy link
Contributor

Every TG.Program needs the same two functions getParamsand setParamValue.

getParams: function () {
    return params;
},
setParamValue: function ( id, value ) {
    params[ id ] = value;
},

Could be nice to be implemented just in TG.Program, not on every subclass.

@mrdoob
Copy link
Owner

mrdoob commented Feb 3, 2015

Yeah, the problem is that inheritance works backwards now... TG.Program adds stuff to the program. In order to implement the proper way the code becomes a bit more verbose but I'll see if I can find a way 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants