From 658c045a6fbf6f03c1beb327caec23671428c69b Mon Sep 17 00:00:00 2001 From: "Theunis J. Botha" Date: Tue, 29 Nov 2016 11:29:51 +0100 Subject: [PATCH] API. --- src/game-lib-component-interface.js | 4 ++-- src/game-lib-scene.js | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/game-lib-component-interface.js b/src/game-lib-component-interface.js index 9818e09..5636eca 100644 --- a/src/game-lib-component-interface.js +++ b/src/game-lib-component-interface.js @@ -198,12 +198,12 @@ GameLib.D3.ComponentInterface.API = function( this.sensorLength = sensorLength; if (GameLib.D3.Utils.UndefinedOrNull(spline)) { - spline = new GameLib.D3.Spline.API(null, 'spline'); + spline = new GameLib.D3.API.Spline(null, 'spline'); } this.spline = spline; if (GameLib.D3.Utils.UndefinedOrNull(normalSpline)) { - normalSpline = new GameLib.D3.Spline.API(null, 'normal-spline'); + normalSpline = new GameLib.D3.API.Spline(null, 'normal-spline'); } this.normalSpline = normalSpline; diff --git a/src/game-lib-scene.js b/src/game-lib-scene.js index 9274614..7c6cb02 100644 --- a/src/game-lib-scene.js +++ b/src/game-lib-scene.js @@ -245,7 +245,7 @@ GameLib.D3.Scene.LoadScene = function( var light = new GameLib.D3.Light( graphics, - new GameLib.D3.Light.API( + new GameLib.D3.API.Light( apiLight.id, apiLight.lightType, apiLight.name, @@ -310,7 +310,7 @@ GameLib.D3.Scene.LoadScene = function( var gameLibMaterial = new GameLib.D3.Material( graphics, - new GameLib.D3.Material.API( + new GameLib.D3.API.Material( apiMaterial.id, apiMaterial.materialType, apiMaterial.name, @@ -397,7 +397,7 @@ GameLib.D3.Scene.LoadScene = function( var apiTexture = apiMaps[map].texture; gameLibTextureMap[map].texture = new GameLib.D3.Texture( - new GameLib.D3.Texture.API( + new GameLib.D3.API.Texture( apiTexture.id, map, apiTexture.name, @@ -469,7 +469,7 @@ GameLib.D3.Scene.LoadScene = function( var gameLibMesh = new GameLib.D3.Mesh( graphics, computeNormals, - new GameLib.D3.Mesh.API( + new GameLib.D3.API.Mesh( apiMesh.id, apiMesh.meshType, apiMesh.name, @@ -542,7 +542,7 @@ GameLib.D3.Scene.LoadScene = function( var camera = new GameLib.D3.Camera( graphics, - new GameLib.D3.Camera.API( + new GameLib.D3.API.Camera( apiCamera.id, apiCamera.cameraType, apiCamera.name, @@ -569,7 +569,7 @@ GameLib.D3.Scene.LoadScene = function( var scene3d = new GameLib.D3.Scene( graphics, progressCallback, - new GameLib.D3.Scene.API( + new GameLib.D3.API.Scene( scene.id, scene.path, scene.name,