Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
renderbackground.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "SDL_opengl.h" // for GLuint
4 
5 struct Texture;
6 
7 extern float loadprogress;
8 
10 extern void renderbackground(const char *caption = nullptr, Texture *mapshot = nullptr,
11  const char *mapname = nullptr, const char *mapinfo = nullptr, bool restore = false, bool force = false);
12 
14 extern void renderprogress(float bar, const char *text, GLuint tex = 0, bool background = false);
15 
void renderprogress(float bar, const char *text, GLuint tex=0, bool background=false)
render progress bar and map screenshot
Definition: renderbackground.cpp:238
typedef GLuint(APIENTRYP PFNGLGETUNIFORMBLOCKINDEXPROC)(GLuint program
void renderbackground(const char *caption=nullptr, Texture *mapshot=nullptr, const char *mapname=nullptr, const char *mapinfo=nullptr, bool restore=false, bool force=false)
render background texture for the mainmenu and the loading screen.
Definition: renderbackground.cpp:84
void mapname()
Definition: world.cpp:1418
A Texture entry, holding info about a texture on the GPU.
Definition: texture.hpp:27
float loadprogress
Definition: renderbackground.cpp:42