class HmTextoGlobal extends HmAncestralObject3d {
	constructor(_pai, _texto, _fonte, _tamanho, _altura, _peso) {
		super({pai: _pai, texto: _texto, fonte: _fonte, tamanho: _tamanho, altura: _altura, peso: _peso});
	}
		
	preparar() {
		super.preparar();
		this.meiaAltura = this.altura / 2;
	}
	
	criar() {
		super.criar();
	}

	criarTexturaTexto() {
		//var _diretorio = "paint/" + this.autor + "/" + this.codigo;
		//var _nomeArquivo = this.codigo + "-" + this.resolucao + "." + this.ext;
		//this.textura = THREE.ImageUtils.loadTexture(_diretorio + "/" + _nomeArquivo);
		return null;
	}

	criarGeometria(){
		//this.material.map = this.textura;
		this.geometria = new THREE.TextGeometry(this.texto, {
			size: this.tamanho, 
			font: this.fonte, 
			height: this.altura, 
			weight: this.peso
		//font: 'helvetiker',
		});
		/*
		this.geometria.computeBoundingBox();
		var xCentro = -0.5 * (this.geometria.boundingBox.max - this.geometria.boundingBox.min);
		*/
	}
	
	criarMaterial() {
		var textura = this.criarTexturaTexto();
		var this.material = new THREE.MeshPhongMaterial({color: "#444488"}/*, map: textura*/);
		return 
	}
}