Files
arcattackandClaude Opus 4.8 7b7d465e5e Initial commit: bt411 -- standalone Windows BattleTech (Tesla 4.10 port)
Clean, self-contained extraction of the BattleTech-specific work from the
reverse-engineering workspace -- engine + game + content + build, with nothing
from Red Planet or the raw archive dumps. Builds green (Win32) and runs the
single-player drive->animate->target->fire->damage->destroy loop out of the box.

Layout:
  engine/   MUNGA + MUNGA_L4 shared 2007 engine, carrying our BT render/loader
            work (bgfload/L4D3D/L4VIDEO: BSL bit-slice decode, LOD/ground/shadow
            models) + image codec; the minimal rp/ headers the audio HAL needs
  game/     reconstructed BT logic + surviving-original BT source + fwd shims
            + WinMain launcher
  content/  full runtime tree (BTL4.RES, VIDEO/, GAUGE/, AUDIO/, eggs, BTDPL.INI)
  docs/     format specs + reconstruction ledgers
  reference/ raw Ghidra pseudocode (recon source-of-truth) + decomp exporter
  tools/    MP console emulator + map/resource scanners

One top-level CMake builds munga_engine lib + bt410_l4 game lib + btl4.exe.
All paths relativized (186 fwd shims + ~437 CMake abs paths -> repo-relative);
DXSDK is the one external, overridable via -DDXSDK. Verified: builds to a
byte-identical 2.27MB exe and runs combat (TARGET DESTROYED, 0 crashes) against
the bundled content.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-05 21:03:40 -05:00

85 lines
2.2 KiB
C++

/*
-- ----------------------------------------------------------------------------
--
-- Copyright 1995 Division Limited.
-- All Rights Reserved
--
--
-- System :
-- Module :
-- Object Name : $RCSfile: __ptool.h,v $
-- Revision : $Revision: 1.11 $
-- Date : $Date: 95/05/16 13:46:18 $
-- Author : $Author: bill $
--
-- Description
--
-- Notes
--
-- History
--
--
-- ----------------------------------------------------------------------------
*/
/* __ptools2.h */
#ifndef ____PTOOL_H__
#define ____PTOOL_H__
#ifdef _PF_LOCAL
#include "ptool.h"
#else
#include <dsys/ptool.h>
#endif
/* ver change */
/* 2.01 Initial version for tools library */
/* 2.02 New line definitions and coping with texture etc */
/* 2.03 New material stuff */
/* 2.04 New STRIP_LIST and POINTLIST */
#define dpt_LIBRARY_MAJOR_VER 2
#define dpt_LIBRARY_MINOR_VER 04
#define dpt_TINY_float32 1.0e-24
/*************************************************************
* ptmesh Routines used by other dptOols *
*************************************************************/
dpfVERTEXPTR
dptCreateVertex(void) ;
dpfVERTEXPTR
dptMeshAddVertex ( dptMESHPTR mesh, dpfVERTEXPTR Fvert ) ;
dpfVERTEXPTR
dptMeshAddNewVertex(dptMESHPTR mesh, dpfPATCHPTR patch, dmVector point,
dmVector norm, dpfRGBA col, dpfTEXT text) ;
dptTRIANGLEPTR
dptMeshAddTriangle(dptMESHPTR mesh, dpfPATCHPTR patch, dpfVERTEXPTR vert1,
dpfVERTEXPTR vert2, dpfVERTEXPTR vert3) ;
void
dptMeshRemoveTriangle(dptMESHPTR mesh, dptTRIANGLEPTR trian) ;
void
dptMeshUnloadGeometry(dptTRIANGLEPTR start, dptMESHPTR mesh, dpfPATCHPTR patch,
int32 usePmesh) ;
void
dptMeshDisconnectTriangle(dptMESHPTR mesh, dptTRIANGLEPTR trian) ;
void
dptMeshConnectTriangle(dptMESHPTR mesh, dptTRIANGLEPTR trian) ;
void
dptAddGeometryPatch(dptMESHPTR mesh, dpfGEOMETRYPTR geom) ;
/* reduce a mesh, used in ptbound */
int32
dptrReduceMesh(dptMESHPTR mesh, float32 Norm_tol, float32 Edge_tol,
int32 Verbose) ;
/* defined in ptreduce, used also in ptflip */
dptTRIANGLEPTR
dptGetTriangleDuplicate(dptTRIANGLEPTR tri) ;
#endif /* ____PTOOL_H__ */