diff options
Diffstat (limited to 'js/helper-classes/RDGE/src/core/script/runtime.js')
-rwxr-xr-x | js/helper-classes/RDGE/src/core/script/runtime.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/js/helper-classes/RDGE/src/core/script/runtime.js b/js/helper-classes/RDGE/src/core/script/runtime.js index 2660e26a..e671ece7 100755 --- a/js/helper-classes/RDGE/src/core/script/runtime.js +++ b/js/helper-classes/RDGE/src/core/script/runtime.js | |||
@@ -51,7 +51,7 @@ RDGE.globals = (function () { | |||
51 | /***************************************************************************************************************/ | 51 | /***************************************************************************************************************/ |
52 | 52 | ||
53 | /* | 53 | /* |
54 | * RDGEState a RDGEstate is an interface that is defined by the user and called by the engine | 54 | * RDGEState a RDGEstate is an interface that is defined by the user and called by the engine |
55 | */ | 55 | */ |
56 | RDGE.core.RDGEState = function RDGEState() { }; | 56 | RDGE.core.RDGEState = function RDGEState() { }; |
57 | RDGE.core.RDGEState.prototype.init = function () { }; | 57 | RDGE.core.RDGEState.prototype.init = function () { }; |
@@ -62,7 +62,7 @@ RDGE.core.RDGEState.prototype.shutdown = function () { }; | |||
62 | RDGE.core.RDGEState.prototype.onComplete = function () { }; | 62 | RDGE.core.RDGEState.prototype.onComplete = function () { }; |
63 | 63 | ||
64 | /* | 64 | /* |
65 | * Calling this makes sure the passed in run state has all the functions | 65 | * Calling this makes sure the passed in run state has all the functions |
66 | * that are required, adding dummy functions where needed | 66 | * that are required, adding dummy functions where needed |
67 | */ | 67 | */ |
68 | RDGE.utilities.validateUserState = function (userState) { | 68 | RDGE.utilities.validateUserState = function (userState) { |
@@ -101,11 +101,11 @@ RDGE.utilities.validateUserState = function (userState) { | |||
101 | }; | 101 | }; |
102 | 102 | ||
103 | /* | 103 | /* |
104 | * Used to start the RDGE engine, pass the initState and runState, both of which are RDGEState objects | 104 | * Used to start the RDGE engine, pass the initState and runState, both of which are RDGEState objects |
105 | * initState is used to asynchronously load scene data while allowing you to render and update if needed | 105 | * initState is used to asynchronously load scene data while allowing you to render and update if needed |
106 | * runState is used clear the execution path for regular rendering and updating once loading is complete | 106 | * runState is used clear the execution path for regular rendering and updating once loading is complete |
107 | * @param initState - the initialization state, false if you don't want to use one | 107 | * @param initState - the initialization state, false if you don't want to use one |
108 | * @param runState - the run state | 108 | * @param runState - the run state |
109 | */ | 109 | */ |
110 | RDGE.RDGEStart = function (canvasOrID) { | 110 | RDGE.RDGEStart = function (canvasOrID) { |
111 | var canvas = canvasOrID; | 111 | var canvas = canvasOrID; |
@@ -118,11 +118,11 @@ RDGE.RDGEStart = function (canvasOrID) { | |||
118 | 118 | ||
119 | RDGE.globals.engine.registerCanvas(canvas); | 119 | RDGE.globals.engine.registerCanvas(canvas); |
120 | 120 | ||
121 | if (!canvas.task) | 121 | if (!canvas.task) |
122 | { | 122 | { |
123 | //canvas.task = new RDGE.RDGETask(canvas, true); | 123 | //canvas.task = new RDGE.RDGETask(canvas, true); |
124 | canvas.task = new RDGE.RDGETask(canvas, false); | 124 | canvas.task = new RDGE.RDGETask(canvas, false); |
125 | } | 125 | } |
126 | 126 | ||
127 | if (!RDGE.globals.shaderMan) | 127 | if (!RDGE.globals.shaderMan) |
128 | RDGE.globals.shaderMan = new RDGE.ShaderManager(); | 128 | RDGE.globals.shaderMan = new RDGE.ShaderManager(); |