/*
Copyright (C) 2003, 2010 - Wolfire Games
-Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file)
+Copyright (C) 2010-2017 - Lugaru contributors (see AUTHORS file)
This file is part of Lugaru.
#pragma once
#endif
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#endif
/**> DATA STRUCTURES <**/
-class ImageRec {
+class ImageRec
+{
public:
- GLubyte *data; // Image Data (Up To 32 Bits)
- GLuint bpp; // Image Color Depth In Bits Per Pixel.
+ GLubyte* data; // Image Data (Up To 32 Bits)
+ GLuint bpp; // Image Color Depth In Bits Per Pixel.
GLuint sizeX;
GLuint sizeY;
ImageRec();
~ImageRec();
+
private:
/* Make sure this class cannot be copied to avoid memory problems */
- ImageRec(ImageRec const &);
- ImageRec& operator=(ImageRec const &);
+ ImageRec(ImageRec const&);
+ ImageRec& operator=(ImageRec const&);
};
-bool load_image(const char * fname, ImageRec & tex);
-bool save_screenshot(const char * fname);
+bool load_image(const char* fname, ImageRec& tex);
+bool save_screenshot(const char* fname);
#endif
-