Panda3D
Public Types | Public Member Functions

PointParticleRenderer Class Reference

Simple point/point particle renderer. More...

#include "pointParticleRenderer.h"

Inheritance diagram for PointParticleRenderer:
BaseParticleRenderer ReferenceCount MemoryBase

List of all members.

Public Types

enum  PointParticleBlendType { PP_ONE_COLOR, PP_BLEND_LIFE, PP_BLEND_VEL }

Public Member Functions

 PointParticleRenderer (const PointParticleRenderer &copy)
 Copy constructor.
 PointParticleRenderer (ParticleRendererAlphaMode ad=PR_ALPHA_NONE, PN_stdfloat point_size=1.0f, PointParticleBlendType bt=PP_ONE_COLOR, ParticleRendererBlendMethod bm=PP_NO_BLEND, const LColor &sc=LColor(1.0f, 1.0f, 1.0f, 1.0f), const LColor &ec=LColor(1.0f, 1.0f, 1.0f, 1.0f))
 special constructor
virtual ~PointParticleRenderer ()
 Simple destructor.
ParticleRendererBlendMethod get_blend_method () const
PointParticleBlendType get_blend_type () const
const LColorget_end_color () const
PN_stdfloat get_point_size () const
const LColorget_start_color () const
virtual BaseParticleRenderermake_copy ()
 for spawning systems from dead particles
virtual void output (ostream &out) const
 Write a string representation of this instance to <out>.
void set_blend_method (ParticleRendererBlendMethod bm)
void set_blend_type (PointParticleBlendType bt)
void set_end_color (const LColor &ec)
void set_point_size (PN_stdfloat point_size)
void set_start_color (const LColor &sc)
virtual void write (ostream &out, int indent_level=0) const
 Write a string representation of this instance to <out>.

Detailed Description

Simple point/point particle renderer.

Does NOT handle billboards- use BillboardParticleRenderer for that.

Definition at line 36 of file pointParticleRenderer.h.


Constructor & Destructor Documentation

PointParticleRenderer::PointParticleRenderer ( const PointParticleRenderer copy)

Copy constructor.

Definition at line 52 of file pointParticleRenderer.cxx.

Referenced by make_copy().

PointParticleRenderer::PointParticleRenderer ( ParticleRendererAlphaMode  ad = PR_ALPHA_NONE,
PN_stdfloat  point_size = 1.0f,
PointParticleBlendType  bt = PP_ONE_COLOR,
ParticleRendererBlendMethod  bm = PP_NO_BLEND,
const LColor sc = LColor(1.0f, 1.0f, 1.0f, 1.0f),
const LColor ec = LColor(1.0f, 1.0f, 1.0f, 1.0f) 
)

special constructor

Definition at line 32 of file pointParticleRenderer.cxx.

PointParticleRenderer::~PointParticleRenderer ( ) [virtual]

Simple destructor.

Definition at line 71 of file pointParticleRenderer.cxx.


Member Function Documentation

BaseParticleRenderer * PointParticleRenderer::make_copy ( ) [virtual]

for spawning systems from dead particles

Implements BaseParticleRenderer.

Definition at line 81 of file pointParticleRenderer.cxx.

References PointParticleRenderer().

void PointParticleRenderer::output ( ostream &  out) const [virtual]

Write a string representation of this instance to <out>.

Reimplemented from BaseParticleRenderer.

Definition at line 299 of file pointParticleRenderer.cxx.

void PointParticleRenderer::write ( ostream &  out,
int  indent_level = 0 
) const [virtual]

Write a string representation of this instance to <out>.

Reimplemented from BaseParticleRenderer.

Definition at line 312 of file pointParticleRenderer.cxx.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations