/** * Mesh Superset - The apiMesh properties get moved into the Mesh object itself, and then the instance is created * @param graphics GameLib.GraphicsRuntime * @param apiMesh GameLib.D3.API.Mesh * @param font * @param size * @param height * @param curveSegments * @param bevelEnabled * @param bevelThickness * @param bevelSize * @param bevelSegments * @param text * @constructor */ GameLib.D3.Mesh.Text = function ( graphics, apiMesh, text, font, size, height, curveSegments, bevelEnabled, bevelThickness, bevelSize, bevelSegments ) { this.graphics = graphics; this.graphics.isNotThreeThrow(); if (GameLib.Utils.UndefinedOrNull(apiMesh)) { apiMesh = {}; } if (apiMesh instanceof GameLib.D3.Mesh.Box) { return apiMesh; } apiMesh.meshType = GameLib.D3.Mesh.MESH_TYPE_TEXT; if (GameLib.Utils.UndefinedOrNull(text)) { text = '-=