OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4LoaderScreen.h
Go to the documentation of this file.
1 /*
2  * OpenClonk, http://www.openclonk.org
3  *
4  * Copyright (c) 2003-2009, RedWolf Design GmbH, http://www.clonk.de/
5  * Copyright (c) 2013-2016, The OpenClonk Team and contributors
6  *
7  * Distributed under the terms of the ISC license; see accompanying file
8  * "COPYING" for details.
9  *
10  * "Clonk" is a registered trademark of Matthes Bender, used with permission.
11  * See accompanying file "TRADEMARK" for details.
12  *
13  * To redistribute this file separately, substitute the full license texts
14  * for the above references.
15  */
16 // startup screen
17 
18 #ifndef INC_C4LoaderScreen
19 #define INC_C4LoaderScreen
20 
21 #include "graphics/C4FacetEx.h"
22 
24 {
25 public:
26  C4FacetSurface fctBackground; // background image
27  char *szInfo; // info text to be drawn on loader screen
28  bool fBlackScreen; // if set, a black screen is drawn instead of a loader
29 
30 public:
31  C4LoaderScreen(); // ctor
32  ~C4LoaderScreen(); // dtor
33 
34  bool Init(const char *szLoaderSpec); // inits and loads from global C4Game-class
35  void SetBlackScreen(bool fIsBlack); // enabled/disables drawing of loader screen
36  int SeekLoaderScreens(C4Group &rFromGrp, const char *szWildcard, int iLoaderCount, char *szDstName, C4Group **ppDestGrp);
37 
38  void Draw(C4Facet &cgo, int iProgress=0, class C4LogBuffer *pLog=nullptr, int Process=0); // draw loader screen (does not page flip!)
39 };
40 
41 #endif //INC_C4LoaderScreen
C4FacetSurface fctBackground
void Draw(C4Facet &cgo, int iProgress=0, class C4LogBuffer *pLog=nullptr, int Process=0)
bool Init(const char *szLoaderSpec)
void SetBlackScreen(bool fIsBlack)
int SeekLoaderScreens(C4Group &rFromGrp, const char *szWildcard, int iLoaderCount, char *szDstName, C4Group **ppDestGrp)