Panda3D

pointParticleRenderer.I
Go to the documentation of this file.
1 /**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file pointParticleRenderer.I
10 * @author charles
11 * @date 2000-06-20
12 */
13
14 /**
15
16 */
17 INLINE void PointParticleRenderer::
18 set_point_size(PN_stdfloat point_size) {
19 _point_size = point_size;
20 _thick = RenderModeAttrib::make(RenderModeAttrib::M_unchanged, _point_size);
21 }
22
23 /**
24
25 */
26 INLINE void PointParticleRenderer::
27 set_start_color(const LColor& sc) {
28 _start_color = sc;
29 }
30
31 /**
32
33 */
34 INLINE void PointParticleRenderer::
35 set_end_color(const LColor& ec) {
36 _end_color = ec;
37 }
38
39 /**
40
41 */
42 INLINE void PointParticleRenderer::
43 set_blend_type(PointParticleRenderer::PointParticleBlendType bt) {
44 _blend_type = bt;
45 }
46
47 /**
48
49 */
50 INLINE void PointParticleRenderer::
51 set_blend_method(BaseParticleRenderer::ParticleRendererBlendMethod bm) {
52 _blend_method = bm;
53 }
54
55 /**
56
57 */
58 INLINE PN_stdfloat PointParticleRenderer::
59 get_point_size() const {
60 return _point_size;
61 }
62
63 /**
64
65 */
66 INLINE const LColor& PointParticleRenderer::
67 get_start_color() const {
68 return _start_color;
69 }
70
71 /**
72
73 */
74 INLINE const LColor& PointParticleRenderer::
75 get_end_color() const {
76 return _end_color;
77 }
78
79 /**
80
81 */
82 INLINE PointParticleRenderer::PointParticleBlendType PointParticleRenderer::
83 get_blend_type() const {
84 return _blend_type;
85 }
86
87 /**
88
89 */
90 INLINE BaseParticleRenderer::ParticleRendererBlendMethod PointParticleRenderer::
91 get_blend_method() const {
92 return _blend_method;
93 }