diff options
Diffstat (limited to 'o3d/samples/o3d-webgl/state_set.js')
-rw-r--r-- | o3d/samples/o3d-webgl/state_set.js | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/o3d/samples/o3d-webgl/state_set.js b/o3d/samples/o3d-webgl/state_set.js index 054b5a8..e421622 100644 --- a/o3d/samples/o3d-webgl/state_set.js +++ b/o3d/samples/o3d-webgl/state_set.js @@ -40,16 +40,16 @@ */ o3d.StateSet = function(opt_state) { o3d.RenderNode.call(this); + + /** + * The State for this StateSet. + * @type {o3d.State} + */ this.state = opt_state || null; }; o3d.inherit('StateSet', 'RenderNode'); - -/** - * The State for this StateSet. - */ -o3d.StateSet.prototype.state = null; - +o3d.ParamObject.setUpO3DParam_(o3d.StateSet, 'state', 'ParamState'); /** * Sets the current state to the member state. @@ -59,4 +59,3 @@ o3d.StateSet.prototype.before = function() { this.state.set(); }; - |