From 416ce9d4954e0a7f4ee7b9afe43bf691fdb276f4 Mon Sep 17 00:00:00 2001 From: hwc487 Date: Fri, 6 Apr 2012 05:18:48 -0700 Subject: texture notifications --- js/lib/rdge/materials/material.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'js/lib/rdge/materials/material.js') diff --git a/js/lib/rdge/materials/material.js b/js/lib/rdge/materials/material.js index a81ca18f..bc4c8e6b 100755 --- a/js/lib/rdge/materials/material.js +++ b/js/lib/rdge/materials/material.js @@ -257,6 +257,13 @@ var Material = function GLMaterial( world ) { return tex; }; + this.updateTextures = function() + { + // this function is called whenever a world that generates textuers for + // the current world changes in some way. Sub-classes with textures + // should override this function. + } + this.export = function() { // this function should be overridden by subclasses var exportStr = "material: " + this.getShaderName() + "\n" + "endMaterial\n"; -- cgit v1.2.3