From fb0a659c9ca3479fd6799325498b11f074689936 Mon Sep 17 00:00:00 2001
From: John Mayhew
Date: Mon, 2 Apr 2012 14:57:31 -0700
Subject: -Namespaced all RDGE javascript.
-Removed the following unused files from the build script
/core/script/fx/blur.js
/core/script/fx/ssao.js
/core/script/animation.js
- Fully removed the following from the build and from source control as they are unused or no longer needed
/core/script/util/dbgpanel.js
/core/script/util/fpsTracker.js
/core/script/util/statTracker.js
/core/script/input.js
/core/script/TextureManager.js
/core/script/ubershader.js
---
.../RDGE/src/core/script/util/dbgpanel.js | 237 ---------------------
1 file changed, 237 deletions(-)
delete mode 100755 js/helper-classes/RDGE/src/core/script/util/dbgpanel.js
(limited to 'js/helper-classes/RDGE/src/core/script/util/dbgpanel.js')
diff --git a/js/helper-classes/RDGE/src/core/script/util/dbgpanel.js b/js/helper-classes/RDGE/src/core/script/util/dbgpanel.js
deleted file mode 100755
index f5b9d76d..00000000
--- a/js/helper-classes/RDGE/src/core/script/util/dbgpanel.js
+++ /dev/null
@@ -1,237 +0,0 @@
-/*
-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.
- */
-
-var g_dbgPanel = null;
-
-/**
- * Implements an easy to use debugging panel.
- * @param id - element id of a
to convert into a debug panel
- * @param title - header title for the panel
- */
-function utilDbgPanel(id, title)
-{
- this.id = id;
- this.root = '#' + id;
- this.accordion = this.root + ' .dbgpanel-accordion';
- this.categories = {};
- this.counter = 0;
-
- $(this.root).addClass('dbgpanel-outer ui-widget-content');
- $(this.root).draggable({handle: this.root, containment: 'body'});
- $(this.root).resizable({minWidth: $(this.root).width(), minHeight: $(this.root).height()});
-
- $(this.root).append('
' + title + '
');
- $(this.root).append('');
- $(this.accordion).accordion({clearStyle: true});
-}
-
-/**
- * Adds a label to the debug panel.
- * @param category - category to which to append a label
- */
-utilDbgPanel.prototype.appendLabel = function(category, label)
-{
- var cat = this.getCategorySelector(category);
- $(cat).append('
' + label + '
');
-}
-
-/**
- * Adds a toggle button to the debug panel.
- * @param category - category to which to append a toggle
- * @param value - current value of the boolean
- * @param label - button label
- * @param onChange - function that receives an updated value upon a change
- */
-utilDbgPanel.prototype.appendBoolean = function(category, value, label, onChange)
-{
- var cat = this.getCategorySelector(category);
-
- var button = this.getUniqueID();
- $(cat).append('');
-
- $('#'+button).prop('checked', (value || (value != 0.0)));
- $('#'+button).button({label: label});
- $('#'+button).change(function(e) {
- if (e.target.checked)
- value = (typeof value == "number") ? 1.0 : true;
- else
- value = (typeof value == "number") ? 0.0 : false;
-
- if(onChange)
- onChange(value);
- });
-}
-
-/**
- * Adds a slider to the debug panel.
- * @param category - category to which to append a slider
- * @param value - current value of the number
- * @param rangeMin - minimum permitted value
- * @param rangeMax - maximum permitted value
- * @param stepSize - granularity of allowable values
- * @param onChange - function that receives an updated value upon a change
- */
-utilDbgPanel.prototype.appendNumber = function(category, value, rangeMin, rangeMax, stepSize, onChange)
-{
- var cat = this.getCategorySelector(category);
-
- var slider = this.getUniqueID();
- $(cat).append('');
-
- $('#'+slider).slider({
- min: rangeMin, max: rangeMax,
- value: value,
- step: stepSize,
- slide: function(event, ui) {
- value = ui.value;
- if(onChange)
- onChange(value);
- },
- change: function(event, ui) {
- value = ui.value;
- if(onChange)
- onChange(value);
- }
- });
-}
-
-
-/**
- * Returns a unique id that can be used with child elements of this debug panel.
- */
-utilDbgPanel.prototype.getUniqueID = function()
-{
- return this.id + '_' + this.counter++;
-}
-
-/**
- * Queries the jquery selector corresponding to the passed accordion category.
- * @param category - category div for which to return a selector
- */
-utilDbgPanel.prototype.getCategorySelector = function(category)
-{
- var selector = this.categories[category];
-
- if (selector == undefined)
- {
- // Generate a selector for this category
- selector = this.getUniqueID();
-
- // Add a new div to the accordion ui
- $(this.accordion).accordion("destroy");
- $(this.accordion).append('