Imports the current Win32 source for the pod-racing game 'Red Planet', built on the MUNGA engine and its L4 (Win32/DirectX) platform layer: - MUNGA / MUNGA_L4: cross-platform engine core and Win32 backend - RP / RP_L4: Red Planet game logic and Win32 application - DivLoader, Setup1: asset loader and installer project - lib, MUNGA_L4/openal, MUNGA_L4/sos: third-party audio dependencies Removed stale Subversion metadata and added .gitignore/.gitattributes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
60 lines
1.3 KiB
C++
60 lines
1.3 KiB
C++
#include "mungal4.h"
|
|
#pragma hdrstop
|
|
|
|
#include "l4audres.h"
|
|
#include "l4tool.h"
|
|
#include "l4audio.h"
|
|
|
|
ResourceDescription::ResourceID
|
|
L4Tool::CreateModelAudioStreamResource(
|
|
ResourceFile *resource_file,
|
|
const char *model_name,
|
|
NotationFile *model_file,
|
|
const ResourceDirectories *directories
|
|
)
|
|
{
|
|
return
|
|
L4AudioResourceManager::CreateModelAudioStreamResource(
|
|
resource_file,
|
|
model_name,
|
|
model_file,
|
|
directories
|
|
);
|
|
}
|
|
|
|
ResourceDescription::ResourceID
|
|
L4Tool::CreateStaticAudioStreamResource(
|
|
ResourceFile *resource_file
|
|
)
|
|
{
|
|
return
|
|
L4AudioResourceManager::CreateStaticAudioStreamResource(
|
|
resource_file
|
|
);
|
|
}
|
|
|
|
//
|
|
//#############################################################################
|
|
//#############################################################################
|
|
//
|
|
void L4AudioCreateSymbols::WriteEntryStream(std::ofstream &symbol_file)
|
|
{
|
|
AudioCreateSymbols::WriteEntryStream(symbol_file);
|
|
|
|
#define WRITE_ENTRY(name)\
|
|
{\
|
|
Verify(symbol_file);\
|
|
symbol_file << #name;\
|
|
symbol_file << "=";\
|
|
symbol_file << name;\
|
|
symbol_file << "\n";\
|
|
}
|
|
|
|
WRITE_ENTRY(FrontDirectPatchPosition);
|
|
WRITE_ENTRY(RearDirectPatchPosition);
|
|
WRITE_ENTRY(FrontLeftDirectPatchPosition);
|
|
WRITE_ENTRY(FrontRightDirectPatchPosition);
|
|
WRITE_ENTRY(RearLeftDirectPatchPosition);
|
|
WRITE_ENTRY(RearRightDirectPatchPosition);
|
|
}
|