From 8161ab573fd6f8a45b3986278ce7fc1596140526 Mon Sep 17 00:00:00 2001 From: Kahrl Date: Mon, 24 Jun 2013 04:17:50 +0200 Subject: Remove texture atlas / AtlasPointer, rename getTextureRaw to getTexture --- src/game.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 65b52777a..bcd155a79 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1345,7 +1345,7 @@ void the_game( */ int crack_animation_length = 5; { - video::ITexture *t = tsrc->getTextureRaw("crack_anylength.png"); + video::ITexture *t = tsrc->getTexture("crack_anylength.png"); v2u32 size = t->getOriginalSize(); crack_animation_length = size.Y / size.X; } @@ -2312,7 +2312,7 @@ void the_game( else if(event.type == CE_SPAWN_PARTICLE) { LocalPlayer* player = client.getEnv().getLocalPlayer(); - AtlasPointer ap = + video::ITexture *texture = gamedef->tsrc()->getTexture(*(event.spawn_particle.texture)); new Particle(gamedef, smgr, player, client.getEnv(), @@ -2321,12 +2321,15 @@ void the_game( *event.spawn_particle.acc, event.spawn_particle.expirationtime, event.spawn_particle.size, - event.spawn_particle.collisiondetection, ap); + event.spawn_particle.collisiondetection, + texture, + v2f(0.0, 0.0), + v2f(1.0, 1.0)); } else if(event.type == CE_ADD_PARTICLESPAWNER) { LocalPlayer* player = client.getEnv().getLocalPlayer(); - AtlasPointer ap = + video::ITexture *texture = gamedef->tsrc()->getTexture(*(event.add_particlespawner.texture)); new ParticleSpawner(gamedef, smgr, player, @@ -2343,7 +2346,7 @@ void the_game( event.add_particlespawner.minsize, event.add_particlespawner.maxsize, event.add_particlespawner.collisiondetection, - ap, + texture, event.add_particlespawner.id); } else if(event.type == CE_DELETE_PARTICLESPAWNER) -- cgit v1.2.3