SparrowRenderer/utils.h
2015-07-03 13:17:00 +02:00

29 lines
462 B
C++

#ifndef UTILS_H
#define UTILS_H
#include <string>
class QImage;
class Mesh;
class Utils
{
public:
static std::string fileToString(const std::string &filename);
static Mesh* loadOBJ(const std::string &filename);
class Image
{
private:
QImage* img;
public:
Image(std::string filename);
~Image();
int depth();
int width();
int height();
void* pixels();
};
};
#endif // UTILS_H