name vdatas after type of particle

This commit is contained in:
David Rose 2007-10-25 21:18:58 +00:00
parent 487ac293c7
commit 0c56b38f6a
4 changed files with 4 additions and 4 deletions

View File

@ -137,7 +137,7 @@ resize_pool(int new_size) {
void LineParticleRenderer::
init_geoms() {
_vdata = new GeomVertexData
("particles", GeomVertexFormat::get_v3cp(),
("line_particles", GeomVertexFormat::get_v3cp(),
Geom::UH_stream);
PT(Geom) geom = new Geom(_vdata);
_line_primitive = geom;

View File

@ -112,7 +112,7 @@ resize_pool(int new_size) {
void PointParticleRenderer::
init_geoms() {
_vdata = new GeomVertexData
("particles", GeomVertexFormat::get_v3cp(),
("point_particles", GeomVertexFormat::get_v3cp(),
Geom::UH_stream);
PT(Geom) geom = new Geom(_vdata);
_point_primitive = geom;

View File

@ -133,7 +133,7 @@ resize_pool(int new_size) {
void SparkleParticleRenderer::
init_geoms() {
_vdata = new GeomVertexData
("particles", GeomVertexFormat::get_v3cp(),
("sparkle_particles", GeomVertexFormat::get_v3cp(),
Geom::UH_stream);
PT(Geom) geom = new Geom(_vdata);
_line_primitive = geom;

View File

@ -503,7 +503,7 @@ init_geoms() {
// For each frame of the animation...
for (j = 0; j < _anim_size[i]; ++j) {
_ttl_count[i] = (int *)PANDA_MALLOC_ARRAY(_anim_size[i] * sizeof(int));
_vdata[i].push_back(new GeomVertexData("particles", format, Geom::UH_stream));
_vdata[i].push_back(new GeomVertexData("sprite_particles", format, Geom::UH_stream));
PT(Geom) geom = new Geom(_vdata[i][j]);
_sprite_primitive[i].push_back((Geom*)geom);
_sprites[i].push_back(new GeomPoints(Geom::UH_stream));