|
Wing Commander
Reconstructed Win32 source (1996)
|
Rasteriser primitives, screen-space effects and the music streamer's wrappers. More...
Go to the source code of this file.
Data Structures | |
| struct | ShapeFrameExtents |
Typedefs | |
| typedef struct ShapeFrameExtents | ShapeFrameExtents |
Functions | |
| void | CheckHeapBlockSignature (struct Shape *shape) |
| struct RLEShape * | GetPreparedShapeData (struct Shape *shape) |
| short __stdcall | GetShapeFrameCount (struct Shape *shape) |
| void | GetShapeFrameExtents (struct Shape *shape, short frame, short *width, short *height, short *leftExtent, short *topExtent) |
| void | DecodeShapeFrame (struct Shape *shape, short frame, unsigned char *bitmap, int width, int height, int leftExtent, int topExtent) |
| int | SignExtendClipCoord (volatile short v) |
| void | ValidateViewportBounds (Viewport *viewport, RasterSurface *surface, RasterClip *clip) |
| void | ClipViewportToScreen (Viewport *viewport) |
| void | SetSolidColourTranslation (unsigned char colour) |
| void | PrepareShapeRLEData (struct Shape *shape) |
| void | DrawSpriteTransformed (Viewport *viewport, int x, int y, struct Shape *shape, int frame, int angle, int scaleX, int scaleY, int flip, int blendMode) |
| void | RasterLineHook (const void *marker) |
| void | DrawFontGlyph (char character, TextContext *context, int height, int width, int y) |
| void | __copyline (void) |
| void | __wipeline (void) |
| void __stdcall | MarkActivePaletteEntries (Viewport *viewport, unsigned char *active) |
| void __stdcall | GetPaletteEntry (short index, short *rgb) |
| void __stdcall | SetPaletteEntry (short index, short *rgb) |
| void | DrawSpriteDefault (Viewport *viewport, short x, short y, struct Shape *shape, short frame) |
| void | CaptureSpriteBackground (Viewport *viewport, unsigned char *background, short x, short y, struct Shape *shape, short frame) |
| void | RestoreSpriteBackground (Viewport *viewport, unsigned char *background, short x, short y, struct Shape *shape, short frame) |
| void | DrawSolidColourSprite (Viewport *viewport, short x, short y, struct Shape *shape, short frame, short colour) |
| void | CopyViewportContents (Viewport *source, Viewport *destination) |
| void | ClearViewport (Viewport *viewport, short colour) |
| void | DrawViewportPixel (Viewport *viewport, short x, short y, short colour) |
| int | GetViewportPixel (Viewport *viewport, short x, short y) |
| void | DrawViewportLine (Viewport *viewport, short x1, short y1, short x2, short y2, short colour) |
| void | DrawViewportPolygonHook (Viewport *viewport, const ShortPoint *points, int count, int colour) |
| void | triangle (Viewport *viewport, const ShortPoint *points, int colour) |
| void | shaded_triangle (Viewport *viewport) |
| void | DrawFilledViewportRect (Viewport *viewport, short left, short top, short right, short bottom, short colour) |
| void | DrawViewportBorder (Viewport *viewport, short left, short top, short right, short bottom, short colour) |
| void | DrawViewportEllipse (Viewport *viewport, short x, short y, short verticalRadius, short horizontalRadius, short colour) |
| void | FillViewportEllipse (Viewport *viewport, short x, short y, short verticalRadius, short horizontalRadius, short colour) |
| void | DrawViewportEllipseShadow (Viewport *viewport, short x, short y, short verticalRadius, short horizontalRadius, short colour) |
| void | shadow_draw (Viewport *viewport) |
| void | DrawShapeFrameScaled (Viewport *viewport, struct Shape *shape, int frame, int x, int y, int angle, int scale) |
| void | GetShapeFrameCorners (unsigned char *shape, int frame, int x, int y, ShortPoint *corners, int *cornerCount) |
| void | DrawSpriteScaled (Viewport *viewport, short x, short y, struct Shape *shape, short frame, short angle, short scale, short flip) |
| void | DrawSolidColourSpriteScaled (Viewport *viewport, short x, short y, struct Shape *shape, short frame, short angle, short scale, short flip, short colour) |
| short | GetTransformedShapeBounds (Viewport *viewport, short x, short y, struct Shape *shape, short frame, short angle, short scale, short flip, ShortRect *bounds) |
| void | BlitViewportScanlineRuns (Viewport *source, Viewport *destination, const ScreenViewportGeometry *geometry) |
| void | fizzle_fade (Viewport *source, Viewport *destination) |
| void | snow_viewport (Viewport *viewport, int effect, unsigned short colour) |
| void | UpdateStreamerStoppedFlag (void) |
| void | SignalAudioMixerWakeEvent (void) |
| void | InitializeAudioStreamer (HWND window) |
| void | Streamer_open (const char *streamName) |
| void | Streamer_play (void) |
| void | Streamer_stop (void) |
| int | GetStreamerTrigger (void) |
| void | ClearStreamerTrigger (void) |
| void | Streamer_trigger (int trigger) |
| void | SetStreamerIntensity (unsigned char intensity) |
| void | ForceStreamerTrigger (int trigger) |
| void | SetMusicStreamVolume (unsigned short volume) |
| unsigned int | GetMusicStreamVolume (void) |
| void | Streamer_close (void) |
| void | ShutdownAudioStreamer (void) |
| int | ReadCheaterFlagFromRegistry (void) |
Variables | |
| static unsigned char | abPaletteTranslation [256] |
| static unsigned short | aawAbsoluteTrig [2][360] |
| static RasterSurface | stRasterTarget |
| static unsigned char | abShapeTransformPixels [0xfa00] |
| static RasterClip | stRasterClip |
| static unsigned char | abUnusedGrTable [0x670] |
| static unsigned char | abSolidColourLookup [256] |
| static unsigned char | abShapeRLEBuffer [0x100000] |
| static int | bStreamerAudioRunning |
| static char | szStreamerPathBuffer [128] |
| const char | szGameRegistryKey [42] |
| const char | szCheaterRegistryValue [8] = "Cheater" |
| int | nUnusedFlightProfileTicksA |
| int | nUnusedFlightProfileTicksB |
| int | nUnusedFlightProfileTicksC |
| Viewport | stRoomScreenViewport |
| short | nSavedRoomCtrlX |
| unsigned char * | pRecRoomRoster |
| unsigned char * | pMissionCampaignInfo |
| struct Shape * | apRecRoomFigureShapes [3] |
| PilotRecord | aPilotEntriesList [9] |
| ConstellationObjectDefinition * | pConstellationDefinitionsPtr |
| PilotRecord * | apWingmanPilotsList [8] |
Rasteriser primitives, screen-space effects and the music streamer's wrappers.
Address range 4408a0-44269f. The routines print some of their names: shadow_draw, fizzle_fade and snow_viewport.
Definition in file gr.c.
| typedef struct ShapeFrameExtents ShapeFrameExtents |
Definition at line 621 of file gr.c.
References __copyline(), and RasterLineHook().
Referenced by __copyline(), and CollectRasterClipColours().
Definition at line 627 of file gr.c.
References __wipeline(), and RasterLineHook().
Referenced by __wipeline(), and CollectRasterClipColours().
| void BlitViewportScanlineRuns | ( | Viewport * | source, |
| Viewport * | destination, | ||
| const ScreenViewportGeometry * | geometry ) |
Definition at line 1290 of file gr.c.
References BlitViewportScanlineRuns(), DIBslam(), ScreenViewportGeometry::originX, Viewport::pixels, Viewport::rowOffsets, and stScreenView.
Referenced by BlitViewportScanlineRuns(), CollectRasterClipColours(), and dump_buffer_to_screen().
| void CaptureSpriteBackground | ( | Viewport * | viewport, |
| unsigned char * | background, | ||
| short | x, | ||
| short | y, | ||
| struct Shape * | shape, | ||
| short | frame ) |
Definition at line 669 of file gr.c.
References Viewport::bottom, CaptureSpriteBackground(), Shape::frameOffsets, Viewport::left, Viewport::pixels, Viewport::right, SPRITE_ROW_OFFSET, Viewport::top, and void().
Referenced by CaptureMouseCursorBackground(), CaptureSpriteBackground(), cockpit_explosion(), CollectRasterClipColours(), draw_3d_scanner(), DrawMouseCursorIntoViewport(), fire_computer_graphic_missile(), overlay_head_up_display(), RestoreTransientCockpitGraphics(), and UpdateDamageDisplay().
Definition at line 124 of file gr.c.
References CheckHeapBlockSignature(), exit_squadron(), and TaggedAllocationHeader::signature.
Referenced by CheckHeapBlockSignature(), CollectRasterClipColours(), GetShapeFrameCorners(), GetShapeFrameCount(), GetTransformedShapeBounds(), and PrepareShapeRLEData().
Definition at line 1419 of file gr.c.
References bIxAudioEnabled, ClearStreamerTrigger(), and ix_streamer_set_trigger().
Referenced by ClearStreamerTrigger(), CollectRasterClipColours(), and SelectFlightMusicTrack().
Definition at line 963 of file gr.c.
References ClearViewport(), ClipViewportToScreen(), DIBslam(), DIBslamReal(), FillRasterClip(), Viewport::pixels, Viewport::rowOffsets, stRasterClip, and stScreenView.
Referenced by AllocateViewport(), BarracksScreen(), clear_view_buffer(), ClearTextInputCharacter(), ClearViewport(), CloseLook(), CloseTalk(), CollectRasterClipColours(), death_sequence(), DeBriefing(), DebriefingEstablishingShot(), Dismissed(), DrawConstellationField(), DrawFuneralLongShot(), DrawMedalChest(), DrawMedalLongShot(), DrawNavLocationReadout(), ejection_sequence(), EnterPilotNameAndCallsign(), EraseCockpitReadoutRegion(), EraseLastTextInputCharacter(), EraseTextContextBackground(), EstablishingShot(), funeral_sequence(), funeral_wingman(), InflightComputer(), initialize_cockpit(), InitializeConversationViewport(), InitializeTrainSimTextPanel(), landing(), LongTalk(), MedalEstablish(), PinMedal(), PlaySceneAnimation(), PromptForAnswerText(), PromptInsertNumberedDisk(), ReadTextInput(), RecRoom(), RenderSpaceViewFrame(), ReturnToBriefingLongShot(), SceneDirector(), set_new_vdu(), ShowCampaignVictorySequence(), ShowMeanwhileTransition(), ShowTheEndScreen(), ShowTigerClawEscapeScene(), ShowTrainSimHighScores(), stranded_sequence(), Title_Sequence(), unwarp(), UpdateMap(), UpdateSpacePaletteFade(), ViewMedals(), and warp().
Definition at line 350 of file gr.c.
References ClipViewportToScreen(), stRasterClip, stRasterTarget, and ValidateViewportBounds().
Referenced by ClearViewport(), ClipViewportToScreen(), CollectRasterClipColours(), DrawFilledViewportRect(), DrawSpriteTransformed(), DrawViewportBorder(), DrawViewportEllipse(), DrawViewportEllipseShadow(), DrawViewportLine(), DrawViewportPixel(), FillViewportEllipse(), and GetViewportPixel().
Definition at line 945 of file gr.c.
References BlitRasterClip(), CopyViewportContents(), and ValidateViewportBounds().
Referenced by AnimateTrainSimTitle(), CollectRasterClipColours(), CopyTrainSimPilotViewToRightVdu(), CopyViewportContents(), DisplayTrainSimHighScoreTable(), DrawBarracksBunks(), DrawNavLocationReadout(), DrawPilotHandFrame(), dump_buffer_to_screen(), InitializeModalTextPanel(), PanToScreen(), PromptInsertNumberedDisk(), RecRoom(), RefreshMemoryStatusOverlay(), ResetPilotHandAnimation(), RestoreModalTextPanel(), and ShowOffscreenBuffer().
| void DecodeShapeFrame | ( | struct Shape * | shape, |
| short | frame, | ||
| unsigned char * | bitmap, | ||
| int | width, | ||
| int | height, | ||
| int | leftExtent, | ||
| int | topExtent ) |
Definition at line 175 of file gr.c.
References DecodeShapeFrame(), and Shape::frameOffsets.
Referenced by CollectRasterClipColours(), DecodeShapeFrame(), and PrepareShapeRLEData().
| void DrawFilledViewportRect | ( | Viewport * | viewport, |
| short | left, | ||
| short | top, | ||
| short | right, | ||
| short | bottom, | ||
| short | colour ) |
Definition at line 1033 of file gr.c.
References ShapeFrame::bottom, ClipViewportToScreen(), DrawClippedLine(), DrawFilledViewportRect(), ShapeFrame::left, Viewport::left, ShapeFrame::right, stRasterClip, ShapeFrame::top, and Viewport::top.
Referenced by AnimateTrainSimTitle(), CollectRasterClipColours(), DisplayTrainSimHighScoreTable(), DrawFilledViewportRect(), RenderSpaceViewFrame(), and update_VDUs().
| void DrawFontGlyph | ( | char | character, |
| TextContext * | context, | ||
| int | height, | ||
| int | width, | ||
| int | y ) |
Definition at line 533 of file gr.c.
References abPaletteTranslation, TextContext::backgroundColour, TextContext::colour, TextContext::cursorX, DrawFontGlyph(), TextContext::font, Viewport::pixels, Viewport::rowOffsets, Viewport::top, and TextContext::viewport.
Referenced by CollectRasterClipColours(), DrawFontGlyph(), and DrawTextCharacter().
| void DrawShapeFrameScaled | ( | Viewport * | viewport, |
| struct Shape * | shape, | ||
| int | frame, | ||
| int | x, | ||
| int | y, | ||
| int | angle, | ||
| int | scale ) |
Definition at line 1119 of file gr.c.
References DrawShapeFrameScaled(), and DrawSpriteTransformed().
Referenced by CollectRasterClipColours(), and DrawShapeFrameScaled().
| void DrawSolidColourSprite | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| struct Shape * | shape, | ||
| short | frame, | ||
| short | colour ) |
Definition at line 935 of file gr.c.
References DrawSolidColourSprite(), DrawSpriteTransformed(), and SetSolidColourTranslation().
Referenced by CollectRasterClipColours(), draw_target_box(), DrawSolidColourSprite(), and intro_drawbackgroundships().
| void DrawSolidColourSpriteScaled | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| struct Shape * | shape, | ||
| short | frame, | ||
| short | angle, | ||
| short | scale, | ||
| short | flip, | ||
| short | colour ) |
Definition at line 1185 of file gr.c.
References DrawSolidColourSpriteScaled(), DrawSpriteTransformed(), and SetSolidColourTranslation().
Referenced by CollectRasterClipColours(), DrawSolidColourSpriteScaled(), and intro_drawbackgroundships().
Definition at line 660 of file gr.c.
References DrawSpriteDefault(), and DrawSpriteTransformed().
Referenced by AnimateBarracks(), AnimateScrambleWalk(), BuildMap(), CloseLook(), CloseTalk(), cockpit_explosion(), CollectRasterClipColours(), death_sequence(), Dismissed(), draw_3d_scanner(), draw_cockpit_lights(), draw_sorted_objects_to_buffer(), draw_target_box(), DrawBarracksBunks(), DrawBarracksStaticDetails(), DrawBriefingLongShot(), DrawConstellationField(), DrawDebriefingLongShot(), DrawFuneralLongShot(), DrawMedalChest(), DrawMedalLongShot(), DrawMedals(), DrawMouseCursor(), DrawMouseCursorIntoViewport(), DrawPendingCockpitDamage(), DrawPilotHandFrame(), DrawPodiumShot(), DrawScrambleFrame(), DrawSpriteDefault(), ejection_sequence(), EnterPilotNameAndCallsign(), EstablishingShot(), explosion_draw(), fire_computer_graphic_missile(), funeral_player(), InflightComputer(), initialize_cockpit(), overlay_head_up_display(), PinMedal(), PlayScrambleHangarScene(), print_subtitle(), real_vid_transmit(), RecRoom(), RestoreTransientCockpitGraphics(), ReturnToBriefingLongShot(), SelectTrainSimMission(), show_communications_disp(), show_damage_disp(), show_target_disp(), show_weapon_disp(), ShowCampaignVictorySequence(), ShowCarrierLaunchSequence(), ShowChalkBoard(), ShowTrainSimHighScores(), TheEndFireWorks(), Title_Sequence(), UpdateDamageDisplay(), vdu_polygon(), and vid_transmit().
| void DrawSpriteScaled | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| struct Shape * | shape, | ||
| short | frame, | ||
| short | angle, | ||
| short | scale, | ||
| short | flip ) |
Definition at line 1176 of file gr.c.
References DrawSpriteScaled(), and DrawSpriteTransformed().
Referenced by CollectRasterClipColours(), draw_sorted_objects_to_buffer(), DrawBriefingCharacter(), DrawCenteredScaledIntroText(), DrawLaunchDoorFrame(), DrawMedalChest(), DrawMedals(), DrawScrambleActor(), DrawScrambleFrame(), DrawSpriteScaled(), DrawTitleLogo(), funeral_player(), MedalEstablish(), ShowCampaignVictorySequence(), ShowCarrierLaunchSequence(), ShowTigerClawEscapeScene(), and UpdateSceneAnimationObject().
| void DrawSpriteTransformed | ( | Viewport * | viewport, |
| int | x, | ||
| int | y, | ||
| struct Shape * | shape, | ||
| int | frame, | ||
| int | angle, | ||
| int | scaleX, | ||
| int | scaleY, | ||
| int | flip, | ||
| int | blendMode ) |
Definition at line 489 of file gr.c.
References abShapeTransformPixels, ClipViewportToScreen(), DrawSpriteTransformed(), exit_squadron(), GetPreparedShapeData(), GetShapeFrameCount(), Viewport::left, PrepareShapeRLEData(), RotateRLEImage(), Viewport::rowOffsets, stRasterClip, and Viewport::top.
Referenced by CollectRasterClipColours(), DrawShapeFrameScaled(), DrawSolidColourSprite(), DrawSolidColourSpriteScaled(), DrawSpriteDefault(), DrawSpriteScaled(), and DrawSpriteTransformed().
| void DrawViewportBorder | ( | Viewport * | viewport, |
| short | left, | ||
| short | top, | ||
| short | right, | ||
| short | bottom, | ||
| short | colour ) |
Definition at line 1052 of file gr.c.
References ShapeFrame::bottom, ClipViewportToScreen(), DrawClippedLine(), DrawViewportBorder(), ShapeFrame::left, Viewport::left, ShapeFrame::right, stRasterClip, ShapeFrame::top, and Viewport::top.
Referenced by CollectRasterClipColours(), draw_target_box(), DrawNavSquareOutline(), DrawViewportBorder(), InitializeModalTextPanel(), and PromptInsertNumberedDisk().
| void DrawViewportEllipse | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| short | verticalRadius, | ||
| short | horizontalRadius, | ||
| short | colour ) |
Definition at line 1075 of file gr.c.
References ClipViewportToScreen(), DIBslam(), DrawRasterEllipse(), DrawViewportEllipse(), Viewport::pixels, stRasterClip, and stScreenView.
Referenced by CollectRasterClipColours(), DrawNavRectangleMarker(), and DrawViewportEllipse().
| void DrawViewportEllipseShadow | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| short | verticalRadius, | ||
| short | horizontalRadius, | ||
| short | colour ) |
Definition at line 1099 of file gr.c.
References ClipViewportToScreen(), DIBslam(), DrawRasterEllipse(), DrawViewportEllipseShadow(), Viewport::pixels, stRasterClip, and stScreenView.
Referenced by CollectRasterClipColours(), DrawNavRectangleMarker(), and DrawViewportEllipseShadow().
Definition at line 995 of file gr.c.
References ClipViewportToScreen(), DrawClippedLine(), DrawViewportLine(), Viewport::left, stRasterClip, and Viewport::top.
Referenced by CollectRasterClipColours(), draw_target_box(), DrawNavCrossMarker(), DrawNavTriangleOutline(), DrawViewportLine(), show_damage_disp(), show_weapon_disp(), and UpdateDamageDisplay().
Definition at line 976 of file gr.c.
References ClipViewportToScreen(), DrawViewportPixel(), Viewport::left, SetRasterClipPixel(), stRasterClip, and Viewport::top.
Referenced by BuildMap(), clear_head_up_display(), CollectRasterClipColours(), draw_3d_scanner(), DrawNavPlayerMarker(), DrawNavSquareMarker(), and DrawViewportPixel().
| void DrawViewportPolygonHook | ( | Viewport * | viewport, |
| const ShortPoint * | points, | ||
| int | count, | ||
| int | colour ) |
Definition at line 1006 of file gr.c.
References DrawViewportPolygonHook(), and void().
Referenced by CollectRasterClipColours(), DrawViewportPolygonHook(), and triangle().
| void FillViewportEllipse | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| short | verticalRadius, | ||
| short | horizontalRadius, | ||
| short | colour ) |
Definition at line 1087 of file gr.c.
References ClipViewportToScreen(), DIBslam(), FillRasterEllipse(), FillViewportEllipse(), Viewport::pixels, stRasterClip, and stScreenView.
Referenced by CollectRasterClipColours(), and FillViewportEllipse().
Definition at line 1322 of file gr.c.
References DIBslam(), fizzle_fade(), Viewport::pixels, RasterLineHook(), stScreenView, and void().
Referenced by CollectRasterClipColours(), and fizzle_fade().
| void ForceStreamerTrigger | ( | int | trigger | ) |
Definition at line 1452 of file gr.c.
References bIxAudioEnabled, bStreamerAudioRunning, ForceStreamerTrigger(), ix_streamer_force_trigger(), SoundDebugPrintf(), and Streamer_play().
Referenced by CollectRasterClipColours(), ForceStreamerTrigger(), ProcessMusicScriptCommand(), and Streamer_trigger().
| unsigned int GetMusicStreamVolume | ( | void | ) |
Definition at line 1471 of file gr.c.
References bIxAudioEnabled, GetMusicStreamVolume(), and ix_streamer_get_volume().
Referenced by CollectRasterClipColours(), and GetMusicStreamVolume().
| void __stdcall GetPaletteEntry | ( | short | index, |
| short * | rgb ) |
Definition at line 648 of file gr.c.
References GetPaletteEntry(), and GetPaletteEntryAsWords().
Referenced by CollectRasterClipColours(), FadeViewportPaletteToColour(), GetPaletteEntry(), MarkActivePaletteEntries(), PanToScreen(), and SaveGamePalette().
Definition at line 132 of file gr.c.
References GetPreparedShapeData().
Referenced by CollectRasterClipColours(), DrawSpriteTransformed(), GetPreparedShapeData(), and PrepareShapeRLEData().
| void GetShapeFrameCorners | ( | unsigned char * | shape, |
| int | frame, | ||
| int | x, | ||
| int | y, | ||
| ShortPoint * | corners, | ||
| int * | cornerCount ) |
Definition at line 1136 of file gr.c.
References ShapeFrameExtents::bottom, CheckHeapBlockSignature(), GetShapeFrameCorners(), ShapeFrameExtents::left, ShapeFrameExtents::right, ShapeFrameExtents::top, ShortPoint::x, and ShortPoint::y.
Referenced by CollectRasterClipColours(), and GetShapeFrameCorners().
| short __stdcall GetShapeFrameCount | ( | struct Shape * | shape | ) |
Definition at line 138 of file gr.c.
References CheckHeapBlockSignature(), Shape::frameOffsets, and GetShapeFrameCount().
Referenced by CollectRasterClipColours(), DrawSpriteTransformed(), GetShapeFrameCount(), and PrepareShapeRLEData().
| void GetShapeFrameExtents | ( | struct Shape * | shape, |
| short | frame, | ||
| short * | width, | ||
| short * | height, | ||
| short * | leftExtent, | ||
| short * | topExtent ) |
Definition at line 145 of file gr.c.
References ShapeFrame::bottom, Shape::frameOffsets, GetShapeFrameExtents(), ShapeFrame::left, ShapeFrame::right, and ShapeFrame::top.
Referenced by CollectRasterClipColours(), GetShapeFrameExtents(), and PrepareShapeRLEData().
| int GetStreamerTrigger | ( | void | ) |
Definition at line 1411 of file gr.c.
References bIxAudioEnabled, GetStreamerTrigger(), and ix_streamer_get_trigger().
Referenced by CollectRasterClipColours(), and GetStreamerTrigger().
| short GetTransformedShapeBounds | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| struct Shape * | shape, | ||
| short | frame, | ||
| short | angle, | ||
| short | scale, | ||
| short | flip, | ||
| ShortRect * | bounds ) |
Definition at line 1196 of file gr.c.
References aawAbsoluteTrig, ShapeFrame::bottom, ShortRect::bottom, Viewport::bottom, CheckHeapBlockSignature(), Shape::frameOffsets, GetTransformedShapeBounds(), ShapeFrame::left, ShortRect::left, Viewport::left, ShapeFrame::right, ShortRect::right, Viewport::right, ShapeFrame::top, ShortRect::top, Viewport::top, and void().
Referenced by CollectRasterClipColours(), draw_target_box(), DrawCenteredScaledIntroText(), DrawLaunchDoorFrame(), DrawTitleLogo(), easy2see(), GetTransformedShapeBounds(), and MeasureScaledIntroTextWidth().
| int GetViewportPixel | ( | Viewport * | viewport, |
| short | x, | ||
| short | y ) |
Definition at line 986 of file gr.c.
References ClipViewportToScreen(), GetViewportPixel(), Viewport::left, ReadRasterClipPixel(), stRasterClip, and Viewport::top.
Referenced by CollectRasterClipColours(), draw_3d_scanner(), GetViewportPixel(), and PanToScreen().
| void InitializeAudioStreamer | ( | HWND | window | ) |
Definition at line 1356 of file gr.c.
References bIxAudioEnabled, InitializeAudioStreamer(), ix_streamer_configure(), ix_streamer_init(), and ix_streamer_set_intensity().
Referenced by CollectRasterClipColours(), InitializeAudioStreamer(), and WinMain().
Definition at line 633 of file gr.c.
References GetPaletteEntry(), MarkActivePaletteEntries(), and void().
Referenced by CollectActivePaletteIndices(), CollectRasterClipColours(), and MarkActivePaletteEntries().
Definition at line 369 of file gr.c.
References abShapeRLEBuffer, AllocateTaggedMemory(), CheckHeapBlockSignature(), DecodeShapeFrame(), exit_squadron(), GetPreparedShapeData(), GetShapeFrameCount(), GetShapeFrameExtents(), PrepareShapeRLEData(), ReleasePacketHandle(), and void().
Referenced by CollectRasterClipColours(), DrawSpriteTransformed(), and PrepareShapeRLEData().
Definition at line 527 of file gr.c.
References RasterLineHook(), and void().
Referenced by __copyline(), __wipeline(), CollectRasterClipColours(), fizzle_fade(), RasterLineHook(), shaded_triangle(), shadow_draw(), snow_viewport(), and triangle().
| int ReadCheaterFlagFromRegistry | ( | void | ) |
Definition at line 1499 of file gr.c.
References ReadCheaterFlagFromRegistry(), szCheaterRegistryValue, and szGameRegistryKey.
Referenced by CheckLauncherAndConfig(), CollectRasterClipColours(), and ReadCheaterFlagFromRegistry().
| void RestoreSpriteBackground | ( | Viewport * | viewport, |
| unsigned char * | background, | ||
| short | x, | ||
| short | y, | ||
| struct Shape * | shape, | ||
| short | frame ) |
Definition at line 799 of file gr.c.
References Viewport::bottom, DIBslam(), Shape::frameOffsets, Viewport::left, Viewport::pixels, RestoreSpriteBackground(), Viewport::right, SPRITE_ROW_OFFSET, stScreenView, Viewport::top, and void().
Referenced by clear_head_up_display(), CollectRasterClipColours(), fire_computer_graphic_missile(), RestoreCockpitExplosionBackground(), RestoreMouseCursorBackground(), RestoreSpriteBackground(), RestoreTransientCockpitGraphics(), SetMouseCursorShape(), and UpdateDamageDisplay().
| void SetMusicStreamVolume | ( | unsigned short | volume | ) |
Definition at line 1464 of file gr.c.
References bIxAudioEnabled, ix_streamer_set_volume(), and SetMusicStreamVolume().
Referenced by CollectRasterClipColours(), HandleSpaceFlightControls(), main(), process_player_input(), and SetMusicStreamVolume().
| void __stdcall SetPaletteEntry | ( | short | index, |
| short * | rgb ) |
Definition at line 654 of file gr.c.
References DIBsetPalette(), and SetPaletteEntry().
Referenced by CollectRasterClipColours(), house_keep(), ResetCockpitPaletteEntries(), SetPaletteEntry(), and UpdateSpacePaletteFade().
| void SetSolidColourTranslation | ( | unsigned char | colour | ) |
Definition at line 359 of file gr.c.
References abSolidColourLookup, SetPaletteTranslationTable(), and SetSolidColourTranslation().
Referenced by CollectRasterClipColours(), DrawSolidColourSprite(), DrawSolidColourSpriteScaled(), and SetSolidColourTranslation().
| void SetStreamerIntensity | ( | unsigned char | intensity | ) |
Definition at line 1442 of file gr.c.
References bIxAudioEnabled, bStreamerAudioRunning, ix_streamer_set_intensity(), SetStreamerIntensity(), and Streamer_play().
Referenced by CollectRasterClipColours(), ProcessMusicScriptCommand(), and SetStreamerIntensity().
Definition at line 1025 of file gr.c.
References DIBslam(), Viewport::pixels, RasterLineHook(), shaded_triangle(), and stScreenView.
Referenced by CollectRasterClipColours(), and shaded_triangle().
Definition at line 1111 of file gr.c.
References DIBslam(), Viewport::pixels, RasterLineHook(), shadow_draw(), and stScreenView.
Referenced by CollectRasterClipColours(), and shadow_draw().
Definition at line 1488 of file gr.c.
References bIxAudioEnabled, ix_streamer_destroy(), and ShutdownAudioStreamer().
Referenced by CollectRasterClipColours(), and ShutdownAudioStreamer().
Definition at line 1349 of file gr.c.
References bIxAudioEnabled, ix_streamer_configure(), and SignalAudioMixerWakeEvent().
Referenced by CollectRasterClipColours(), MainWindowProc(), and SignalAudioMixerWakeEvent().
| int SignExtendClipCoord | ( | volatile short | v | ) |
Definition at line 300 of file gr.c.
References SignExtendClipCoord().
Referenced by CollectRasterClipColours(), SignExtendClipCoord(), and ValidateViewportBounds().
Definition at line 1331 of file gr.c.
References DIBslam(), Viewport::pixels, RasterLineHook(), snow_viewport(), stScreenView, and void().
Referenced by CollectRasterClipColours(), malf_noise(), and snow_viewport().
Definition at line 1479 of file gr.c.
References bIxAudioEnabled, ix_streamer_close_stream_file(), SoundDebugPrintf(), and Streamer_close().
Referenced by CollectRasterClipColours(), SelectFlightMusicTrack(), Streamer_close(), and WinMain().
| void Streamer_open | ( | const char * | streamName | ) |
Definition at line 1370 of file gr.c.
References bIxAudioEnabled, bStreamerAudioRunning, exit_squadron(), ix_streamer_open_stream_file(), LocateStreamsDirOnDisc(), ShowNoticeMessageBox(), SoundDebugPrintf(), Streamer_open(), and szStreamerPathBuffer.
Referenced by CollectRasterClipColours(), SelectFlightMusicTrack(), and Streamer_open().
Definition at line 1389 of file gr.c.
References bIxAudioEnabled, bStreamerAudioRunning, ix_streamer_audio_play(), SoundDebugPrintf(), and Streamer_play().
Referenced by CollectRasterClipColours(), ForceStreamerTrigger(), SetStreamerIntensity(), Streamer_play(), and Streamer_trigger().
Definition at line 1400 of file gr.c.
References bIxAudioEnabled, bStreamerAudioRunning, ix_streamer_audio_stop(), SoundDebugPrintf(), and Streamer_stop().
Referenced by CollectRasterClipColours(), StopMusic(), and Streamer_stop().
| void Streamer_trigger | ( | int | trigger | ) |
Definition at line 1426 of file gr.c.
References bIxAudioEnabled, bStreamerAudioRunning, ForceStreamerTrigger(), ix_streamer_set_trigger(), SoundDebugPrintf(), Streamer_play(), and Streamer_trigger().
Referenced by CollectRasterClipColours(), ProcessMusicScriptCommand(), and Streamer_trigger().
| void triangle | ( | Viewport * | viewport, |
| const ShortPoint * | points, | ||
| int | colour ) |
Definition at line 1016 of file gr.c.
References DIBslam(), DrawViewportPolygonHook(), Viewport::pixels, RasterLineHook(), stScreenView, and triangle().
Referenced by CollectRasterClipColours(), and triangle().
Definition at line 1341 of file gr.c.
References bIxAudioEnabled, dwIxStreamerStatus, nMusicTrackComplete, and UpdateStreamerStoppedFlag().
Referenced by CollectRasterClipColours(), DIBslamReal(), and UpdateStreamerStoppedFlag().
| void ValidateViewportBounds | ( | Viewport * | viewport, |
| RasterSurface * | surface, | ||
| RasterClip * | clip ) |
Definition at line 307 of file gr.c.
References apViewportAllocations, RasterClip::bottom, Viewport::bottom, DIBslam(), exit_squadron(), RasterSurface::field_10, RasterSurface::field_C, RasterClip::left, Viewport::left, RasterSurface::maximumX, RasterSurface::maximumY, nViewAllocTotal, RasterSurface::pixels, Viewport::pixels, RasterClip::right, Viewport::right, Viewport::rowOffsets, SignExtendClipCoord(), stScreenView, RasterClip::surface, RasterClip::top, Viewport::top, and ValidateViewportBounds().
Referenced by ClipViewportToScreen(), CollectRasterClipColours(), CopyViewportContents(), and ValidateViewportBounds().
|
static |
Definition at line 51 of file gr.c.
Referenced by GetTransformedShapeBounds().
|
static |
Definition at line 14 of file gr.c.
Referenced by DrawFontGlyph().
|
static |
Definition at line 366 of file gr.c.
Referenced by PrepareShapeRLEData().
|
static |
Definition at line 344 of file gr.c.
Referenced by DrawSpriteTransformed().
|
static |
Definition at line 356 of file gr.c.
Referenced by SetSolidColourTranslation().
| PilotRecord aPilotEntriesList[9] |
Definition at line 1531 of file gr.c.
Referenced by CorrectPointers(), GetHighScoreEntry(), HandleBarracksBunkSelection(), ResetCampaignData(), and ShowChalkBoard().
| struct Shape* apRecRoomFigureShapes[3] |
| PilotRecord* apWingmanPilotsList[8] |
Definition at line 1533 of file gr.c.
Referenced by add_statistics(), AddPCName(), BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), CorrectPointers(), real_vid_transmit(), RecRoom(), and show_target_disp().
|
static |
Definition at line 1366 of file gr.c.
Referenced by ForceStreamerTrigger(), SetStreamerIntensity(), Streamer_open(), Streamer_play(), Streamer_stop(), and Streamer_trigger().
| short nSavedRoomCtrlX |
Definition at line 1527 of file gr.c.
Referenced by BarracksScreen(), InitializeRoomViewports(), and RecRoom().
| int nUnusedFlightProfileTicksA |
Definition at line 1523 of file gr.c.
Referenced by RunSpaceFlight().
| int nUnusedFlightProfileTicksB |
Definition at line 1524 of file gr.c.
Referenced by RunSpaceFlight().
| int nUnusedFlightProfileTicksC |
Definition at line 1525 of file gr.c.
Referenced by RunSpaceFlight().
| ConstellationObjectDefinition* pConstellationDefinitionsPtr |
Definition at line 1532 of file gr.c.
Referenced by init_constellation(), LoadGameFromSlot(), and LoadOriginFxDrivers().
| unsigned char* pMissionCampaignInfo |
Definition at line 1529 of file gr.c.
Referenced by FullMissionScore(), GameFlow(), LoadGameFromSlot(), LoadOriginFxDrivers(), PlayersMissionScore(), StartNewCampaign(), and UpdateSeries().
|
static |
Definition at line 345 of file gr.c.
Referenced by ClearViewport(), ClipViewportToScreen(), DrawFilledViewportRect(), DrawSpriteTransformed(), DrawViewportBorder(), DrawViewportEllipse(), DrawViewportEllipseShadow(), DrawViewportLine(), DrawViewportPixel(), FillViewportEllipse(), and GetViewportPixel().
|
static |
Definition at line 343 of file gr.c.
Referenced by ClipViewportToScreen().
| Viewport stRoomScreenViewport |
Definition at line 1526 of file gr.c.
Referenced by BarracksScreen(), DrawBarracksBunks(), DrawMouseCursorIntoViewport(), InitializeRoomViewports(), and RecRoom().
| const char szCheaterRegistryValue[8] = "Cheater" |
Definition at line 1496 of file gr.c.
Referenced by ReadCheaterFlagFromRegistry().
| const char szGameRegistryKey[42] |
Definition at line 1494 of file gr.c.
Referenced by ReadCheaterFlagFromRegistry().
|
static |
Definition at line 1367 of file gr.c.
Referenced by Streamer_open().