summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-02-10 13:49:22 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-02-10 13:50:54 -0400
commit088a31ea1940babe3d65c9d56b61f8e574a88358 (patch)
tree8021867ce9f862df2df43fff035cd4fb811bdae7
parente9f51ba7022a2ca5fcaa378503429a628bad572a (diff)
TObject: Add `{,dis}allow_rendering_shadows()`
-rw-r--r--include/pso/TObject.h2
-rw-r--r--src/pso/TObject2.cpp8
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);
+}