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