Example #1
0
void
HdSt_UnitTestDelegate::AddTexture(SdfPath const& id, 
                                  GlfTextureRefPtr const& texture)
{
    HdRenderIndex& index = GetRenderIndex();
    index.InsertBprim(HdPrimTypeTokens->texture, this, id);
    _textures[id] = _Texture(texture);
}
Example #2
0
	void StateIntro::onInit()
	{
		Game::State::onInit();
		cam.setBackgroundColor(sf::Color::Black);

		

		tsInst.clear();
		tsInst.push_back(_Texture());
		_Texture::deserializeCont("Textures_intro.txt");

		gui.add(lyrics = new Gui::Message(Vector2D(-450,250), Color::White, 28U));
		deserialize("StateIntro.txt");
		/*lyrics->addTxt("The tale begins when darkness were only the one thing", 4.5f);
		//lyrics->addTxt("The tale begins", 1.75f);
		//lyrics->addTxt("When darkness were only the one thing", 2.75f);
		lyrics->addTxt("Nothing else existed", 2.f);
		lyrics->addTxt("There was no time", 2.f);
		lyrics->addTxt("Space seemed to be only an illusion", 3.5f);
		lyrics->addTxt("The universe stayed in this holy order", 4.5f);
		lyrics->addTxt("Without reason and purpose", 3.f);
		lyrics->addTxt("But...", 1.5f);
		lyrics->addTxt("Everything will face their end", 3.25f);
		lyrics->addTxt("Sooner or later", 2.f);
		lyrics->addTxt("But still", 2.f);
		lyrics->addTxt("No matter when...", 2.75f);
		lyrics->addTxt("\n\n                                                               Place For Ester Egg", 0.f);
		*/
		sf::Sprite spGen;
		spGen.setColor(Color::Transparent);
		gen.addParticle("particle_introTale.txt", 750,1,0, spGen);

		light = 0;
		radius = -50;
		music.setPitch(1.15);
		music.stop();
		music.play();
		timerLight.restart();

	}