diff options
author | Nivesh Rajbhandari | 2012-04-04 17:24:27 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-04-04 17:24:27 -0700 |
commit | 01cf259da7aaa7d70789d9a7c32111d88b477463 (patch) | |
tree | 0bff3395ac681e5f685d2267f7dbc03a8e32bc4a /js/helper-classes/RDGE/src/core/script/ScreenQuad.js | |
parent | 331ea08655245e3532e48bf160d5f68a04d8723f (diff) | |
parent | 13368ca6ebbc13adeafccd898dfffd7ce37cb28a (diff) | |
download | ninja-01cf259da7aaa7d70789d9a7c32111d88b477463.tar.gz |
Merge branch 'refs/heads/ToolFixes' into WebGLMaterials
Conflicts:
js/document/templates/montage-html/default_html.css
js/mediators/element-mediator.js
js/panels/properties.reel/properties.js
js/tools/BrushTool.js
js/tools/LineTool.js
js/tools/PenTool.js
js/tools/SelectionTool.js
js/tools/ShapeTool.js
js/tools/TranslateObject3DTool.js
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/helper-classes/RDGE/src/core/script/ScreenQuad.js')
-rwxr-xr-x | js/helper-classes/RDGE/src/core/script/ScreenQuad.js | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/js/helper-classes/RDGE/src/core/script/ScreenQuad.js b/js/helper-classes/RDGE/src/core/script/ScreenQuad.js index 2368d97a..6359f82e 100755 --- a/js/helper-classes/RDGE/src/core/script/ScreenQuad.js +++ b/js/helper-classes/RDGE/src/core/script/ScreenQuad.js | |||
@@ -4,28 +4,26 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot | |||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | 4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. |
5 | </copyright> */ | 5 | </copyright> */ |
6 | 6 | ||
7 | // RDGE namespaces | ||
8 | var RDGE = RDGE || {}; | ||
7 | 9 | ||
8 | function ScreenQuad(texture) | 10 | RDGE.ScreenQuad = function (texture) { |
9 | { | 11 | this.vertBuffer = null; |
10 | this.vertBuffer = null; | 12 | this.uvBuffer = null; |
11 | this.uvBuffer = null; | 13 | this.texture = texture; |
12 | this.texture = texture; | 14 | this.shader = null; |
13 | this.shader = null; | 15 | this.renderObj = null; |
14 | this.renderObj = null; | 16 | }; |
15 | } | ||
16 | 17 | ||
17 | ScreenQuad.prototype.initialize = function(initProc, shaderOpt) | 18 | RDGE.ScreenQuad.prototype.initialize = function (initProc, shaderOpt) { |
18 | { | 19 | initProc(this, shaderOpt); |
19 | initProc(this, shaderOpt); | ||
20 | }; | 20 | }; |
21 | 21 | ||
22 | ScreenQuad.prototype.setTexture = function(texture) | 22 | RDGE.ScreenQuad.prototype.setTexture = function (texture) { |
23 | { | 23 | this.texture = texture; |
24 | this.texture = texture; | ||
25 | }; | 24 | }; |
26 | 25 | ||
27 | 26 | ||
28 | ScreenQuad.prototype.render = function(renderProc) | 27 | RDGE.ScreenQuad.prototype.render = function (renderProc) { |
29 | { | 28 | renderProc(this); |
30 | renderProc(this); | ||
31 | }; \ No newline at end of file | 29 | }; \ No newline at end of file |