var Mesh = require('./Mesh'); var GameObjectFactory = require('../GameObjectFactory'); if (typeof WEBGL_RENDERER) { GameObjectFactory.register('mesh', function (x, y, vertices, uv, colors, alphas, texture, frame){ return this.displayList.add(new Mesh(this.scene, x, y, vertices, uv, colors, alphas, texture, frame)); } ); }