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