|
Wing Commander II
Reconstructed Win32 source (1996)
|
Shape decoding, viewport drawing and raster effects. More...
#include "game.h"Go to the source code of this file.
Macros | |
| #define | GR_C |
Functions | |
| void | CheckHeapBlockSignature (unsigned char *shape) |
| int | HasValidShapeAllocationSignature (unsigned char *shape) |
| unsigned char * | GetPreparedShapeData (unsigned char *shape) |
| short | GetShapeFrameCount (unsigned char *shape) |
| void | GetShapeFrameExtents (unsigned char *shape, short frame, short *width, short *height, short *leftExtent, short *topExtent) |
| void | DecodeShapeFrame (unsigned char *shape, short frame, unsigned char *bitmap, int width, int height, int leftExtent, int topExtent) |
| int | SignExtendClipCoord (volatile short v) |
| void | exit_squadron (const char *msg,...) |
| void | ValidateViewportBounds (Viewport *viewport, RasterSurface *surface, RasterClip *clip) |
| void | ClipViewportToScreen (Viewport *viewport) |
| void | SetSolidColourTranslation (unsigned char colour) |
| void | PrepareShapeRLEData (unsigned char *shape) |
| void | DrawSpriteTransformed (Viewport *viewport, int x, int y, unsigned char *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 | EstablishColors (Viewport *viewport, unsigned char *active) |
| void | GetPaletteEntry (short index, unsigned short *rgb) |
| void | SetPaletteEntry (short index, short *rgb) |
| void | DrawSpriteDefault (Viewport *viewport, short x, short y, unsigned char *shape, short frame) |
| short | GetTransformedShapeBounds (Viewport *viewport, short x, short y, unsigned char *shape, short frame, short angle, short scale, short flip, short *bounds) |
| void | FillPolygon (Viewport *viewport, ShortPoint *points, int count, char colour) |
| void | triangle (Viewport *viewport, ShortPoint *points, int colour) |
| void | CaptureSpriteBackground (Viewport *viewport, unsigned char *background, short x, short y, unsigned char *shape, short frame) |
| void | DrawFilledViewportRect (Viewport *viewport, short left, short top, short right, short bottom, short color) |
| void | DrawSpriteScaled (Viewport *viewport, short x, short y, unsigned char *shape, short frame, short angle, short scale, short flip) |
| void | RestoreSpriteBackground (Viewport *viewport, unsigned char *background, short x, short y, unsigned char *shape, short frame) |
| void | DrawSolidColourSprite (Viewport *viewport, short x, short y, unsigned char *shape, short frame, unsigned short colour) |
| void | CopyViewportContents (Viewport *source, Viewport *destination) |
| void | ClearViewport (Viewport *viewport, short colour) |
| void | DrawViewportPixel (Viewport *viewport, short x, short y, short colour) |
| short | GetViewportPixel (Viewport *viewport, short x, short y) |
| void | DrawViewportLine (Viewport *viewport, short x1, short y1, short x2, short y2, short colour) |
| void | shaded_triangle (Viewport *viewport) |
| 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, unsigned char *shape, int frame, int x, int y, int angle, int scale) |
| void | GetShapeFrameCorners (unsigned char *shape, int frame, int x, int y, short *points, int *count) |
| void | DrawSolidColourSpriteScaled (Viewport *viewport, short x, short y, unsigned char *shape, short frame, short angle, short scale, short flip, unsigned short colour) |
| void | CopyViewportRuns (Viewport *source, Viewport *destination, const short *runs) |
| void | fizzle_fade (Viewport *source, Viewport *destination) |
| void | snow_viewport (Viewport *viewport, int effect, unsigned short colour) |
Variables | |
| const int | g_nViewportStaticRandomRange = 3 |
| unsigned char | g_abPaletteTranslation [256] |
| unsigned short | g_awAbsoluteCosine [360] |
| unsigned short | g_awAbsoluteSine [360] |
| static int | g_anPolyExtents [412] |
| int | g_nShapePrepareTicks |
| int | g_1_nShapeClipTicksValue |
| int | g_nShapeDrawTicks |
Shape decoding, viewport drawing and raster effects.
Definition in file gr.c.
Definition at line 647 of file gr.c.
References __copyline(), and RasterLineHook().
Referenced by __copyline(), and CollectRasterClipColours().
Definition at line 656 of file gr.c.
References __wipeline(), and RasterLineHook().
Referenced by __wipeline(), and CollectRasterClipColours().
| void CaptureSpriteBackground | ( | Viewport * | viewport, |
| unsigned char * | background, | ||
| short | x, | ||
| short | y, | ||
| unsigned char * | shape, | ||
| short | frame ) |
Definition at line 705 of file gr.c.
References Viewport::bottom, CaptureSpriteBackground(), HasValidShapeAllocationSignature(), Viewport::left, Viewport::pixels, Viewport::right, Viewport::rowOffsets, Viewport::top, and void().
Referenced by CaptureMouseCursorBackground(), CaptureSpriteBackground(), cockpit_explosion(), CollectRasterClipColours(), draw_3d_scanner(), EnableMouseCursorDrawing(), fire_computer_graphic_missile(), overlay_head_up_display(), RestoreTransientCockpitGraphics(), ResumeMouseCursorHook(), ShowHudTextLine(), UpdateDamageDisplay(), and UpdateTargetLeadIndicator().
| void CheckHeapBlockSignature | ( | unsigned char * | shape | ) |
Definition at line 112 of file gr.c.
References CheckHeapBlockSignature(), exit_squadron(), and IsFreedHeapBlockTracked().
Referenced by CheckHeapBlockSignature(), CollectRasterClipColours(), get_right_shape(), GetShapeFrameCorners(), GetShapeFrameCount(), GetTransformedShapeBounds(), and PrepareShapeRLEData().
Definition at line 1027 of file gr.c.
References ClearViewport(), ClipViewportToScreen(), FillRasterClip(), g_stScreenLimits, Viewport::left, Viewport::pixels, and Viewport::rowOffsets.
Referenced by AllocateViewport(), ApplyCannedSceneObjectEventRecord(), BarracksScreen(), clear_view_buffer(), ClearCutsceneViewport(), ClearTextInputCharacter(), ClearViewport(), CollectRasterClipColours(), CompleteStarSystemJump(), death_sequence(), DrawCinematicMemoryStatus(), DrawNavLocationReadout(), ejection_sequence(), EraseCockpitReadoutRegion(), EraseLastTextInputCharacter(), EraseTextContextBackground(), house_keep_objects(), InflightComputer(), initialize_cockpit(), InitializeConversationViewport(), InitializeDIBScreenViewport(), PromptToContinueCampaign(), ReadTextInput(), RenderSpaceViewFrame(), RunCampaignChalkboardMenu(), RunCampaignScript(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), RunTitleScreen(), set_new_vdu(), Title_Sequence(), unwarp(), UpdateSpacePaletteFade(), and warp().
Definition at line 346 of file gr.c.
References ClipViewportToScreen(), g_1_stRasterBitmap, g_stScreenLimits, and ValidateViewportBounds().
Referenced by ClearViewport(), ClipViewportToScreen(), CollectRasterClipColours(), DrawFilledViewportRect(), DrawSpriteTransformed(), DrawViewportBorder(), DrawViewportEllipse(), DrawViewportEllipseShadow(), DrawViewportLine(), DrawViewportPixel(), FillViewportEllipse(), and GetViewportPixel().
Definition at line 995 of file gr.c.
References BlitRasterClip(), CopyViewportContents(), DIBslamReal(), g_bRenderingSpaceFrame, g_bSceneDisplayUpdateActive, g_nCockpitDisplayMode, GetDIBPixelBuffer(), Viewport::left, MarkDibDirty(), Viewport::pixels, and ValidateViewportBounds().
Referenced by AdvanceSceneFlicStream(), AdvanceViewportWipe(), CollectRasterClipColours(), CopyTrainSimPilotViewToVdus(), CopyViewportContents(), DrawNavLocationReadout(), DrawPilotHandFrame(), DrawUnreferencedPilotHandFrame(), dump_buffer_to_screen(), FinishViewportWipe(), initialize_cockpit(), InitializeModalTextPanel(), PanToScreen(), PresentCutsceneFrame(), RefreshMemoryStatusOverlay(), ResetPilotHandAnimation(), RestoreCutsceneTextBacking(), RestoreModalTextPanel(), RunCampaignContinuePromptLoop(), RunCampaignSelectionFrame(), RunCutsceneScript(), RunCutsceneWipeTransition(), and RunTitleScreen().
Definition at line 1614 of file gr.c.
References CopyViewportRuns(), g_101_stScrViewInfo, Viewport::left, MarkDibDirty(), Viewport::pixels, and Viewport::rowOffsets.
Referenced by CollectRasterClipColours(), CopyViewportRuns(), and dump_buffer_to_screen().
| void DecodeShapeFrame | ( | unsigned char * | shape, |
| short | frame, | ||
| unsigned char * | bitmap, | ||
| int | width, | ||
| int | height, | ||
| int | leftExtent, | ||
| int | topExtent ) |
Definition at line 171 of file gr.c.
References DecodeShapeFrame().
Referenced by CollectRasterClipColours(), DecodeShapeFrame(), and PrepareShapeRLEData().
| void DrawFilledViewportRect | ( | Viewport * | viewport, |
| short | left, | ||
| short | top, | ||
| short | right, | ||
| short | bottom, | ||
| short | color ) |
Definition at line 1339 of file gr.c.
References ClipViewportToScreen(), DrawClippedLine(), DrawFilledViewportRect(), g_stScreenLimits, Viewport::left, and Viewport::top.
Referenced by CollectRasterClipColours(), DrawFilledViewportRect(), and update_VDUs().
| void DrawFontGlyph | ( | char | character, |
| TextContext * | context, | ||
| int | height, | ||
| int | width, | ||
| int | y ) |
Definition at line 540 of file gr.c.
References TextContext::backgroundColour, TextContext::colour, TextContext::cursorX, DrawFontGlyph(), TextContext::font, TextContext::fontWorkspace, g_abPaletteTranslation, Viewport::pixels, Viewport::rowOffsets, Viewport::top, and TextContext::viewport.
Referenced by CollectRasterClipColours(), DrawFontGlyph(), and DrawTextCharacter().
| void DrawShapeFrameScaled | ( | Viewport * | viewport, |
| unsigned char * | shape, | ||
| int | frame, | ||
| int | x, | ||
| int | y, | ||
| int | angle, | ||
| int | scale ) |
Definition at line 1445 of file gr.c.
References DrawShapeFrameScaled(), DrawSpriteTransformed(), and Viewport::left.
Referenced by CollectRasterClipColours(), and DrawShapeFrameScaled().
| void DrawSolidColourSprite | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| unsigned char * | shape, | ||
| short | frame, | ||
| unsigned short | colour ) |
Definition at line 981 of file gr.c.
References DrawSolidColourSprite(), DrawSpriteTransformed(), HasValidShapeAllocationSignature(), Viewport::left, and SetSolidColourTranslation().
Referenced by CollectRasterClipColours(), draw_target_box(), DrawSolidColourSprite(), and intro_drawbackgroundships().
| void DrawSolidColourSpriteScaled | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| unsigned char * | shape, | ||
| short | frame, | ||
| short | angle, | ||
| short | scale, | ||
| short | flip, | ||
| unsigned short | colour ) |
Definition at line 1505 of file gr.c.
References DrawSolidColourSpriteScaled(), DrawSpriteTransformed(), HasValidShapeAllocationSignature(), and SetSolidColourTranslation().
Referenced by CollectRasterClipColours(), DrawSolidColourSpriteScaled(), and intro_drawbackgroundships().
| void DrawSpriteDefault | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| unsigned char * | shape, | ||
| short | frame ) |
Definition at line 682 of file gr.c.
References DrawSpriteDefault(), DrawSpriteTransformed(), HasValidShapeAllocationSignature(), and Viewport::left.
Referenced by AnimateTitleOrchestra(), BuildMap(), cockpit_explosion(), CollectRasterClipColours(), death_sequence(), draw_3d_scanner(), draw_cockpit_lights(), draw_sorted_objects_to_buffer(), draw_target_box(), DrawCampaignChalkboardFrame(), DrawCinematicFontCharacter(), DrawConstellationField(), DrawCutsceneCockpitOverlay(), DrawMouseCursor(), DrawPendingCockpitDamage(), DrawPersonnelMenuBackdrop(), DrawPilotHandFrame(), DrawSpriteDefault(), DrawTitleOrchestra(), DrawTitleSky(), DrawUnreferencedPilotHandFrame(), EnableMouseCursorDrawing(), explosion_draw(), fire_computer_graphic_missile(), InflightComputer(), initialize_cockpit(), InitializeCampaignChalkboardScreen(), overlay_head_up_display(), PlayTitleConductorCue(), PollCampaignChalkboardMenu(), real_vid_transmit(), RestorePersonnelMenuBackground(), RestoreTransientCockpitGraphics(), ResumeMouseCursorHook(), RevealTitleLogo(), RunCampaignContinuePromptLoop(), RunCampaignSelectionFrame(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), RunTitleMenuInputLoop(), RunTitleScreen(), show_damage_disp(), show_target_disp(), show_weapon_disp(), ShowVictoryScreen(), TheEndFireWorks(), ToggleTargetCameraOverlay(), update_status_text(), UpdateDamageDisplay(), UpdateTargetLeadIndicator(), vdu_polygon(), and vid_transmit().
| void DrawSpriteScaled | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| unsigned char * | shape, | ||
| short | frame, | ||
| short | angle, | ||
| short | scale, | ||
| short | flip ) |
Definition at line 1494 of file gr.c.
References DrawSpriteScaled(), DrawSpriteTransformed(), and HasValidShapeAllocationSignature().
Referenced by CollectRasterClipColours(), draw_sorted_objects_to_buffer(), DrawCutsceneSprite(), DrawScaledTitleLogo(), DrawSpriteScaled(), and PushTitleOrchestraAway().
| void DrawSpriteTransformed | ( | Viewport * | viewport, |
| int | x, | ||
| int | y, | ||
| unsigned char * | shape, | ||
| int | frame, | ||
| int | angle, | ||
| int | scaleX, | ||
| int | scaleY, | ||
| int | flip, | ||
| int | blendMode ) |
Definition at line 476 of file gr.c.
References ClipViewportToScreen(), DrawSpriteTransformed(), exit_squadron(), g_101_stScrViewInfo, g_1_nShapeClipTicksValue, g_abShapeTransformScratch, g_nShapeDrawTicks, g_nShapePrepareTicks, g_stScreenLimits, GetPreparedShapeData(), GetShapeFrameCount(), Viewport::left, MarkDibDirty(), Viewport::pixels, PrepareShapeRLEData(), ReadPerformanceCounter(), RotateRLEImage(), Viewport::rowOffsets, 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 1360 of file gr.c.
References ClipViewportToScreen(), DrawClippedLine(), DrawViewportBorder(), g_stScreenLimits, Viewport::left, and Viewport::top.
Referenced by CollectRasterClipColours(), draw_target_box(), DrawNavSquareOutline(), DrawViewportBorder(), and InitializeModalTextPanel().
| void DrawViewportEllipse | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| short | verticalRadius, | ||
| short | horizontalRadius, | ||
| short | colour ) |
Definition at line 1385 of file gr.c.
References ClipViewportToScreen(), DrawRasterEllipse(), DrawViewportEllipse(), g_101_stScrViewInfo, g_stScreenLimits, Viewport::left, MarkDibDirty(), and Viewport::pixels.
Referenced by CollectRasterClipColours(), DrawNavRectangleMarker(), and DrawViewportEllipse().
| void DrawViewportEllipseShadow | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| short | verticalRadius, | ||
| short | horizontalRadius, | ||
| short | colour ) |
Definition at line 1415 of file gr.c.
References ClipViewportToScreen(), DrawRasterEllipse(), DrawViewportEllipseShadow(), g_101_stScrViewInfo, g_stScreenLimits, Viewport::left, MarkDibDirty(), and Viewport::pixels.
Referenced by CollectRasterClipColours(), DrawNavRectangleMarker(), and DrawViewportEllipseShadow().
Definition at line 1060 of file gr.c.
References ClipViewportToScreen(), DrawClippedLine(), DrawViewportLine(), g_stScreenLimits, Viewport::left, and Viewport::top.
Referenced by CollectRasterClipColours(), draw_target_box(), DrawNavCrossMarker(), DrawNavTriangleOutline(), DrawViewportLine(), show_damage_disp(), show_weapon_disp(), and UpdateDamageDisplay().
Definition at line 1038 of file gr.c.
References ClipViewportToScreen(), DrawViewportPixel(), g_stScreenLimits, Viewport::left, SetRasterClipPixel(), and Viewport::top.
Referenced by BuildMap(), clear_head_up_display(), CollectRasterClipColours(), draw_3d_scanner(), DrawNavMapBriefingBeacons(), DrawNavPlayerMarker(), DrawNavSquareMarker(), DrawTargetCameraAttitudeIndicators(), DrawViewportPixel(), and RestoreTargetCameraAttitudeIndicators().
Definition at line 663 of file gr.c.
References EstablishColors(), and RasterLineHook().
Referenced by CollectActivePaletteIndices(), CollectRasterClipColours(), and EstablishColors().
| void FillPolygon | ( | Viewport * | viewport, |
| ShortPoint * | points, | ||
| int | count, | ||
| char | colour ) |
Definition at line 1082 of file gr.c.
References Viewport::bottom, FillPolygon(), g_101_stScrViewInfo, g_anPolyExtents, Viewport::left, MarkDibDirty(), Viewport::pixels, Viewport::right, Viewport::rowOffsets, Viewport::top, ShortPoint::x, and ShortPoint::y.
Referenced by CollectRasterClipColours(), FillPolygon(), and triangle().
| void FillViewportEllipse | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| short | verticalRadius, | ||
| short | horizontalRadius, | ||
| short | colour ) |
Definition at line 1400 of file gr.c.
References ClipViewportToScreen(), FillRasterEllipse(), FillViewportEllipse(), g_101_stScrViewInfo, g_stScreenLimits, Viewport::left, MarkDibDirty(), and Viewport::pixels.
Referenced by CollectRasterClipColours(), and FillViewportEllipse().
Definition at line 1654 of file gr.c.
References fizzle_fade(), g_101_stScrViewInfo, Viewport::left, MarkDibDirty(), Viewport::pixels, and RasterLineHook().
Referenced by CollectRasterClipColours(), and fizzle_fade().
| void GetPaletteEntry | ( | short | index, |
| unsigned short * | rgb ) |
Definition at line 670 of file gr.c.
References GetPaletteEntry(), and GetPaletteEntryAsWords().
Referenced by CollectRasterClipColours(), FadeViewportPaletteToColour(), GetPaletteEntry(), PanToScreen(), and SaveGamePalette().
| unsigned char * GetPreparedShapeData | ( | unsigned char * | shape | ) |
Definition at line 131 of file gr.c.
References GetPreparedShapeData().
Referenced by CollectRasterClipColours(), DrawSpriteTransformed(), GetPreparedShapeData(), and PrepareShapeRLEData().
| void GetShapeFrameCorners | ( | unsigned char * | shape, |
| int | frame, | ||
| int | x, | ||
| int | y, | ||
| short * | points, | ||
| int * | count ) |
Definition at line 1461 of file gr.c.
References CheckHeapBlockSignature(), and GetShapeFrameCorners().
Referenced by CollectRasterClipColours(), and GetShapeFrameCorners().
| short GetShapeFrameCount | ( | unsigned char * | shape | ) |
Definition at line 137 of file gr.c.
References CheckHeapBlockSignature(), and GetShapeFrameCount().
Referenced by AdvanceSceneFlicStream(), CollectRasterClipColours(), DrawSpriteTransformed(), GetShapeFrameCount(), and PrepareShapeRLEData().
| void GetShapeFrameExtents | ( | unsigned char * | shape, |
| short | frame, | ||
| short * | width, | ||
| short * | height, | ||
| short * | leftExtent, | ||
| short * | topExtent ) |
Definition at line 144 of file gr.c.
References GetShapeFrameExtents().
Referenced by CollectRasterClipColours(), GetShapeFrameExtents(), and PrepareShapeRLEData().
| short GetTransformedShapeBounds | ( | Viewport * | viewport, |
| short | x, | ||
| short | y, | ||
| unsigned char * | shape, | ||
| short | frame, | ||
| short | angle, | ||
| short | scale, | ||
| short | flip, | ||
| short * | bounds ) |
Definition at line 1518 of file gr.c.
References ShortRect::bottom, Viewport::bottom, CheckHeapBlockSignature(), g_awAbsoluteCosine, g_awAbsoluteSine, GetTransformedShapeBounds(), HasValidShapeAllocationSignature(), ShortRect::left, Viewport::left, ShortRect::right, Viewport::right, ShortRect::top, Viewport::top, and void().
Referenced by build_your_target_list(), CollectRasterClipColours(), draw_target_box(), DrawScaledTitleLogo(), easy2see(), GetTransformedShapeBounds(), and RevealTitleLogo().
| short GetViewportPixel | ( | Viewport * | viewport, |
| short | x, | ||
| short | y ) |
Definition at line 1049 of file gr.c.
References ClipViewportToScreen(), g_stScreenLimits, GetViewportPixel(), Viewport::left, ReadRasterClipPixel(), and Viewport::top.
Referenced by CollectRasterClipColours(), draw_3d_scanner(), DrawTargetCameraAttitudeIndicators(), GetViewportPixel(), and PanToScreen().
| int HasValidShapeAllocationSignature | ( | unsigned char * | shape | ) |
Definition at line 123 of file gr.c.
References HasValidShapeAllocationSignature().
Referenced by CaptureSpriteBackground(), CollectRasterClipColours(), DrawSolidColourSprite(), DrawSolidColourSpriteScaled(), DrawSpriteDefault(), DrawSpriteScaled(), GetTransformedShapeBounds(), HasValidShapeAllocationSignature(), and RestoreSpriteBackground().
| void PrepareShapeRLEData | ( | unsigned char * | shape | ) |
Definition at line 363 of file gr.c.
References AllocateTaggedMemory(), CheckHeapBlockSignature(), DecodeShapeFrame(), exit_squadron(), g_13_abShapeRLEScratch, GetPreparedShapeData(), GetShapeFrameCount(), GetShapeFrameExtents(), PrepareShapeRLEData(), and ReleasePacketHandle().
Referenced by CollectRasterClipColours(), DrawSpriteTransformed(), and PrepareShapeRLEData().
Definition at line 533 of file gr.c.
References RasterLineHook(), and void().
Referenced by __copyline(), __wipeline(), CollectRasterClipColours(), EstablishColors(), fizzle_fade(), RasterLineHook(), shaded_triangle(), shadow_draw(), snow_viewport(), and triangle().
| void RestoreSpriteBackground | ( | Viewport * | viewport, |
| unsigned char * | background, | ||
| short | x, | ||
| short | y, | ||
| unsigned char * | shape, | ||
| short | frame ) |
Definition at line 846 of file gr.c.
References Viewport::bottom, g_101_stScrViewInfo, HasValidShapeAllocationSignature(), Viewport::left, MarkDibDirty(), Viewport::pixels, RestoreSpriteBackground(), Viewport::right, Viewport::rowOffsets, Viewport::top, and void().
Referenced by clear_head_up_display(), CollectRasterClipColours(), DisableMouseCursorDrawing(), EnableMouseCursorDrawing(), fire_computer_graphic_missile(), RestoreCockpitExplosionBackground(), RestoreHudMessageBackground(), RestoreMouseCursorBackground(), RestoreSpriteBackground(), RestoreTargetLeadIndicator(), RestoreTransientCockpitGraphics(), ResumeMouseCursorHook(), SetMouseCursorShape(), and UpdateDamageDisplay().
| void SetPaletteEntry | ( | short | index, |
| short * | rgb ) |
Definition at line 676 of file gr.c.
References DIBsetPalette(), and SetPaletteEntry().
Referenced by CollectRasterClipColours(), DrawSpaceSceneFrame(), FadeViewportPaletteToColour(), house_keep(), house_keep_objects(), PanToScreen(), ResetCockpitPaletteEntries(), RestoreGamePalette(), SetPaletteEntry(), and UpdateSpacePaletteFade().
| void SetSolidColourTranslation | ( | unsigned char | colour | ) |
Definition at line 354 of file gr.c.
References g_abSolidColourTranslation, SetPaletteTranslationTable(), and SetSolidColourTranslation().
Referenced by CollectRasterClipColours(), DrawSolidColourSprite(), DrawSolidColourSpriteScaled(), and SetSolidColourTranslation().
Definition at line 1330 of file gr.c.
References g_101_stScrViewInfo, MarkDibDirty(), Viewport::pixels, RasterLineHook(), and shaded_triangle().
Referenced by CollectRasterClipColours(), and shaded_triangle().
Definition at line 1432 of file gr.c.
References g_101_stScrViewInfo, Viewport::left, MarkDibDirty(), Viewport::pixels, RasterLineHook(), and shadow_draw().
Referenced by CollectRasterClipColours(), and shadow_draw().
| int SignExtendClipCoord | ( | volatile short | v | ) |
Definition at line 297 of file gr.c.
References SignExtendClipCoord().
Referenced by CollectRasterClipColours(), SignExtendClipCoord(), and ValidateViewportBounds().
Definition at line 1665 of file gr.c.
References Viewport::bottom, g_101_stScrViewInfo, g_cSecondaryViewBufferColour, g_nViewportStaticRandomRange, Viewport::left, MarkDibDirty(), Viewport::pixels, RandomBelow(), RasterLineHook(), Viewport::right, Viewport::rowOffsets, snow_viewport(), and Viewport::top.
Referenced by CollectRasterClipColours(), malf_noise(), and snow_viewport().
| void triangle | ( | Viewport * | viewport, |
| ShortPoint * | points, | ||
| int | colour ) |
Definition at line 1318 of file gr.c.
References FillPolygon(), g_101_stScrViewInfo, MarkDibDirty(), Viewport::pixels, RasterLineHook(), and triangle().
Referenced by CollectRasterClipColours(), and triangle().
| void ValidateViewportBounds | ( | Viewport * | viewport, |
| RasterSurface * | surface, | ||
| RasterClip * | clip ) |
Definition at line 307 of file gr.c.
References RasterClip::bottom, Viewport::bottom, exit_squadron(), RasterSurface::field_10, RasterSurface::field_C, g_101_stScrViewInfo, g_apViewportAllocations, g_nViewportAllocationCount, RasterClip::left, Viewport::left, MarkDibDirty(), RasterSurface::maximumX, RasterSurface::maximumY, RasterSurface::pixels, Viewport::pixels, RasterClip::right, Viewport::right, Viewport::rowOffsets, SignExtendClipCoord(), RasterClip::surface, RasterClip::top, Viewport::top, and ValidateViewportBounds().
Referenced by ClipViewportToScreen(), CollectRasterClipColours(), CopyViewportContents(), and ValidateViewportBounds().
| int g_1_nShapeClipTicksValue |
Definition at line 1707 of file gr.c.
Referenced by DrawSpriteTransformed().
| unsigned char g_abPaletteTranslation[256] |
Definition at line 12 of file gr.c.
Referenced by DrawFontGlyph().
|
static |
Definition at line 1075 of file gr.c.
Referenced by FillPolygon().
| unsigned short g_awAbsoluteCosine[360] |
Definition at line 46 of file gr.c.
Referenced by GetTransformedShapeBounds().
| unsigned short g_awAbsoluteSine[360] |
Definition at line 78 of file gr.c.
Referenced by GetTransformedShapeBounds().
| int g_nShapeDrawTicks |
Definition at line 1708 of file gr.c.
Referenced by DrawSpriteTransformed().
| int g_nShapePrepareTicks |
Definition at line 1706 of file gr.c.
Referenced by DrawSpriteTransformed().
| const int g_nViewportStaticRandomRange = 3 |
Definition at line 10 of file gr.c.
Referenced by snow_viewport().