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 - 2004, 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://etc.cmu.edu/panda3d/docs/license/ .
//
// To contact the maintainers of this program write to
// panda3d-general@lists.sourceforge.net .
//
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Function : set_point_size
// Access : Public
////////////////////////////////////////////////////////////////////
INLINE void PointParticleRenderer::
set_point_size(float point_size) {
_point_size = point_size;
_thick = RenderModeAttrib::make(RenderModeAttrib::M_unchanged, _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() const {
return _point_size;
}
////////////////////////////////////////////////////////////////////
// Function : get_start_color
// Access : Public
////////////////////////////////////////////////////////////////////
INLINE const Colorf& PointParticleRenderer::
get_start_color() const {
return _start_color;
}
////////////////////////////////////////////////////////////////////
// Function : get_end_color
// Access : Public
////////////////////////////////////////////////////////////////////
INLINE const Colorf& PointParticleRenderer::
get_end_color() const {
return _end_color;
}
////////////////////////////////////////////////////////////////////
// Function : get_blend_type
// Access : Public
////////////////////////////////////////////////////////////////////
INLINE PointParticleRenderer::PointParticleBlendType PointParticleRenderer::
get_blend_type() const {
return _blend_type;
}
////////////////////////////////////////////////////////////////////
// Function : get_blend_method
// Access : Public
////////////////////////////////////////////////////////////////////
INLINE BaseParticleRenderer::ParticleRendererBlendMethod PointParticleRenderer::
get_blend_method() const {
return _blend_method;
}