mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
name vdatas after type of particle
This commit is contained in:
parent
487ac293c7
commit
0c56b38f6a
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user