diff options
-rw-r--r-- | include/pso/TObject.h | 2 | ||||
-rw-r--r-- | src/pso/TObject2.cpp | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/pso/TObject.h b/include/pso/TObject.h index 3a9f097..b224225 100644 --- a/include/pso/TObject.h +++ b/include/pso/TObject.h @@ -55,6 +55,8 @@ public: TObject *up; TObject *down; public: + void disallow_rendering_shadows(); + void allow_rendering_shadows(); void disallow_rendering(); void allow_rendering(); void set_flag_3(); diff --git a/src/pso/TObject2.cpp b/src/pso/TObject2.cpp index 7c9e1c3..5b1a90a 100644 --- a/src/pso/TObject2.cpp +++ b/src/pso/TObject2.cpp @@ -1,5 +1,9 @@ #include "pso/TObject.h" +void TObject::allow_rendering_shadows() { + clear_flags(DISALLOW_RENDER_SHADOWS); +} + void TObject::clear_flag_9() { clear_flags(BIT_9); } @@ -31,3 +35,7 @@ void TObject::allow_rendering() { void TObject::disallow_rendering() { set_flags(DISALLOW_RENDER); } + +void TObject::disallow_rendering_shadows() { + set_flags(DISALLOW_RENDER_SHADOWS); +} |