diff options
author | Pierre Frisch | 2011-12-22 07:25:50 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-01-27 11:18:17 -0800 |
commit | b89a7ee8b956c96a1dcee995ea840feddc5d4b27 (patch) | |
tree | 0f3136ab0ecdbbbed6a83576581af0a53124d6f1 /js/helper-classes/RDGE/src/core/script/ScreenQuad.js | |
parent | 2401f05d1f4b94d45e4568b81fc73e67b969d980 (diff) | |
download | ninja-b89a7ee8b956c96a1dcee995ea840feddc5d4b27.tar.gz |
First commit of Ninja to ninja-internal
Signed-off-by: Valerio Virgillito <rmwh84@motorola.com>
Diffstat (limited to 'js/helper-classes/RDGE/src/core/script/ScreenQuad.js')
-rw-r--r-- | js/helper-classes/RDGE/src/core/script/ScreenQuad.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/js/helper-classes/RDGE/src/core/script/ScreenQuad.js b/js/helper-classes/RDGE/src/core/script/ScreenQuad.js new file mode 100644 index 00000000..2368d97a --- /dev/null +++ b/js/helper-classes/RDGE/src/core/script/ScreenQuad.js | |||
@@ -0,0 +1,31 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
5 | </copyright> */ | ||
6 | |||
7 | |||
8 | function ScreenQuad(texture) | ||
9 | { | ||
10 | this.vertBuffer = null; | ||
11 | this.uvBuffer = null; | ||
12 | this.texture = texture; | ||
13 | this.shader = null; | ||
14 | this.renderObj = null; | ||
15 | } | ||
16 | |||
17 | ScreenQuad.prototype.initialize = function(initProc, shaderOpt) | ||
18 | { | ||
19 | initProc(this, shaderOpt); | ||
20 | }; | ||
21 | |||
22 | ScreenQuad.prototype.setTexture = function(texture) | ||
23 | { | ||
24 | this.texture = texture; | ||
25 | }; | ||
26 | |||
27 | |||
28 | ScreenQuad.prototype.render = function(renderProc) | ||
29 | { | ||
30 | renderProc(this); | ||
31 | }; \ No newline at end of file | ||