summaryrefslogtreecommitdiffstats
path: root/src/rw/RwHelper.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-11 20:05:01 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-11 20:05:01 +0200
commit5f5babe7fe1330bfc2a4f420f7531c06d5af4795 (patch)
treec53d63372761cfa31bd56a90a3c5db025c3c35e8 /src/rw/RwHelper.cpp
parentgarages + script (diff)
parentCRenderer (diff)
downloadre3-5f5babe7fe1330bfc2a4f420f7531c06d5af4795.tar
re3-5f5babe7fe1330bfc2a4f420f7531c06d5af4795.tar.gz
re3-5f5babe7fe1330bfc2a4f420f7531c06d5af4795.tar.bz2
re3-5f5babe7fe1330bfc2a4f420f7531c06d5af4795.tar.lz
re3-5f5babe7fe1330bfc2a4f420f7531c06d5af4795.tar.xz
re3-5f5babe7fe1330bfc2a4f420f7531c06d5af4795.tar.zst
re3-5f5babe7fe1330bfc2a4f420f7531c06d5af4795.zip
Diffstat (limited to 'src/rw/RwHelper.cpp')
-rw-r--r--src/rw/RwHelper.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rw/RwHelper.cpp b/src/rw/RwHelper.cpp
index cb1d4ab5..525c2910 100644
--- a/src/rw/RwHelper.cpp
+++ b/src/rw/RwHelper.cpp
@@ -12,6 +12,7 @@ RtCharset *debugCharset;
#endif
bool gPS2alphaTest = 1;
+bool gBackfaceCulling;
#ifndef FINAL
static bool charsetOpen;
@@ -116,6 +117,15 @@ DefinedState(void)
#endif
}
+void
+SetCullMode(uint32 mode)
+{
+ if(gBackfaceCulling)
+ RwRenderStateSet(rwRENDERSTATECULLMODE, (void*)mode);
+ else
+ RwRenderStateSet(rwRENDERSTATECULLMODE, (void*)rwCULLMODECULLNONE);
+}
+
RwFrame*
GetFirstFrameCallback(RwFrame *child, void *data)
{