2013-07-02 08:06:03 +02:00
|
|
|
#pragma once
|
2013-07-02 08:40:43 +02:00
|
|
|
#ifndef _TEXTURELOADER_HPP_
|
|
|
|
#define _TEXTURELOADER_HPP_
|
2013-07-02 08:06:03 +02:00
|
|
|
|
|
|
|
#define GLEW_STATIC
|
|
|
|
#include <GL/glew.h>
|
|
|
|
|
2013-09-08 21:14:48 +02:00
|
|
|
#include <renderwure/loaders/rwbinarystream.h>
|
2013-07-02 08:06:03 +02:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <map>
|
|
|
|
|
2013-09-11 20:23:31 +02:00
|
|
|
class GTAData;
|
|
|
|
|
2013-07-02 08:06:03 +02:00
|
|
|
class TextureLoader
|
|
|
|
{
|
|
|
|
public:
|
2013-09-11 20:23:31 +02:00
|
|
|
bool loadFromFile(std::string filename, GTAData* gameData);
|
|
|
|
bool loadFromMemory(char *data, GTAData* gameData);
|
2013-07-02 08:06:03 +02:00
|
|
|
};
|
2013-07-02 08:40:43 +02:00
|
|
|
|
2013-09-08 21:14:48 +02:00
|
|
|
#endif
|