- added ability to change background color and take screenshots (see file and Custom Color menus)

This commit is contained in:
Mark Vejvoda
2011-01-20 18:05:07 +00:00
parent 66261ad662
commit 685c338f97
4 changed files with 133 additions and 36 deletions

View File

@@ -79,6 +79,9 @@ private:
bool normals;
bool grid;
int width;
int height;
ModelRenderer *modelRenderer;
TextureManager *textureManager;
ParticleRenderer *particleRenderer;
@@ -96,6 +99,11 @@ private:
Texture2D *customTextureMagenta;
MeshCallbackTeamColor meshCallbackTeamColor;
float red;
float green;
float blue;
float alpha;
Renderer();
void checkGlCaps();
void checkExtension(const string &extension, const string &msg);
@@ -135,6 +143,9 @@ public:
void initModelManager();
void end();
void setBackgroundColor(float red, float green, float blue, float alpha);
void saveScreen(const string &path);
};
}}//end namespace