Panda3D

Loading...
Searching...
No Matches
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 */
17INLINE void PointParticleRenderer::
18set_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 */
26INLINE void PointParticleRenderer::
27set_start_color(const LColor& sc) {
28 _start_color = sc;
29}
30
31/**
32
33 */
34INLINE void PointParticleRenderer::
35set_end_color(const LColor& ec) {
36 _end_color = ec;
37}
38
39/**
40
41 */
42INLINE void PointParticleRenderer::
43set_blend_type(PointParticleRenderer::PointParticleBlendType bt) {
44 _blend_type = bt;
45}
46
47/**
48
49 */
50INLINE void PointParticleRenderer::
51set_blend_method(BaseParticleRenderer::ParticleRendererBlendMethod bm) {
52 _blend_method = bm;
53}
54
55/**
56
57 */
58INLINE PN_stdfloat PointParticleRenderer::
59get_point_size() const {
60 return _point_size;
61}
62
63/**
64
65 */
66INLINE const LColor& PointParticleRenderer::
67get_start_color() const {
68 return _start_color;
69}
70
71/**
72
73 */
74INLINE const LColor& PointParticleRenderer::
75get_end_color() const {
76 return _end_color;
77}
78
79/**
80
81 */
82INLINE PointParticleRenderer::PointParticleBlendType PointParticleRenderer::
83get_blend_type() const {
84 return _blend_type;
85}
86
87/**
88
89 */
90INLINE BaseParticleRenderer::ParticleRendererBlendMethod PointParticleRenderer::
91get_blend_method() const {
92 return _blend_method;
93}
RenderModeAttrib::make
static ConstPointerTo< RenderAttrib > make(Mode mode, PN_stdfloat thickness=1.0f, bool perspective=false, const LColor &wireframe_color=LColor::zero())
Constructs a new RenderModeAttrib object that specifies whether to draw polygons in the normal,...
Definition renderModeAttrib.cxx:44