open_toontown_panda3d/panda/src/particlesystem/pointParticleRenderer.I

109 lines
3.7 KiB
Plaintext

// Filename: pointParticleRenderer.I
// Created by: charles (20Jun00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
//
// All use of this software is subject to the terms of the Panda 3d
// Software license. You should have received a copy of this license
// along with this source code; you will also find a current copy of
// the license at http://www.panda3d.org/license.txt .
//
// To contact the maintainers of this program write to
// panda3d@yahoogroups.com .
//
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Function : set_point_size
// Access : Public
////////////////////////////////////////////////////////////////////
INLINE void PointParticleRenderer::
set_point_size(float point_size) {
_point_primitive->set_size(point_size);
_point_size = point_size;
}
////////////////////////////////////////////////////////////////////
// Function : set_start_color
// Access : Public
////////////////////////////////////////////////////////////////////
INLINE void PointParticleRenderer::
set_start_color(const Colorf& sc) {
_start_color = sc;
}
////////////////////////////////////////////////////////////////////
// Function : set_end_color
// Access : Public
////////////////////////////////////////////////////////////////////
INLINE void PointParticleRenderer::
set_end_color(const Colorf& ec) {
_end_color = ec;
}
////////////////////////////////////////////////////////////////////
// Function : set_blend_type
// Access : Public
////////////////////////////////////////////////////////////////////
INLINE void PointParticleRenderer::
set_blend_type(PointParticleRenderer::PointParticleBlendType bt) {
_blend_type = bt;
}
////////////////////////////////////////////////////////////////////
// Function : set_blend_method
// Access : Public
////////////////////////////////////////////////////////////////////
INLINE void PointParticleRenderer::
set_blend_method(BaseParticleRenderer::ParticleRendererBlendMethod bm) {
_blend_method = bm;
}
////////////////////////////////////////////////////////////////////
// Function : get_point_size
// Access : Public
////////////////////////////////////////////////////////////////////
INLINE float PointParticleRenderer::
get_point_size(void) const {
return _point_size;
}
////////////////////////////////////////////////////////////////////
// Function : get_start_color
// Access : Public
////////////////////////////////////////////////////////////////////
INLINE const Colorf& PointParticleRenderer::
get_start_color(void) const {
return _start_color;
}
////////////////////////////////////////////////////////////////////
// Function : get_end_color
// Access : Public
////////////////////////////////////////////////////////////////////
INLINE const Colorf& PointParticleRenderer::
get_end_color(void) const {
return _end_color;
}
////////////////////////////////////////////////////////////////////
// Function : get_blend_type
// Access : Public
////////////////////////////////////////////////////////////////////
INLINE PointParticleRenderer::PointParticleBlendType PointParticleRenderer::
get_blend_type(void) const {
return _blend_type;
}
////////////////////////////////////////////////////////////////////
// Function : get_blend_method
// Access : Public
////////////////////////////////////////////////////////////////////
INLINE BaseParticleRenderer::ParticleRendererBlendMethod PointParticleRenderer::
get_blend_method(void) const {
return _blend_method;
}