diff options
Diffstat (limited to 'js/helper-classes')
43 files changed, 79 insertions, 12187 deletions
diff --git a/js/helper-classes/3D/vec-utils.js b/js/helper-classes/3D/vec-utils.js index 3db95ab7..e6db4a8d 100755 --- a/js/helper-classes/3D/vec-utils.js +++ b/js/helper-classes/3D/vec-utils.js | |||
@@ -191,5 +191,74 @@ var VecUtils = exports.VecUtils = Object.create(Object.prototype, | |||
191 | 191 | ||
192 | return vec; | 192 | return vec; |
193 | } | 193 | } |
194 | } | 194 | }, |
195 | |||
196 | matI : | ||
197 | { | ||
198 | value: function(dimen) | ||
199 | { | ||
200 | var mat = []; | ||
201 | for (var i=0; i<dimen*dimen; i++) mat.push(0); | ||
202 | |||
203 | var index = 0; | ||
204 | for (var i=0; i<dimen; i++) | ||
205 | { | ||
206 | mat[index] = 1.0; | ||
207 | index += dimen + 1; | ||
208 | } | ||
209 | |||
210 | return mat; | ||
211 | } | ||
212 | }, | ||
213 | |||
214 | matTranslation: | ||
215 | { | ||
216 | value: function (vec) | ||
217 | { | ||
218 | var mat = Matrix.I(4); | ||
219 | glmat4.translate(mat, vec); | ||
220 | return mat; | ||
221 | } | ||
222 | }, | ||
223 | |||
224 | matRotationX: | ||
225 | { | ||
226 | value: function( angle ) | ||
227 | { | ||
228 | var mat = Matrix.I(4); | ||
229 | glmat4.rotateX(mat, angle); | ||
230 | return mat; | ||
231 | } | ||
232 | }, | ||
233 | |||
234 | matRotationY: | ||
235 | { | ||
236 | value: function( angle ) | ||
237 | { | ||
238 | var mat = Matrix.I(4); | ||
239 | glmat4.rotateY(mat, angle); | ||
240 | return mat; | ||
241 | } | ||
242 | }, | ||
243 | |||
244 | matRotationZ: | ||
245 | { | ||
246 | value: function( angle ) | ||
247 | { | ||
248 | var mat = Matrix.I(4); | ||
249 | glmat4.rotateZ(mat, angle); | ||
250 | return mat; | ||
251 | } | ||
252 | }, | ||
253 | |||
254 | matRotation: | ||
255 | { | ||
256 | value: function(angle, axis) | ||
257 | { | ||
258 | var mat = Matrix.I(4); | ||
259 | glmat4.rotate(mat, angle, axis); | ||
260 | return mat; | ||
261 | } | ||
262 | }, | ||
263 | |||
195 | }); \ No newline at end of file | 264 | }); \ No newline at end of file |
diff --git a/js/helper-classes/RDGE/src/core/script/MeshManager.js b/js/helper-classes/RDGE/src/core/script/MeshManager.js index 43813078..7dfc79d4 100755 --- a/js/helper-classes/RDGE/src/core/script/MeshManager.js +++ b/js/helper-classes/RDGE/src/core/script/MeshManager.js | |||
@@ -69,7 +69,7 @@ MeshManager.prototype.deleteMesh = function (name) | |||
69 | if (model) | 69 | if (model) |
70 | { | 70 | { |
71 | g_Engine.ctxMan.forEach(function(context) | 71 | g_Engine.ctxMan.forEach(function(context) |
72 | { | 72 | { |
73 | context.renderer.deletePrimitive(model.primitive); | 73 | context.renderer.deletePrimitive(model.primitive); |
74 | }); | 74 | }); |
75 | 75 | ||
diff --git a/js/helper-classes/RDGE/src/core/script/run_state.js b/js/helper-classes/RDGE/src/core/script/run_state.js index acdb6797..a5981caa 100755 --- a/js/helper-classes/RDGE/src/core/script/run_state.js +++ b/js/helper-classes/RDGE/src/core/script/run_state.js | |||
@@ -30,9 +30,9 @@ RunState.prototype.Init = function() | |||
30 | this.userRunState.init(); | 30 | this.userRunState.init(); |
31 | } | 31 | } |
32 | 32 | ||
33 | if (this.hasUserState && this.userRunState && this.userRunState.onRunState) | 33 | if (this.hasUserState && this.userRunState && this.userRunState.onRunState) |
34 | this.userRunState.onRunState(); | 34 | this.userRunState.onRunState(); |
35 | 35 | ||
36 | 36 | ||
37 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | 37 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
38 | 38 | ||
@@ -97,11 +97,11 @@ RunState.prototype.ReInit = function() | |||
97 | if(!this.initialized) | 97 | if(!this.initialized) |
98 | { | 98 | { |
99 | this.Init(); | 99 | this.Init(); |
100 | } | 100 | } |
101 | else | 101 | else |
102 | { | 102 | { |
103 | if (this.hasUserState && this.userRunState && this.userRunState.onRunState) | 103 | if (this.hasUserState && this.userRunState && this.userRunState.onRunState) |
104 | this.userRunState.onRunState(); | 104 | this.userRunState.onRunState(); |
105 | } | 105 | } |
106 | } | 106 | } |
107 | 107 | ||
diff --git a/js/helper-classes/RDGE/src/tools/compile-rdge-core.bat b/js/helper-classes/RDGE/src/tools/compile-rdge-core.bat deleted file mode 100644 index b2933fa9..00000000 --- a/js/helper-classes/RDGE/src/tools/compile-rdge-core.bat +++ /dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | java -jar ./compiler.jar --compilation_level SIMPLE_OPTIMIZATIONS --manage_closure_dependencies --js ../core/script/math/vec2.js --js ../core/script/math/vec3.js --js ../core/script/math/vec4.js --js ../core/script/math/mat4.js --js ../core/script/math/quat.js --js ../core/script/util/statTracker.js --js ../core/script/util/fpsTracker.js --js ../core/script/objectManager.js --js ../core/script/precompiled.js --js ../core/script/renderer.js --js ../core/script/renderUtils.js --js ../core/script/jshader.js --js ../core/script/jpass.js --js ../core/script/RenderProcs.js --js ../core/script/RenderInitProcs.js --js ../core/script/MeshManager.js --js ../core/script/TextureManager.js --js ../core/script/ShaderManager.js --js ../core/script/fx/blur.js --js ../core/script/fx/ssao.js --js ../core/script/ScreenQuad.js --js ../core/script/box.js --js ../core/script/camera.js --js ../core/script/shadowLight.js --js ../core/script/utilities.js --js ../core/script/input.js --js ../core/script/engine.js --js ../core/script/scenegraphNodes.js --js ../core/script/scenegraph.js --js ../core/script/lightmanager.js --js ../core/script/rendercontext.js --js ../core/script/animation.js --js ../core/script/particle.js --js ../core/script/run_state.js --js ../core/script/init_state.js --js ../core/script/runtime.js --js ../core/script/util/dbgpanel.js --js_output_file rdge-compiled.js | ||
2 | cd ../core/script | ||
3 | type precompiled.js >> ../../tools/rdge-compiled.js | ||
4 | pause | ||
diff --git a/js/helper-classes/RDGE/src/tools/compile-rdge-core.sh b/js/helper-classes/RDGE/src/tools/compile-rdge-core.sh deleted file mode 100644 index 1a2c4676..00000000 --- a/js/helper-classes/RDGE/src/tools/compile-rdge-core.sh +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | java -jar ./compiler.jar --compilation_level SIMPLE_OPTIMIZATIONS --manage_closure_dependencies --js ../core/script/math/vec2.js --js ../core/script/math/vec3.js --js ../core/script/math/vec4.js --js ../core/script/math/mat4.js --js ../core/script/math/quat.js --js ../core/script/util/statTracker.js --js ../core/script/util/fpsTracker.js --js ../core/script/objectManager.js --js ../core/script/precompiled.js --js ../core/script/renderer.js --js ../core/script/renderUtils.js --js ../core/script/jshader.js --js ../core/script/jpass.js --js ../core/script/RenderProcs.js --js ../core/script/RenderInitProcs.js --js ../core/script/MeshManager.js --js ../core/script/TextureManager.js --js ../core/script/ShaderManager.js --js ../core/script/fx/blur.js --js ../core/script/fx/ssao.js --js ../core/script/ScreenQuad.js --js ../core/script/box.js --js ../core/script/camera.js --js ../core/script/shadowLight.js --js ../core/script/utilities.js --js ../core/script/input.js --js ../core/script/engine.js --js ../core/script/scenegraphNodes.js --js ../core/script/scenegraph.js --js ../core/script/lightmanager.js --js ../core/script/rendercontext.js --js ../core/script/animation.js --js ../core/script/particle.js --js ../core/script/run_state.js --js ../core/script/init_state.js --js ../core/script/runtime.js --js ../core/script/util/dbgpanel.js --js ../core/script/ubershader.js --js_output_file rdge-compiled.js | ||
2 | |||
3 | cat ../core/script/precompiled.js >> ./rdge-compiled.js | ||
diff --git a/js/helper-classes/RDGE/src/tools/compiler.jar b/js/helper-classes/RDGE/src/tools/compiler.jar deleted file mode 100644 index f361e9cd..00000000 --- a/js/helper-classes/RDGE/src/tools/compiler.jar +++ /dev/null | |||
Binary files differ | |||
diff --git a/js/helper-classes/RDGE/src/tools/rdge-compiled.js b/js/helper-classes/RDGE/src/tools/rdge-compiled.js deleted file mode 100644 index d1040d73..00000000 --- a/js/helper-classes/RDGE/src/tools/rdge-compiled.js +++ /dev/null | |||
@@ -1,452 +0,0 @@ | |||