|
Wing Commander
Reconstructed Win32 source (1996)
|
Common types, macros and utility prototypes. More...
#include <windows.h>#include <ddraw.h>#include <mmsystem.h>#include <conio.h>#include <direct.h>#include <io.h>#include <ctype.h>#include <errno.h>#include <fcntl.h>#include <math.h>#include <stdarg.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <time.h>Go to the source code of this file.
Data Structures | |
| struct | IxSample |
| struct | IxSound |
| struct | Viewport |
| struct | Shape |
| struct | MouseCursorState |
| struct | InputEvent |
| struct | InputEventState |
| struct | InputDeviceSample |
| struct | RasterSurface |
| struct | RasterClip |
| struct | ShapeFrame |
| struct | RLETransformVertex |
| struct | RLEShape |
| struct | RLEFrameHeader |
| struct | FontWorkspace |
| struct | TextContext |
| struct | CockpitReadout |
| struct | ModalTextPanel |
| struct | HudMessageSlot |
| struct | RoomMenu |
| struct | ScreenAllocation |
| struct | WaveTableEntry |
| struct | ActiveSoundEntry |
| struct | TaggedAllocationHeader |
| struct | GuardedAllocation |
| struct | DebugOverlayConsole |
Macros | |
| #define | DEGREES_TO_RADIANS 0.017453292519943295 |
| #define | COM_RELEASE(surface) |
| #define | SPRITE_ROW_OFFSET(viewport, row) |
Typedefs | |
| typedef unsigned short | UINT16 |
| typedef void * | PackedResourcePointer |
| typedef struct IxSound | IxSound |
| typedef struct IxSample | IxSample |
| typedef struct Viewport | Viewport |
| typedef struct MouseCursorState | MouseCursorState |
| typedef char | MouseCursorState_size_must_be_0x1c[sizeof(MouseCursorState)==0x1c ? 1 :-1] |
| typedef struct InputEvent | InputEvent |
| typedef struct InputEventState | InputEventState |
| typedef struct InputDeviceSample | InputDeviceSample |
| typedef struct RasterSurface | RasterSurface |
| typedef struct RasterClip | RasterClip |
| typedef struct RLEFrameHeader | RLEFrameHeader |
| typedef struct FontWorkspace | FontWorkspace |
| typedef struct TextContext | TextContext |
| typedef struct CockpitReadout | CockpitReadout |
| typedef struct ModalTextPanel | ModalTextPanel |
| typedef struct HudMessageSlot | HudMessageSlot |
| typedef struct RoomMenu | RoomMenu |
| typedef struct ScreenAllocation | ScreenAllocation |
| typedef char | CockpitReadout_size_must_be_0x0a[sizeof(CockpitReadout)==0x0a ? 1 :-1] |
| typedef char | RoomMenu_size_must_be_0x29[sizeof(RoomMenu)==0x29 ? 1 :-1] |
| typedef struct WaveTableEntry | WaveTableEntry |
| typedef struct ActiveSoundEntry | ActiveSoundEntry |
| typedef struct DebugOverlayConsole | DebugOverlayConsole |
Enumerations | |
| enum | GAME_MODE { Player = 0 } |
| enum | GAME_STATUS { ALIVE = 0 } |
Functions | |
| void | ShowOnScreenMessage (int flags, short duration, const char *fmt,...) |
| void | SoundDebugPrintf (const char *fmt,...) |
| void | SystemDebugPrintf (const char *fmt,...) |
Common types, macros and utility prototypes.
wc1.h adds the data headers after these; the Win32 shell (winmain.c) includes them itself because it declares main.c's option flags with its own types.
Definition in file wc1base.h.
| #define COM_RELEASE | ( | surface | ) |
Definition at line 34 of file wc1base.h.
Referenced by DIBerror(), DIBpositionWindow(), and DIBunInstall().
| #define DEGREES_TO_RADIANS 0.017453292519943295 |
Definition at line 31 of file wc1base.h.
Referenced by CosFixed(), and SinFixed().
| #define SPRITE_ROW_OFFSET | ( | viewport, | |
| row ) |
Definition at line 83 of file wc1base.h.
Referenced by CaptureSpriteBackground(), and RestoreSpriteBackground().
| typedef struct ActiveSoundEntry ActiveSoundEntry |
| typedef struct CockpitReadout CockpitReadout |
| typedef char CockpitReadout_size_must_be_0x0a[ sizeof(CockpitReadout)==0x0a ? 1 :-1] |
| typedef struct FontWorkspace FontWorkspace |
| typedef struct HudMessageSlot HudMessageSlot |
| typedef struct InputDeviceSample InputDeviceSample |
| typedef struct InputEvent InputEvent |
| typedef struct InputEventState InputEventState |
| typedef struct ModalTextPanel ModalTextPanel |
| typedef struct MouseCursorState MouseCursorState |
| typedef char MouseCursorState_size_must_be_0x1c[ sizeof(MouseCursorState)==0x1c ? 1 :-1] |
| typedef void* PackedResourcePointer |
| typedef struct RasterClip RasterClip |
| typedef struct RasterSurface RasterSurface |
| typedef struct RLEFrameHeader RLEFrameHeader |
| typedef struct RoomMenu RoomMenu |
| typedef char RoomMenu_size_must_be_0x29[ sizeof(RoomMenu)==0x29 ? 1 :-1] |
| typedef struct ScreenAllocation ScreenAllocation |
| typedef struct TextContext TextContext |
| typedef struct Viewport Viewport |
| typedef struct WaveTableEntry WaveTableEntry |
| enum GAME_STATUS |
| void ShowOnScreenMessage | ( | int | flags, |
| short | duration, | ||
| const char * | fmt, | ||
| ... ) |
Definition at line 1284 of file main.c.
References cRedColour, DosStrcpy(), dump_buffer_to_screen(), FlushInputEvents(), MeasureMessageWidth(), ReleaseModalTextPanel(), SetHudMessageText(), SetHudTextColour(), ShowHudTextLine(), ShowModalTextPanel(), ShowOnScreenMessage(), szHudMessageBuf, and WaitForKeyAcknowledge().
Referenced by HandleSpaceFlightControls(), init_3Space_objects(), process_player_input(), ReportFramesSkipped(), SetMessageDisplaySpeed(), ShowGamePausedBanner(), ShowOnScreenMessage(), and ShowVersionBanner().
| void SoundDebugPrintf | ( | const char * | fmt, |
| ... ) |
Definition at line 382 of file mono.c.
References MonoDebug_print(), SoundDebugPrintf(), and szSoundDebugMsg.
Referenced by FadeMusic(), FlushSoundEffect(), FlushSoundEffects(), ForceStreamerTrigger(), gametrack(), ix_log_printf(), MapMusicTrackToStreamerCommand(), ProcessMusicScriptCommand(), SelectFlightMusicTrack(), SetMusBreakpt(), SetMusicOn(), SetSoundEffectsVolume(), SoundDebugPrintf(), StopMusic(), Streamer_close(), Streamer_open(), Streamer_play(), Streamer_stop(), and Streamer_trigger().
| void SystemDebugPrintf | ( | const char * | fmt, |
| ... ) |
Definition at line 182 of file pilot.cpp.
References SystemDebugPrintf(), and void().
Referenced by DrawTextString(), exit_squadron(), GetJoystickDevCaps(), init_3Space_objects(), InitializeDIBScreenViewport(), LoadInstallDat(), LoadOriginFxDrivers(), LogDisplayMode(), LogMemoryUsage(), main(), PacketLoad(), SetInputKeyState(), ShowModalMessage(), and SystemDebugPrintf().