Collaboration diagram for Splash State:
Files | |
file | splashstate.c |
Implements the operating state for the splash screen (STATE_CODES::STATE_SPLASH). | |
file | splashstate.h |
Defines the functions used for STATE_CODES::STATE_SPLASH. | |
Functions | |
static void | BfldErrResize () |
Places the text used on the splash screen. | |
int | SplashInit () |
Initalizes the data needed for the splash screen. | |
static void | SplashResize () |
Places the text used on the splash screen. | |
int | SplashRun () |
Displays the splash screen, starts loading media needed for the menu, and starts the attempt to connect to a server. | |
int | SplashUninit () |
Unloads the media needed for the splash screen. | |
Variables | |
Uint32 | startTime |
The time when the splash screen was initalized. |
static void BfldErrResize | ( | ) | [static] |
Places the text used on the splash screen.
The positioning adjusts with the size of the window or full-screen display.
Definition at line 53 of file bflderrstate.c.
References AddRenderItem(), background, bfErr, BOTTOM_MARGIN, COLOR_TEXT, colorFmtInd, dInfo, FONT_SCORE, LAYER_TEXT, RenderItem_t::loc, DisplayInfo_t::luw, BattleFieldError_t::msg, DisplayInfo_t::ph, PlaceRenderItem(), DisplayInfo_t::pw, SetupColorVals(), Player_t::tank, tanks, TEXTITEM_ERRCONT, TEXTITEM_ERROR, TEXTITEM_TITLE, textItems, TextRenderString(), and TOP_MARGIN.
Referenced by BfldErrInit(), and BfldErrRun().
Here is the call graph for this function:
int SplashInit | ( | ) |
Initalizes the data needed for the splash screen.
Definition at line 104 of file splashstate.c.
References AddRenderItem(), background, COLOR_BLACK, COLOR_REGBACK, COLOR_TEXT, colorFmtInd, colorVals, dInfo, DrawTank(), LAYER_BACKGROUND, LAYER_TANKS, DisplayInfo_t::lh, DisplayInfo_t::luh, DisplayInfo_t::luw, DisplayInfo_t::lw, DisplayInfo_t::ph, DisplayInfo_t::pw, RenderItem_t::renderer, Player_t::rot, SolidFillRenderer(), SplashResize(), startTime, STATE_ERROR, STATE_OK, Player_t::tank, tanks, Player_t::team, and TextSetupStateSplash().
Here is the call graph for this function:
static void SplashResize | ( | ) | [static] |
Places the text used on the splash screen.
The positioning adjusts with the size of the window or full-screen display.
Definition at line 54 of file splashstate.c.
References background, BOTTOM_MARGIN, dInfo, RenderItem_t::loc, DisplayInfo_t::luw, DisplayInfo_t::ph, PlaceRenderItem(), DisplayInfo_t::pw, SetupColorVals(), Player_t::tank, tanks, TEXTITEM_AUTH, TEXTITEM_COPYRIGHT, TEXTITEM_GPL, TEXTITEM_TITLE, TEXTITEM_TRANS, textItems, and TOP_MARGIN.
Referenced by SplashInit(), and SplashRun().
Here is the call graph for this function:
int SplashRun | ( | ) |
Displays the splash screen, starts loading media needed for the menu, and starts the attempt to connect to a server.
Definition at line 152 of file splashstate.c.
References ProcessNetworkMessages(), ResizeWindow(), SplashResize(), startTime, STATE_MENUROOT, STATE_QUIT, and STATE_SPLASH.
Here is the call graph for this function:
int SplashUninit | ( | ) |
Unloads the media needed for the splash screen.
Definition at line 138 of file splashstate.c.
References background, RenderItem_t::data, GenericSurfaceRenderer(), RemoveRenderItem(), RenderItem_t::renderer, STATE_OK, tanks, and TextUnsetState().
Here is the call graph for this function:
Uint32 startTime |
The time when the splash screen was initalized.
Definition at line 41 of file splashstate.c.
Referenced by BfldErrInit(), BfldErrRun(), SplashInit(), and SplashRun().