summaryrefslogtreecommitdiffstats
path: root/src/rw
diff options
context:
space:
mode:
authorFilip Gawin <filip.gawin@zoho.com>2020-04-18 12:08:38 +0200
committerFilip Gawin <filip.gawin@zoho.com>2020-04-18 12:08:38 +0200
commit2b1570de703c32ab43c979c286413a3a1c5e3dc0 (patch)
treeff5510329a08fd5b3dca88de1c9fc5e36abef1b9 /src/rw
parentPart one (diff)
parentZones save/load (diff)
downloadre3-2b1570de703c32ab43c979c286413a3a1c5e3dc0.tar
re3-2b1570de703c32ab43c979c286413a3a1c5e3dc0.tar.gz
re3-2b1570de703c32ab43c979c286413a3a1c5e3dc0.tar.bz2
re3-2b1570de703c32ab43c979c286413a3a1c5e3dc0.tar.lz
re3-2b1570de703c32ab43c979c286413a3a1c5e3dc0.tar.xz
re3-2b1570de703c32ab43c979c286413a3a1c5e3dc0.tar.zst
re3-2b1570de703c32ab43c979c286413a3a1c5e3dc0.zip
Diffstat (limited to 'src/rw')
-rw-r--r--src/rw/RwHelper.cpp3
-rw-r--r--src/rw/rw.cpp40
2 files changed, 2 insertions, 41 deletions
diff --git a/src/rw/RwHelper.cpp b/src/rw/RwHelper.cpp
index e5c4ceae..acf811ad 100644
--- a/src/rw/RwHelper.cpp
+++ b/src/rw/RwHelper.cpp
@@ -91,7 +91,8 @@ DefinedState(void)
RwRenderStateSet(rwRENDERSTATECULLMODE, (void*)rwCULLMODECULLNONE);
#ifdef LIBRW
- #pragma message (" TODO: alphatest func")
+ rw::SetRenderState(rw::ALPHATESTFUNC, rw::ALPHAGREATEREQUAL);
+ rw::SetRenderState(rw::ALPHATESTREF, 3);
#else
// D3D stuff
RwD3D8SetRenderState(D3DRS_ALPHAFUNC, D3DCMP_GREATER);
diff --git a/src/rw/rw.cpp b/src/rw/rw.cpp
deleted file mode 100644
index 09cd246e..00000000
--- a/src/rw/rw.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-#ifndef LIBRW
-#include "common.h"
-
-#include "rwcore.h"
-#include "rpworld.h"
-#include "rpmatfx.h"
-#include "rpskin.h"
-#include "rphanim.h"
-#include "rtbmp.h"
-
-typedef RwV3d *(*rwVectorsMultFn) (RwV3d * pointsOut,
- const RwV3d * pointsIn,
- RwInt32 numPoints,
- const RwMatrix * matrix);
-
-#ifndef RWLIBS
-
-#else
-
-extern "C"
-{
- void* _rwFrameOpen(void* instance, RwInt32 offset, RwInt32 size);
- void* _rwFrameClose(void* instance, RwInt32 offset, RwInt32 size);
- RwFrame* _rwFrameCloneAndLinkClones(RwFrame* root);
- RwFrame* _rwFramePurgeClone(RwFrame* root);
- RwBool RwFrameDirty(RwFrame const* frame);
- void _rwFrameInit(RwFrame* frame);
- RwBool _rwMatrixSetMultFn(rwMatrixMultFn multMat);
- void* _rwMatrixClose(void* instance, RwInt32 offset, RwInt32 size);
- void* _rwMatrixOpen(void* instance, RwInt32 offset, RwInt32 size);
- RwBool _rwVectorSetMultFn(rwVectorMultFn multPoint, rwVectorsMultFn multPoints, rwVectorMultFn multVector, rwVectorsMultFn multVectors);
- void* _rwVectorClose(void* instance, RwInt32 offset, RwInt32 size);
- void* _rwVectorOpen(void* instance, RwInt32 offset, RwInt32 size);
- RwBool _rwPluginRegistryOpen();
- RwBool _rwPluginRegistryClose();
-
- RwInt32 _rwD3D8FindCorrectRasterFormat(RwRasterType type, RwInt32 flags);
-}
-#endif
-#endif \ No newline at end of file