|
Wing Commander II
Reconstructed Win32 source (1996)
|
Cinematic sprite-font renderer. More...
#include "game.h"Go to the source code of this file.
Functions | |
| void | DrawCinematicFontCharacter (char character) |
| short | IsCinematicFontCharacterPrintable (short character) |
| void | DrawWrappedCinematicText (char *text) |
| short | MeasureCinematicFontCharacterWidth (short character) |
| short | MeasureCinematicFontLineHeight (void) |
| void | InitializeCinematicTextRenderer (void) |
Cinematic sprite-font renderer.
Definition in file text.c.
| void DrawCinematicFontCharacter | ( | char | character | ) |
Definition at line 9 of file text.c.
References TextContext::cursorX, TextContext::cursorY, DrawCinematicFontCharacter(), DrawSpriteDefault(), TextContext::font, g_29_pCurrentTextContext, GetShapeFrameBounds(), IsCinematicFontCharacterPrintable(), ShortRect::left, ShortRect::right, and TextContext::viewport.
Referenced by DrawCinematicFontCharacter(), DrawFormattedText(), DrawWrappedCinematicText(), and InitializeCinematicTextRenderer().
| void DrawWrappedCinematicText | ( | char * | text | ) |
Definition at line 40 of file text.c.
References advance(), TextContext::alignment, TextContext::cursorX, TextContext::cursorY, DrawCinematicFontCharacter(), DrawWrappedCinematicText(), g_29_pCurrentTextContext, Viewport::left, MeasureCinematicFontCharacterWidth(), MeasureCinematicFontLineHeight(), Viewport::right, and TextContext::viewport.
Referenced by DrawWrappedCinematicText(), FormatTextTokens(), and InitializeCinematicTextRenderer().
Definition at line 132 of file text.c.
References DrawCinematicFontCharacter(), DrawWrappedCinematicText(), g_36_pfnRenderSceneFontCharacterHandler, g_3_pfnRenderSceneTextStringHandler, and InitializeCinematicTextRenderer().
Referenced by InitializeCinematicTextRenderer(), and InitializeCutsceneRuntimeResources().
| short IsCinematicFontCharacterPrintable | ( | short | character | ) |
Definition at line 32 of file text.c.
References IsCinematicFontCharacterPrintable().
Referenced by DrawCinematicFontCharacter(), IsCinematicFontCharacterPrintable(), and MeasureCinematicFontCharacterWidth().
| short MeasureCinematicFontCharacterWidth | ( | short | character | ) |
Definition at line 109 of file text.c.
References TextContext::font, g_29_pCurrentTextContext, GetShapeFrameBounds(), IsCinematicFontCharacterPrintable(), ShortRect::left, MeasureCinematicFontCharacterWidth(), and ShortRect::right.
Referenced by DrawWrappedCinematicText(), and MeasureCinematicFontCharacterWidth().
| short MeasureCinematicFontLineHeight | ( | void | ) |
Definition at line 122 of file text.c.
References ShortRect::bottom, TextContext::font, g_29_pCurrentTextContext, GetShapeFrameBounds(), ShortRect::left, MeasureCinematicFontLineHeight(), and ShortRect::top.
Referenced by DrawWrappedCinematicText(), and MeasureCinematicFontLineHeight().