____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"
#include "stratagus.h"
#include "title.h"
#include "video.h"
#include "movie.h"
#include "font.h"
#include "sound_server.h"
Go to the source code of this file.
Functions | |
| static void | WaitCallbackButtonPressed (unsigned dummy) |
| static void | WaitCallbackButtonReleased (unsigned dummy) |
| static void | WaitCallbackKeyPressed (unsigned dummy1, unsigned dummy2) |
| static void | WaitCallbackKeyReleased (unsigned dummy1, unsigned dummy2) |
| static void | WaitCallbackKeyRepeated (unsigned dummy1, unsigned dummy2) |
| static void | WaitCallbackMouse (int x, int y) |
| static void | WaitCallbackExit (void) |
| static void | ShowTitleImage (TitleScreen *t) |
| void | ShowTitleScreens () |
Variables | |
| TitleScreen ** | TitleScreens |
| Title screens to show at startup. | |
| static bool | WaitNoEvent |
| Flag got an event. | |
Definition in file title.cpp.
| static void ShowTitleImage | ( | TitleScreen * | t | ) | [static] |
Show a title image
Definition at line 97 of file title.cpp.
References _event_callback_::ButtonPressed, _event_callback_::ButtonReleased, CYCLES_PER_SECOND, CGraphic::DrawClip(), TitleScreen::File, TitleScreenLabel::Font, CGraphic::Free(), GetCallbacks(), CGraphic::Height, CVideo::Height, Invalidate(), _event_callback_::KeyPressed, _event_callback_::KeyReleased, _event_callback_::KeyRepeated, TitleScreen::Labels, CGraphic::Load(), _event_callback_::MouseExit, _event_callback_::MouseMoved, _event_callback_::NetworkEvent, CGraphic::New(), RealizeVideoMemory(), CGraphic::Resize(), SetCallbacks(), TitleScreen::StretchImage, TitleScreen::Timeout, TitleFlagCenter, Video, VideoDrawText(), WaitCallbackButtonPressed(), WaitCallbackButtonReleased(), WaitCallbackExit(), WaitCallbackKeyPressed(), WaitCallbackKeyReleased(), WaitCallbackKeyRepeated(), WaitCallbackMouse(), WaitEventsOneFrame(), WaitNoEvent, CFont::Width(), CGraphic::Width, CVideo::Width, TitleScreenLabel::Xofs, y, and TitleScreenLabel::Yofs.
Referenced by ShowTitleScreens().
| void ShowTitleScreens | ( | ) |
Show the title screens
Definition at line 162 of file title.cpp.
References CVideo::ClearScreen(), Invalidate(), PlayMovie(), PlayMusic(), SetVideoSync(), ShowTitleImage(), StopMusic(), and Video.
Referenced by main1().
| static void WaitCallbackButtonPressed | ( | unsigned | dummy | ) | [static] |
Callback for input.
Definition at line 46 of file title.cpp.
References WaitNoEvent.
Referenced by ShowTitleImage().
| static void WaitCallbackButtonReleased | ( | unsigned | dummy | ) | [static] |
| static void WaitCallbackExit | ( | void | ) | [static] |
| static void WaitCallbackKeyPressed | ( | unsigned | dummy1, | |
| unsigned | dummy2 | |||
| ) | [static] |
Callback for input.
Definition at line 61 of file title.cpp.
References WaitNoEvent.
Referenced by ShowTitleImage().
| static void WaitCallbackKeyReleased | ( | unsigned | dummy1, | |
| unsigned | dummy2 | |||
| ) | [static] |
| static void WaitCallbackKeyRepeated | ( | unsigned | dummy1, | |
| unsigned | dummy2 | |||
| ) | [static] |
| static void WaitCallbackMouse | ( | int | x, | |
| int | y | |||
| ) | [static] |
Title screens to show at startup.
File for title screen.
Definition at line 39 of file title.cpp.
Referenced by CclSetTitleScreens(), and CleanUserInterface().
bool WaitNoEvent [static] |
Flag got an event.
Definition at line 40 of file title.cpp.
Referenced by ShowTitleImage(), WaitCallbackButtonPressed(), and WaitCallbackKeyPressed().
1.5.6