30 lines
571 B
C++
30 lines
571 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);
|
|
//static void loadOBJ(const std::string &filename);
|
|
static void loadMTL(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
|