From b89a7ee8b956c96a1dcee995ea840feddc5d4b27 Mon Sep 17 00:00:00 2001 From: Pierre Frisch Date: Thu, 22 Dec 2011 07:25:50 -0800 Subject: First commit of Ninja to ninja-internal Signed-off-by: Valerio Virgillito --- .../RDGE/src/core/script/ScreenQuad.js | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 js/helper-classes/RDGE/src/core/script/ScreenQuad.js (limited to 'js/helper-classes/RDGE/src/core/script/ScreenQuad.js') 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 @@ +/* +This file contains proprietary software owned by Motorola Mobility, Inc.
+No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
+(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. +
*/ + + +function ScreenQuad(texture) +{ + this.vertBuffer = null; + this.uvBuffer = null; + this.texture = texture; + this.shader = null; + this.renderObj = null; +} + +ScreenQuad.prototype.initialize = function(initProc, shaderOpt) +{ + initProc(this, shaderOpt); +}; + +ScreenQuad.prototype.setTexture = function(texture) +{ + this.texture = texture; +}; + + +ScreenQuad.prototype.render = function(renderProc) +{ + renderProc(this); +}; \ No newline at end of file -- cgit v1.2.3