Add support for packed Unreal Engine 1 vertex mesh format.
(concatenated "UMSH" signature + datafile + anivfile) This is pretty much 100% functional by now. Hasn't been tested on platforms other than Linux yet, though. Code definitely deserves some cleaning.
This commit is contained in:
parent
0fae13bab4
commit
f285e550d6
4 changed files with 345 additions and 0 deletions
|
|
@ -39,6 +39,7 @@
|
|||
#include "g_levellocals.h"
|
||||
#include "r_utility.h"
|
||||
#include "r_data/models/models.h"
|
||||
#include "r_data/models/models_ue1.h"
|
||||
#include "i_time.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
|
@ -426,6 +427,10 @@ static unsigned FindModel(const char * path, const char * modelfile)
|
|||
{
|
||||
model = new FMD3Model;
|
||||
}
|
||||
else if (!memcmp(buffer, "UMSH", 4))
|
||||
{
|
||||
model = new FUE1Model;
|
||||
}
|
||||
|
||||
if (model != nullptr)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue