SCENE C++ API  2.0.22
lsrenderable3d.h
1 #pragma once
2 
3 #include <core_api/lsglobaldefinitions.h>
4 #include <core_api/lsreftype.h>
5 
6 namespace SCENE_API {
7 
11 class LSRenderable3D : public LSRefType
12 {
13 public:
17  {
18  m_transparent = false;
19  m_visible = true;
20  }
21 
25  virtual void render() = 0;
26 
30  virtual bool isVisible() const
31  {
32  return m_visible;
33  }
34 
38  virtual void setVisible(bool visible)
39  {
40  m_visible = visible;
41  }
42 
46  virtual bool isTransparent() const
47  {
48  return m_transparent;
49  }
50 
54  virtual void setTransparent(bool transparent)
55  {
56  m_transparent = transparent;
57  }
58 
59 protected:
60  // Flag which determines whether this object is visible.
61  bool m_visible;
62  // Flag which determines whether this object is transparent.
63  bool m_transparent;
64 };
65 
66 }