Panda3D
Public Types | Public Member Functions

PointParticleRenderer Class Reference

Simple point/point particle renderer. More...

Inheritance diagram for PointParticleRenderer:
BaseParticleRenderer

List of all members.

Public Types

enum  ParticleRendererAlphaMode {
  PRALPHANONE = 0, PRALPHAOUT = 1, PRALPHAIN = 2, PRALPHAINOUT = 3,
  PRALPHAUSER = 4, PRNOTINITIALIZEDYET = 5
}
enum  ParticleRendererBlendMethod { PPNOBLEND = 0, PPBLENDLINEAR = 1, PPBLENDCUBIC = 2 }
enum  PointParticleBlendType { PPONECOLOR = 0, PPBLENDLIFE = 1, PPBLENDVEL = 2 }

Public Member Functions

 PointParticleRenderer (ParticleRendererAlphaMode ad, float point_size, PointParticleBlendType bt, ParticleRendererBlendMethod bm, VBase4 const sc, VBase4 const ec)
 PointParticleRenderer (ParticleRendererAlphaMode ad, float point_size, PointParticleBlendType bt, ParticleRendererBlendMethod bm, VBase4 const sc)
 PointParticleRenderer (ParticleRendererAlphaMode ad, float point_size, PointParticleBlendType bt)
 PointParticleRenderer (PointParticleRenderer const copy)
 Copy constructor.
 PointParticleRenderer (ParticleRendererAlphaMode ad, float point_size)
 PointParticleRenderer (ParticleRendererAlphaMode ad, float point_size, PointParticleBlendType bt, ParticleRendererBlendMethod bm)
 PointParticleRenderer (ParticleRendererAlphaMode ad)
 PointParticleRenderer ()
ParticleRendererAlphaMode getAlphaMode ()
ParticleRendererBlendMethod getBlendMethod ()
PointParticleBlendType getBlendType ()
VBase4 const getEndColor ()
bool getIgnoreScale ()
 Returns the "ignore scale" flag.
float getPointSize ()
GeomNode getRenderNode ()
 Query the geomnode pointer.
NodePath getRenderNodePath ()
 Query the geomnode pointer.
VBase4 const getStartColor ()
float getUserAlpha ()
 gets alpha for "user" alpha mode
 output (ostream out)
 Write a string representation of this instance to <out>.
 setAlphaMode (ParticleRendererAlphaMode am)
 setBlendMethod (ParticleRendererBlendMethod bm)
 setBlendType (PointParticleBlendType bt)
 setColorBlendMode (Mode bm, Operand oa, Operand ob)
 sets the ColorBlendAttrib on the _render_node
 setColorBlendMode (Mode bm, Operand oa)
 sets the ColorBlendAttrib on the _render_node
 setColorBlendMode (Mode bm)
 sets the ColorBlendAttrib on the _render_node
 setEndColor (VBase4 const ec)
 setIgnoreScale (bool ignore_scale)
 Sets the "ignore scale" flag.
 setPointSize (float point_size)
 setStartColor (VBase4 const sc)
 setUserAlpha (float ua)
 sets alpha for "user" alpha mode
 write (ostream out)
 Write a string representation of this instance to <out>.
 write (ostream out, int indent)
 Write a string representation of this instance to <out>.

Detailed Description

Simple point/point particle renderer.

Does NOT handle billboards- use BillboardParticleRenderer for that.


Member Enumeration Documentation

enum ParticleRendererAlphaMode [inherited]
Enumerator:
PRALPHANONE 
PRALPHAOUT 
PRALPHAIN 
PRALPHAINOUT 
PRALPHAUSER 
PRNOTINITIALIZEDYET 
enum ParticleRendererBlendMethod [inherited]
Enumerator:
PPNOBLEND 
PPBLENDLINEAR 
PPBLENDCUBIC 
Enumerator:
PPONECOLOR 
PPBLENDLIFE 
PPBLENDVEL 

Constructor & Destructor Documentation

PointParticleRenderer ( ParticleRendererAlphaMode  ad,
float  point_size,
PointParticleBlendType  bt,
ParticleRendererBlendMethod  bm,
VBase4 const  sc,
VBase4 const  ec 
)
PointParticleRenderer ( ParticleRendererAlphaMode  ad,
float  point_size,
PointParticleBlendType  bt,
ParticleRendererBlendMethod  bm,
VBase4 const  sc 
)
PointParticleRenderer ( ParticleRendererAlphaMode  ad,
float  point_size 
)

Copy constructor.


Member Function Documentation

ParticleRendererAlphaMode getAlphaMode ( ) [inherited]
ParticleRendererBlendMethod getBlendMethod ( )
PointParticleBlendType getBlendType ( )
VBase4 const getEndColor ( )
bool getIgnoreScale ( ) [inherited]

Returns the "ignore scale" flag.

See set_ignore_scale().

float getPointSize ( )
GeomNode getRenderNode ( ) [inherited]

Query the geomnode pointer.

NodePath getRenderNodePath ( ) [inherited]

Query the geomnode pointer.

VBase4 const getStartColor ( )
float getUserAlpha ( ) [inherited]

gets alpha for "user" alpha mode

output ( ostream  out) [inherited]

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

setAlphaMode ( ParticleRendererAlphaMode  am) [inherited]
setBlendMethod ( ParticleRendererBlendMethod  bm)
setBlendType ( PointParticleBlendType  bt)
setColorBlendMode ( Mode  bm,
Operand  oa,
Operand  ob 
) [inherited]

sets the ColorBlendAttrib on the _render_node

setColorBlendMode ( Mode  bm) [inherited]

sets the ColorBlendAttrib on the _render_node

setColorBlendMode ( Mode  bm,
Operand  oa 
) [inherited]

sets the ColorBlendAttrib on the _render_node

setEndColor ( VBase4 const  ec)
setIgnoreScale ( bool  ignore_scale) [inherited]

Sets the "ignore scale" flag.

When this is true, particles will be drawn as if they had no scale, regardless of whatever scale might be inherited from above the render node in the scene graph.

This flag is mainly useful to support legacy code that was written for a very early version of Panda, whose sprite particle renderer had a bug that incorrectly ignored the inherited scale.

setPointSize ( float  point_size)
setStartColor ( VBase4 const  sc)
setUserAlpha ( float  ua) [inherited]

sets alpha for "user" alpha mode

write ( ostream  out,
int  indent 
) [inherited]

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

write ( ostream  out) [inherited]

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

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties