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

96 lines
2.1 KiB
C++

#ifndef vr_prot_h
#define vr_prot_h
#ifdef __cplusplus
extern "C" {
#endif
typedef enum vr_action {
vr_init_action,
vr_create_action,
vr_delete_action,
vr_flush_action,
vr_sect_pixel_action,
vr_sect_vector_action,
vr_dcs_nest_action,
vr_dcs_link_action,
vr_dcs_prune_action,
vr_draw_scene_action,
vr_draw_scene_complete_action,
vr_list_add_action,
vr_list_remove_action,
vr_morph_action,
vr_version_action,
vr_statistics_action,
vr_readpixels_action,
vr_hspcode_action,
vr_860code_action,
vr_860data_action,
vr_860bss_action,
vr_860args_action,
vr_set_geom_text_action,
vr_update_geom_verts_action,
vr_get_geom_verts_action,
vr_add_geom_connections_action,
vr_set_texmap_texels_action,
vr_sfx_action,
vr_install_sfx_action,
vr_psfx_action,
vr_install_psfx_action,
vr_flush_dcs_artic_action,
vr_damage_action,
vr_random_table_action,
vr_gamma_table_action,
vr_kill_sfx_action,
vr_geometrize_action,
vr_clone_object_action,
vr_set_sect_pixel_action,
vr_set_warning_action,
vr_set_render_prop_action,
vr_create_2d_display_action,
vr_delete_2d_display_action,
vr_flush_2d_display_action,
vr_freemem_action,
vr_sync_action,
vr_get_bounds_action,
vr_get_geom_connections_action,
vr_get_geom_numconnections_action,
vr_cleanup_gg_action,
vr_clear_dcs_action,
vr_remove_dcs_action,
vr_add_dcs_action
} vr_action;
/* some i860 states for transputer-side monitoring */
#define state_vr_rcv_wait_lock 0
#define state_vr_rcv_wait_ack 1
#define state_vr_send_wait_lock 2
#define state_vr_send_wait_ack 3
#define state_vr_dma_wait_lock 4
#define state_vr_dma_wait_ack 5
#define state_vr_dma_spin_lock 6
#define state_vr_texels_wait_lock 7
#define state_vr_texels_wait_ack 8
#define state_vr_texels_spin_lock 9
#define state_vr_cull 10
#define state_vr_draw 11
#define state_monitor 0
#define set_state(a,b,c) if (state_monitor) set_i860_state(a,b,c)
#define aux_state(a,b,c) if (state_monitor) set_i860_auxstate(a,b,c)
#ifdef __cplusplus
}
#endif
#endif