Wing Commander
Reconstructed Win32 source (1996)
Loading...
Searching...
No Matches
video.c File Reference

Video resource shutdown and palette allocation. More...

#include "wc1.h"
#include <dos.h>
#include <sys/types.h>

Go to the source code of this file.

Functions

void __stdcall ShutdownVideoHook (short mode)
short __stdcall ReserveContiguousPaletteEntries (short entryCount)
void __stdcall ReleaseContiguousPaletteEntries (short firstEntry)
void PrintPaletteAllocationMap (void)

Variables

short nVideoMode = -1
int aiPilotLevel [12]
short asTargetListRangesArray [16]
short asObjectDrawPosY [SPACE_OBJECT_COUNT]
short asObjectDrawPosX [SPACE_OBJECT_COUNT]
short asPreviousObjectDistance [SPACE_OBJECT_COUNT]
enum ObjectClass aeObjectClass [SPACE_OBJECT_COUNT]
enum ShipObjective aeShipObjectiveList [12]
short asObjectViewFrames [SPACE_OBJECT_COUNT]
int nCurObjectiveRangeValue
signed char acWingmanMessageStatesArray [16]
short asCollisionDelayList [16]

Detailed Description

Video resource shutdown and palette allocation.

Address range 4318f0-431a0f.

Definition in file video.c.

Function Documentation

◆ PrintPaletteAllocationMap()

void PrintPaletteAllocationMap ( void )

Definition at line 79 of file video.c.

References awPalEntryAllocation, and PrintPaletteAllocationMap().

Referenced by PlaySfxWaveFileByNumber(), and PrintPaletteAllocationMap().

◆ ReleaseContiguousPaletteEntries()

void __stdcall ReleaseContiguousPaletteEntries ( short firstEntry)

◆ ReserveContiguousPaletteEntries()

short __stdcall ReserveContiguousPaletteEntries ( short entryCount)

◆ ShutdownVideoHook()

void __stdcall ShutdownVideoHook ( short mode)

Variable Documentation

◆ acWingmanMessageStatesArray

signed char acWingmanMessageStatesArray[16]

◆ aeObjectClass

enum ObjectClass aeObjectClass[SPACE_OBJECT_COUNT]

Definition at line 21 of file video.c.

Referenced by accelerate_and_move_object(), animate_object(), any_enemy(), any_enemy_tail(), apply_force_to_object(), approach_and_engage(), attacker_in_range(), auto_pilot_sequence(), borrow_dust(), build_target_list(), build_your_target_list(), BuildCommunicationRecipientMenu(), call_enemy(), check_destroy_target(), check_for_collision(), check_futurion(), check_next_wave(), crash_time(), Create_explosion_debris(), CreateCannedSceneObject(), cruise_home(), detect_collisions(), detect_enemy_tail(), draw_3d_scanner(), draw_nav_pointer(), draw_sorted_objects_to_buffer(), DrawTargetRangeReadout(), evaluate_damage(), explode(), Explosion(), explosion_shock_wave(), extra_hazard(), FF_missile_intelligence(), find_child_object(), find_child_ship(), find_next_ship_turn_slot(), find_ship_index(), find_vacant_3d_object(), FindEnemyAimingWithinRange(), free_ship(), futurion_intelligence(), generate_stars(), get_color(), get_right_shape(), get_ship_slot(), heat_seeking_missile_intelligence(), house_keep_objects(), in_danger(), inflict_damage(), inherit_leader(), inherit_leader_mission(), InitializeConstellationObject(), intelligence_events(), internal_damage(), intro_drawbackgroundships(), kilrathi_near(), load_ship(), mine_intelligence(), missile_on_tail(), Msit_n_fire(), Mtarget_missile(), nearest_enemy_range(), new_view(), npc_communication(), object_collision(), object_intelligence(), pick_regular_maneuver(), place_exhaust_on_ships(), regulate_turn(), release_all_capital_ship_shapes(), remove_object(), report_kilrathi_rout(), reposition_fixed_child_objects(), request(), rotational_acceleration(), scan_for_enemy(), SelectNextExternalViewObject(), SelectPreviousExternalViewObject(), send_appropriate_message(), send_message(), servicetrack(), set_eye_direction_and_position(), set_objects_data(), set_up_action_sphere(), SetFleetOverviewView(), ShipExplosion(), show_target_disp(), ShowCarrierLaunchSequence(), someone_coming(), strike_mission(), transform_objects_to_your_view(), try2rout(), unactive(), update_objects_in_space(), update_star_field(), and your_internal_damage().

◆ aeShipObjectiveList

◆ aiPilotLevel

◆ asCollisionDelayList

short asCollisionDelayList[16]

Definition at line 26 of file video.c.

Referenced by clear_alert(), start_collision_alert(), and try2end_collision_alert().

◆ asObjectDrawPosX

short asObjectDrawPosX[SPACE_OBJECT_COUNT]

Definition at line 19 of file video.c.

Referenced by draw_sorted_objects_to_buffer(), and intro_drawbackgroundships().

◆ asObjectDrawPosY

short asObjectDrawPosY[SPACE_OBJECT_COUNT]

Definition at line 18 of file video.c.

Referenced by draw_sorted_objects_to_buffer(), and intro_drawbackgroundships().

◆ asObjectViewFrames

◆ asPreviousObjectDistance

short asPreviousObjectDistance[SPACE_OBJECT_COUNT]

Definition at line 20 of file video.c.

Referenced by servicetrack(), and transform_objects_to_your_view().

◆ asTargetListRangesArray

short asTargetListRangesArray[16]

Definition at line 17 of file video.c.

Referenced by build_target_list(), and fire_turrets().

◆ nCurObjectiveRangeValue

int nCurObjectiveRangeValue

Definition at line 24 of file video.c.

Referenced by check_objectives(), DrawCalculatingLabel(), and set_objective_range().

◆ nVideoMode