float expirationtime,
float size,
bool collisiondetection,
- AtlasPointer texture
+ video::ITexture *texture,
+ v2f texpos,
+ v2f texsize
);
~Particle();
core::aabbox3d<f32> m_box;
core::aabbox3d<f32> m_collisionbox;
video::SMaterial m_material;
+ v2f m_texpos;
+ v2f m_texsize;
v3f m_pos;
v3f m_velocity;
v3f m_acceleration;
- float tex_x0;
- float tex_x1;
- float tex_y0;
- float tex_y1;
LocalPlayer *m_player;
float m_size;
- AtlasPointer m_ap;
u8 m_light;
bool m_collisiondetection;
};
float minexptime, float maxexptime,
float minsize, float maxsize,
bool collisiondetection,
- AtlasPointer ap,
+ video::ITexture *texture,
u32 id);
~ParticleSpawner();
float m_maxexptime;
float m_minsize;
float m_maxsize;
- AtlasPointer m_ap;
+ video::ITexture *m_texture;
std::vector<float> m_spawntimes;
bool m_collisiondetection;
};