Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PointParticleRenderer Class Reference

Simple point/point particle renderer. More...

#include <pointParticleRenderer.h>

Inheritance diagram for PointParticleRenderer:

BaseParticleRenderer ReferenceCount List of all members.

Public Types

enum  PointParticleBlendType { PP_ONE_COLOR, PP_BLEND_LIFE, PP_BLEND_VEL }
enum  ParticleRendererAlphaMode {
  PR_ALPHA_NONE, PR_ALPHA_OUT, PR_ALPHA_IN, PR_ALPHA_USER,
  PR_NOT_INITIALIZED_YET
}
enum  ParticleRendererBlendMethod { PP_NO_BLEND, PP_BLEND_LINEAR, PP_BLEND_CUBIC }

Public Member Functions

 PointParticleRenderer (const PointParticleRenderer &copy)
 Copy constructor.

 PointParticleRenderer (ParticleRendererAlphaMode ad=PR_ALPHA_NONE, float point_size=1.0f, PointParticleBlendType bt=PP_ONE_COLOR, ParticleRendererBlendMethod bm=PP_NO_BLEND, const Colorf &sc=Colorf(1.0f, 1.0f, 1.0f, 1.0f), const Colorf &ec=Colorf(1.0f, 1.0f, 1.0f, 1.0f))
 special constructor

virtual ~PointParticleRenderer (void)
 Simple destructor.

virtual BaseParticleRenderermake_copy (void)
 for spawning systems from dead particles

void set_point_size (float point_size)
void set_start_color (const Colorf &sc)
void set_end_color (const Colorf &ec)
void set_blend_type (PointParticleBlendType bt)
void set_blend_method (ParticleRendererBlendMethod bm)
float get_point_size (void) const
const Colorfget_start_color (void) const
const Colorfget_end_color (void) const
PointParticleBlendType get_blend_type (void) const
ParticleRendererBlendMethod get_blend_method (void) const
GeomNodeget_render_node (void) const
 Query the geomnode pointer.

void set_alpha_mode (ParticleRendererAlphaMode am)
ParticleRendererAlphaMode get_alpha_mode (void) const
void set_user_alpha (float ua)
 sets alpha for "user" alpha mode

float get_user_alpha (void) const
 gets alpha for "user" alpha mode

int get_ref_count () const
 Returns the current reference count.

int ref () const
 Explicitly increments the reference count.

int unref () const
 Explicitly decrements the reference count.

void test_ref_count_integrity () const
 Does some easy checks to make sure that the reference count isn't completely bogus.


Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Protected Member Functions

void update_alpha_mode (ParticleRendererAlphaMode am)
 handles the base class part of alpha updating.

void enable_alpha (void)
 Builds an intermediate node and transition that enables alpha channeling.

void disable_alpha (void)
 kills the intermediate alpha node/arc

float get_cur_alpha (BaseParticle *bp)
 gets current alpha for a particle

 CPT (RenderState) _render_state

Protected Attributes

ParticleRendererAlphaMode _alpha_mode

Private Member Functions

Colorf create_color (const BaseParticle *p)
 Generates the point color based on the render_type.

virtual void birth_particle (int index)
 child birth

virtual void kill_particle (int index)
 child kill

virtual void init_geoms (void)
 On-construction initialization.

virtual void render (pvector< PointerTo< PhysicsObject > > &po_vector, int ttl_particles)
 renders the particle system out to a GeomNode

virtual void resize_pool (int new_size)
 reallocate the space for the vertex and color pools


Private Attributes

Colorf _start_color
Colorf _end_color
float _point_size
PointerTo< GeomPoint_point_primitive
PTA_Vertexf _vertex_array
PTA_Colorf _color_array
int _max_pool_size
PointParticleBlendType _blend_type
ParticleRendererBlendMethod _blend_method
LPoint3f _aabb_min
LPoint3f _aabb_max

Friends

class ParticleSystem

Detailed Description

Simple point/point particle renderer.

Does NOT handle billboards- use BillboardParticleRenderer for that.

Definition at line 46 of file pointParticleRenderer.h.


Member Enumeration Documentation

enum BaseParticleRenderer::ParticleRendererAlphaMode [inherited]
 

Enumeration values:
PR_ALPHA_NONE 
PR_ALPHA_OUT 
PR_ALPHA_IN 
PR_ALPHA_USER 
PR_NOT_INITIALIZED_YET 

Definition at line 65 of file baseParticleRenderer.h.

Referenced by BaseParticleRenderer::set_alpha_mode().

enum BaseParticleRenderer::ParticleRendererBlendMethod [inherited]
 

Enumeration values:
PP_NO_BLEND 
PP_BLEND_LINEAR 
PP_BLEND_CUBIC 

Definition at line 73 of file baseParticleRenderer.h.

Referenced by SpriteParticleRenderer::get_y_scale_flag().

enum PointParticleRenderer::PointParticleBlendType
 

Enumeration values:
PP_ONE_COLOR 
PP_BLEND_LIFE 
PP_BLEND_VEL 

Definition at line 48 of file pointParticleRenderer.h.

Referenced by get_start_color().


Constructor & Destructor Documentation

PointParticleRenderer::PointParticleRenderer const PointParticleRenderer &  copy  ) 
 

Copy constructor.

Definition at line 60 of file pointParticleRenderer.cxx.

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

special constructor

Definition at line 36 of file pointParticleRenderer.cxx.

References _point_primitive, and init_geoms().

PointParticleRenderer::~PointParticleRenderer void   )  [virtual]
 

Simple destructor.

Definition at line 82 of file pointParticleRenderer.cxx.


Member Function Documentation

void PointParticleRenderer::birth_particle int  index  )  [private, virtual]
 

child birth

Implements BaseParticleRenderer.

Definition at line 156 of file pointParticleRenderer.cxx.

References _start_color, BaseParticle::get_parameterized_age(), PP_BLEND_LIFE, and PP_ONE_COLOR.

BaseParticleRenderer::CPT RenderState   )  [protected, inherited]
 

Colorf PointParticleRenderer::create_color const BaseParticle p  )  [private]
 

Generates the point color based on the render_type.

Definition at line 182 of file pointParticleRenderer.cxx.

References _blend_method, and BaseParticleRenderer::PP_BLEND_CUBIC.

void BaseParticleRenderer::disable_alpha void   )  [protected, inherited]
 

kills the intermediate alpha node/arc

Definition at line 99 of file baseParticleRenderer.cxx.

References BaseParticleRenderer::_alpha_mode.

Referenced by BaseParticleRenderer::enable_alpha().

void BaseParticleRenderer::enable_alpha void   )  [protected, inherited]
 

Builds an intermediate node and transition that enables alpha channeling.

Definition at line 86 of file baseParticleRenderer.cxx.

References BaseParticleRenderer::_alpha_mode, BaseParticleRenderer::disable_alpha(), and BaseParticleRenderer::PR_ALPHA_NONE.

BaseParticleRenderer::ParticleRendererAlphaMode BaseParticleRenderer::get_alpha_mode void   )  const [inline, inherited]
 

Definition at line 54 of file baseParticleRenderer.I.

References BaseParticleRenderer::_user_alpha.

BaseParticleRenderer::ParticleRendererBlendMethod PointParticleRenderer::get_blend_method void   )  const [inline]
 

Definition at line 129 of file pointParticleRenderer.I.

PointParticleRenderer::PointParticleBlendType PointParticleRenderer::get_blend_type void   )  const [inline]
 

Definition at line 118 of file pointParticleRenderer.I.

TypeHandle ReferenceCount::get_class_type void   )  [inline, static, inherited]
 

Reimplemented in AnimBundle, AnimBundleNode, AnimChannel< SwitchType >, AnimChannelBase, AnimChannelFixed< SwitchType >, AnimChannelMatrixXfmTable, AnimChannelScalarTable, AnimControl, AnimGroup, MovingPart< SwitchType >, MovingPartBase, MovingPartMatrix, MovingPartScalar, PartBundle, PartBundleNode, PartGroup, Character, CharacterJoint, CharacterJointBundle, CharacterSlider, ComputedVertices, CollisionEntry, CollisionHandler, CollisionHandlerEvent, CollisionHandlerFloor, CollisionHandlerPhysical, CollisionHandlerPusher, CollisionHandlerQueue, CollisionNode, CollisionPlane, CollisionPolygon, CollisionRay, CollisionSegment, CollisionSolid, CollisionSphere, CRGraphicsStateGuardian, CRSavedFrameBuffer, AnalogNode, ButtonNode, ClientAnalogDevice, ClientBase, ClientButtonDevice, ClientDevice, ClientDialDevice, ClientTrackerDevice, DialNode, MouseAndKeyboard, TrackerNode, VirtualMouse, DataNode, GraphicsChannel, GraphicsLayer, GraphicsPipe, GraphicsStateGuardian, GraphicsWindow, HardwareChannel, SavedFrameBuffer, CylindricalLens, FisheyeLens, ProjectionScreen, PSphereLens, DXGraphicsStateGuardian7, DXSavedFrameBuffer7, wdxGraphicsPipe7, wdxGraphicsWindow7, DXGraphicsStateGuardian8, DXSavedFrameBuffer8, wdxGraphicsPipe8, wdxGraphicsWindow8, EggAnimData, EggBin, EggBinMaker, EggComment, EggCoordinateSystem, EggCurve, EggData, EggExternalReference, EggFilenameNode, EggGroup, EggGroupNode, EggGroupUniquifier, EggMaterial, EggNamedObject, EggNameUniquifier, EggNode, EggNurbsCurve, EggNurbsSurface, EggObject, EggPoint, EggPolygon, EggPoolUniquifier, EggPrimitive, EggSAnimData, EggSurface, EggSwitchCondition, EggSwitchConditionDistance, EggTable, EggTexture, EggVertex, EggVertexPool, EggXfmAnimData, EggXfmSAnim, Event, EventStoreValueBase, EventStoreValue< Type >, RefCountProxy< Base >, RefCountObj< Base >, ThatThingie, ThisThingie, WhatAThingie, Thread, TypedReferenceCount, VirtualFile, VirtualFileComposite, VirtualFileSimple, WindowFramework, GLGraphicsStateGuardian, GLSavedFrameBuffer, glxGraphicsPipe, glxGraphicsStateGuardian, glxGraphicsWindow, dDrawable, Geom, GeomLine, GeomLinestrip, GeomPoint, GeomPolygon, GeomQuad, GeomSphere, GeomSprite, GeomTri, GeomTrifan, GeomTristrip, ImageBuffer, Lens, Material, MatrixLens, OrthographicLens, PerspectiveLens, PixelBuffer, Texture, GraphicsStateGuardianBase, Lerp, AutonomousLerp, LerpBlendType, EaseInBlendType, EaseOutBlendType, EaseInOutBlendType, NoBlendType, LerpFunctor, SimpleLerpFunctor< value >, SimpleQueryLerpFunctor< value >, MultiLerpFunctor, BoundingHexahedron, BoundingLine, BoundingSphere, BoundingVolume, FiniteBoundingVolume, GeometricBoundingVolume, OmniBoundingVolume, ClassicNurbsCurve, CubicCurveseg, HermiteCurve, NurbsPPCurve, ParametricCurve, PiecewiseCurve, RopeNode, AlphaTestAttrib, AmbientLight, BillboardEffect, Camera, ClipPlaneAttrib, ColorAttrib, ColorBlendAttrib, ColorScaleAttrib, ColorWriteAttrib, CompassEffect, CullBin, CullBinAttrib, CullBinBackToFront, CullBinFixed, CullBinFrontToBack, CullBinUnsorted, CullFaceAttrib, DecalEffect, DepthOffsetAttrib, DepthTestAttrib, DepthWriteAttrib, DirectionalLight, Fog, FogAttrib, GeomNode, LensNode, Light, LightAttrib, LightLensNode, LightNode, LODNode, MaterialAttrib, ModelNode, ModelRoot, NodePathComponent, PosLerpFunctor, HprLerpFunctor, ScaleLerpFunctor, ColorLerpFunctor, PosHprLerpFunctor, HprScaleLerpFunctor, PosHprScaleLerpFunctor, ColorScaleLerpFunctor, PandaNode, PlaneNode, PointLight, RenderAttrib, RenderEffect, RenderEffects, RenderModeAttrib, RenderState, SelectiveChildNode, SequenceNode, ShowBoundsEffect, Spotlight, SwitchNode, TexMatrixAttrib, TextureApplyAttrib, TextureAttrib, TransformState, EventStoreTransform, TransparencyAttrib, PGButton, PGEntry, PGItem, PGMouseWatcherBackground, PGMouseWatcherGroup, PGMouseWatcherParameter, PGMouseWatcherRegion, PGTop, PGWaitBar, ActorNode, AngularForce, AngularVectorForce, BaseForce, ForceNode, LinearCylinderVortexForce, LinearDistanceForce, LinearForce, LinearFrictionForce, LinearJitterForce, LinearNoiseForce, LinearRandomForce, LinearSinkForce, LinearSourceForce, LinearUserDefinedForce, LinearVectorForce, Physical, PhysicalNode, PhysicsObject, BamReaderParam, ButtonEventList, FactoryParam, Person, Parent, Child, TypedWritableReferenceCount, WritableParam, RIBGraphicsWindow, RIBGraphicsStateGuardian, CasterShader, OutlineShader, PlanarReflector, ProjtexShader, ProjtexShadower, Shader, FrustumShader, SpheretexHighlighter, SpheretexReflector, SpheretexShader, SpotlightShader, TextFont, TextNode, ButtonThrower, DriveInterface, MouseWatcher, MouseWatcherGroup, MouseWatcherRegion, Trackball, Transform2SG, VrpnAnalogDevice, VrpnButtonDevice, VrpnClient, VrpnDialDevice, VrpnTrackerDevice, wcrGraphicsWindow, wglGraphicsPipe, wglGraphicsStateGuardian, wglGraphicsWindow, WinGraphicsPipe, WinGraphicsWindow, AnimChannel< ACScalarSwitchType >, AnimChannel< ACMatrixSwitchType >, MovingPart< ACScalarSwitchType >, MovingPart< ACMatrixSwitchType >, SimpleLerpFunctor< LPoint3f >, SimpleLerpFunctor< LVecBase3f >, and SimpleLerpFunctor< LVecBase4f >.

Definition at line 66 of file referenceCount.h.

float BaseParticleRenderer::get_cur_alpha BaseParticle bp  )  [inline, protected, inherited]
 

gets current alpha for a particle

Definition at line 93 of file baseParticleRenderer.I.

const Colorf & PointParticleRenderer::get_end_color void   )  const [inline]
 

Definition at line 107 of file pointParticleRenderer.I.

References _blend_method.

float PointParticleRenderer::get_point_size void   )  const [inline]
 

Definition at line 85 of file pointParticleRenderer.I.

References _end_color, Colorf, and INLINE.

int ReferenceCount::get_ref_count  )  const [inline, inherited]
 

Returns the current reference count.

Definition at line 183 of file referenceCount.I.

Referenced by RenderState::determine_bin_index(), RenderEffects::determine_show_bounds(), FontPool::ns_garbage_collect(), TexturePool::ns_garbage_collect(), MaterialPool::ns_get_material(), and TexturePool::ns_release_texture().

GeomNode * BaseParticleRenderer::get_render_node void   )  const [inline, inherited]
 

Query the geomnode pointer.

Definition at line 31 of file baseParticleRenderer.I.

References BaseParticleRenderer::init_geoms(), INLINE, and BaseParticleRenderer::update_alpha_mode().

Referenced by SparkleParticleRenderer::kill_particle(), LineParticleRenderer::kill_particle(), and resize_pool().

const Colorf & PointParticleRenderer::get_start_color void   )  const [inline]
 

Definition at line 96 of file pointParticleRenderer.I.

References _blend_type, INLINE, and PointParticleBlendType.

float BaseParticleRenderer::get_user_alpha void   )  const [inline, inherited]
 

gets alpha for "user" alpha mode

Definition at line 80 of file baseParticleRenderer.I.

References BaseParticleRenderer::_user_alpha, and BaseParticleRenderer::PR_ALPHA_USER.

Referenced by GeomParticleRenderer::kill_particle().

void PointParticleRenderer::init_geoms void   )  [private, virtual]
 

On-construction initialization.

Implements BaseParticleRenderer.

Definition at line 136 of file pointParticleRenderer.cxx.

Referenced by PointParticleRenderer().

void ReferenceCount::init_type void   )  [inline, static, inherited]
 

Reimplemented in AnimBundle, AnimBundleNode, AnimChannel< SwitchType >, AnimChannelBase, AnimChannelFixed< SwitchType >, AnimChannelMatrixXfmTable, AnimChannelScalarTable, AnimControl, AnimGroup, MovingPart< SwitchType >, MovingPartBase, MovingPartMatrix, MovingPartScalar, PartBundle, PartBundleNode, PartGroup, Character, CharacterJoint, CharacterJointBundle, CharacterSlider, ComputedVertices, CollisionEntry, CollisionHandler, CollisionHandlerEvent, CollisionHandlerFloor, CollisionHandlerPhysical, CollisionHandlerPusher, CollisionHandlerQueue, CollisionNode, CollisionPlane, CollisionPolygon, CollisionRay, CollisionSegment, CollisionSolid, CollisionSphere, CRGraphicsStateGuardian, CRSavedFrameBuffer, AnalogNode, ButtonNode, ClientAnalogDevice, ClientBase, ClientButtonDevice, ClientDevice, ClientDialDevice, ClientTrackerDevice, DialNode, MouseAndKeyboard, TrackerNode, VirtualMouse, DataNode, GraphicsChannel, GraphicsLayer, GraphicsPipe, GraphicsStateGuardian, GraphicsWindow, HardwareChannel, SavedFrameBuffer, CylindricalLens, FisheyeLens, ProjectionScreen, PSphereLens, DXGraphicsStateGuardian7, DXSavedFrameBuffer7, wdxGraphicsPipe7, wdxGraphicsWindow7, DXGraphicsStateGuardian8, DXSavedFrameBuffer8, wdxGraphicsPipe8, wdxGraphicsWindow8, EggAnimData, EggBin, EggBinMaker, EggComment, EggCoordinateSystem, EggCurve, EggData, EggExternalReference, EggFilenameNode, EggGroup, EggGroupNode, EggGroupUniquifier, EggMaterial, EggNamedObject, EggNameUniquifier, EggNode, EggNurbsCurve, EggNurbsSurface, EggObject, EggPoint, EggPolygon, EggPoolUniquifier, EggPrimitive, EggSAnimData, EggSurface, EggSwitchCondition, EggSwitchConditionDistance, EggTable, EggTexture, EggVertex, EggVertexPool, EggXfmAnimData, EggXfmSAnim, Event, EventStoreValueBase, RefCountProxy< Base >, RefCountObj< Base >, ThatThingie, ThisThingie, WhatAThingie, Thread, TypedReferenceCount, VirtualFile, VirtualFileComposite, VirtualFileSimple, WindowFramework, GLGraphicsStateGuardian, GLSavedFrameBuffer, glxGraphicsPipe, glxGraphicsStateGuardian, glxGraphicsWindow, dDrawable, Geom, GeomLine, GeomLinestrip, GeomPoint, GeomPolygon, GeomQuad, GeomSphere, GeomSprite, GeomTri, GeomTrifan, GeomTristrip, ImageBuffer, Lens, Material, MatrixLens, OrthographicLens, PerspectiveLens, PixelBuffer, Texture, GraphicsStateGuardianBase, Lerp, AutonomousLerp, LerpBlendType, EaseInBlendType, EaseOutBlendType, EaseInOutBlendType, NoBlendType, LerpFunctor, SimpleLerpFunctor< value >, SimpleQueryLerpFunctor< value >, MultiLerpFunctor, BoundingHexahedron, BoundingLine, BoundingSphere, BoundingVolume, FiniteBoundingVolume, GeometricBoundingVolume, OmniBoundingVolume, ClassicNurbsCurve, CubicCurveseg, HermiteCurve, NurbsPPCurve, ParametricCurve, PiecewiseCurve, RopeNode, AlphaTestAttrib, AmbientLight, BillboardEffect, Camera, ClipPlaneAttrib, ColorAttrib, ColorBlendAttrib, ColorScaleAttrib, ColorWriteAttrib, CompassEffect, CullBin, CullBinAttrib, CullBinBackToFront, CullBinFixed, CullBinFrontToBack, CullBinUnsorted, CullFaceAttrib, DecalEffect, DepthOffsetAttrib, DepthTestAttrib, DepthWriteAttrib, DirectionalLight, Fog, FogAttrib, GeomNode, LensNode, Light, LightAttrib, LightLensNode, LightNode, LODNode, MaterialAttrib, ModelNode, ModelRoot, NodePathComponent, PosLerpFunctor, HprLerpFunctor, ScaleLerpFunctor, ColorLerpFunctor, PosHprLerpFunctor, HprScaleLerpFunctor, PosHprScaleLerpFunctor, ColorScaleLerpFunctor, PandaNode, PlaneNode, PointLight, RenderAttrib, RenderEffect, RenderEffects, RenderModeAttrib, RenderState, SelectiveChildNode, SequenceNode, ShowBoundsEffect, Spotlight, SwitchNode, TexMatrixAttrib, TextureApplyAttrib, TextureAttrib, TransformState, EventStoreTransform, TransparencyAttrib, PGButton, PGEntry, PGItem, PGMouseWatcherBackground, PGMouseWatcherGroup, PGMouseWatcherParameter, PGMouseWatcherRegion, PGTop, PGWaitBar, ActorNode, AngularForce, AngularVectorForce, BaseForce, ForceNode, LinearCylinderVortexForce, LinearDistanceForce, LinearForce, LinearFrictionForce, LinearJitterForce, LinearNoiseForce, LinearRandomForce, LinearSinkForce, LinearSourceForce, LinearUserDefinedForce, LinearVectorForce, Physical, PhysicalNode, PhysicsObject, BamReaderParam, ButtonEventList, FactoryParam, Person, Parent, Child, TypedWritableReferenceCount, WritableParam, RIBGraphicsWindow, RIBGraphicsStateGuardian, CasterShader, OutlineShader, PlanarReflector, ProjtexShader, ProjtexShadower, Shader, FrustumShader, SpheretexHighlighter, SpheretexReflector, SpheretexShader, SpotlightShader, TextFont, TextNode, ButtonThrower, DriveInterface, MouseWatcher, MouseWatcherGroup, MouseWatcherRegion, Trackball, Transform2SG, VrpnAnalogDevice, VrpnButtonDevice, VrpnClient, VrpnDialDevice, VrpnTrackerDevice, wcrGraphicsWindow, wglGraphicsPipe, wglGraphicsStateGuardian, wglGraphicsWindow, WinGraphicsPipe, WinGraphicsWindow, AnimChannel< ACScalarSwitchType >, AnimChannel< ACMatrixSwitchType >, MovingPart< ACScalarSwitchType >, MovingPart< ACMatrixSwitchType >, SimpleLerpFunctor< LPoint3f >, SimpleLerpFunctor< LVecBase3f >, and SimpleLerpFunctor< LVecBase4f >.

Definition at line 69 of file referenceCount.h.

References INLINE.

Referenced by ConfigureFn(), and ThatThingie::get_class_type().

void PointParticleRenderer::kill_particle int  index  )  [private, virtual]
 

child kill

Implements BaseParticleRenderer.

Definition at line 169 of file pointParticleRenderer.cxx.

References _blend_method, BaseParticleRenderer::PP_BLEND_CUBIC, and PP_BLEND_VEL.

BaseParticleRenderer * PointParticleRenderer::make_copy void   )  [virtual]
 

for spawning systems from dead particles

Implements BaseParticleRenderer.

Definition at line 95 of file pointParticleRenderer.cxx.

References _color_array, _max_pool_size, _point_primitive, and _vertex_array.

int ReferenceCount::ref  )  const [inline, inherited]
 

Explicitly increments the reference count.

User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically.

This function is const, even though it changes the object, because generally fiddling with an object's reference count isn't considered part of fiddling with the object. An object might be const in other ways, but we still need to accurately count the number of references to it.

The return value is the new reference count.

Definition at line 225 of file referenceCount.I.

Referenced by ClientDevice::ClientDevice(), EggGroupNode::find_textures(), EggGroupNode::r_apply_texmats(), EggGroupNode::r_flatten_transforms(), and EggGroupNode::reverse_vertex_ordering().

void PointParticleRenderer::render pvector< PointerTo< PhysicsObject > > &  po_vector,
int  ttl_particles
[private, virtual]
 

renders the particle system out to a GeomNode

Definition at line 252 of file pointParticleRenderer.cxx.

References _aabb_max, and _aabb_min.

void PointParticleRenderer::resize_pool int  new_size  )  [private, virtual]
 

reallocate the space for the vertex and color pools

Implements BaseParticleRenderer.

Definition at line 111 of file pointParticleRenderer.cxx.

References _point_primitive, _point_size, GeomNode::add_geom(), BaseParticleRenderer::get_render_node(), and GeomNode::remove_all_geoms().

void BaseParticleRenderer::set_alpha_mode BaseParticleRenderer::ParticleRendererAlphaMode  am  )  [inline, inherited]
 

Definition at line 42 of file baseParticleRenderer.I.

References BaseParticleRenderer::_alpha_mode, INLINE, and BaseParticleRenderer::ParticleRendererAlphaMode.

void PointParticleRenderer::set_blend_method BaseParticleRenderer::ParticleRendererBlendMethod  bm  )  [inline]
 

Definition at line 74 of file pointParticleRenderer.I.

References _start_color, Colorf, and INLINE.

void PointParticleRenderer::set_blend_type PointParticleRenderer::PointParticleBlendType  bt  )  [inline]
 

Definition at line 63 of file pointParticleRenderer.I.

void PointParticleRenderer::set_end_color const Colorf ec  )  [inline]
 

Definition at line 52 of file pointParticleRenderer.I.

References _blend_type.

void PointParticleRenderer::set_point_size float  point_size  )  [inline]
 

Definition at line 29 of file pointParticleRenderer.I.

References _start_color, and INLINE.

void PointParticleRenderer::set_start_color const Colorf sc  )  [inline]
 

Definition at line 41 of file pointParticleRenderer.I.

References _end_color, and INLINE.

void BaseParticleRenderer::set_user_alpha float  ua  )  [inline, inherited]
 

sets alpha for "user" alpha mode

Definition at line 67 of file baseParticleRenderer.I.

References BaseParticle::get_parameterized_age(), INLINE, BaseParticleRenderer::PR_ALPHA_IN, and BaseParticleRenderer::PR_ALPHA_OUT.

void ReferenceCount::test_ref_count_integrity  )  const [inline, inherited]
 

Does some easy checks to make sure that the reference count isn't completely bogus.

Definition at line 328 of file referenceCount.I.

References INLINE.

Referenced by EggNode::determine_bin(), and ReferenceCount::~ReferenceCount().

int ReferenceCount::unref  )  const [inline, inherited]
 

Explicitly decrements the reference count.

Note that the object will not be implicitly deleted by unref() simply because the reference count drops to zero. (Having a member function delete itself is problematic; plus, we don't have a virtual destructor anyway.) However, see the helper function unref_delete().

User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically.

This function is const, even though it changes the object, because generally fiddling with an object's reference count isn't considered part of fiddling with the object. An object might be const in other ways, but we still need to accurately count the number of references to it.

The return value is the new reference count.

Definition at line 293 of file referenceCount.I.

References INLINE.

Referenced by RenderState::determine_bin_index(), and RenderEffects::determine_show_bounds().

void BaseParticleRenderer::update_alpha_mode ParticleRendererAlphaMode  am  )  [protected, inherited]
 

handles the base class part of alpha updating.

Definition at line 112 of file baseParticleRenderer.cxx.

Referenced by BaseParticleRenderer::get_render_node().


Friends And Related Function Documentation

friend class ParticleSystem [friend, inherited]
 

Definition at line 109 of file baseParticleRenderer.h.


Member Data Documentation

LPoint3f PointParticleRenderer::_aabb_max [private]
 

Definition at line 92 of file pointParticleRenderer.h.

Referenced by render().

LPoint3f PointParticleRenderer::_aabb_min [private]
 

Definition at line 92 of file pointParticleRenderer.h.

Referenced by render().

ParticleRendererAlphaMode BaseParticleRenderer::_alpha_mode [protected, inherited]
 

Definition at line 90 of file baseParticleRenderer.h.

Referenced by BaseParticleRenderer::disable_alpha(), BaseParticleRenderer::enable_alpha(), GeomParticleRenderer::kill_particle(), SparkleParticleRenderer::render(), LineParticleRenderer::render(), and BaseParticleRenderer::set_alpha_mode().

ParticleRendererBlendMethod PointParticleRenderer::_blend_method [private]
 

Definition at line 90 of file pointParticleRenderer.h.

Referenced by create_color(), get_end_color(), and kill_particle().

PointParticleBlendType PointParticleRenderer::_blend_type [private]
 

Definition at line 89 of file pointParticleRenderer.h.

Referenced by get_start_color(), and set_end_color().

PTA_Colorf PointParticleRenderer::_color_array [private]
 

Definition at line 85 of file pointParticleRenderer.h.

Referenced by make_copy().

Colorf PointParticleRenderer::_end_color [private]
 

Definition at line 79 of file pointParticleRenderer.h.

Referenced by get_point_size(), and set_start_color().

int PointParticleRenderer::_max_pool_size [private]
 

Definition at line 87 of file pointParticleRenderer.h.

Referenced by make_copy().

PointerTo< GeomPoint > PointParticleRenderer::_point_primitive [private]
 

Definition at line 82 of file pointParticleRenderer.h.

Referenced by make_copy(), PointParticleRenderer(), and resize_pool().

float PointParticleRenderer::_point_size [private]
 

Definition at line 80 of file pointParticleRenderer.h.

Referenced by resize_pool().

Colorf PointParticleRenderer::_start_color [private]
 

Definition at line 79 of file pointParticleRenderer.h.

Referenced by birth_particle(), set_blend_method(), and set_point_size().

PTA_Vertexf PointParticleRenderer::_vertex_array [private]
 

Definition at line 84 of file pointParticleRenderer.h.

Referenced by make_copy().


The documentation for this class was generated from the following files:
Generated on Fri May 2 00:54:20 2003 for Panda by doxygen1.3