1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-10-06 09:07:19 +02:00
openrw/framework2/include/renderwure/loaders/TextureLoader.hpp
2013-09-08 20:22:32 +01:00

24 lines
393 B
C++

#pragma once
#ifndef _TEXTURELOADER_HPP_
#define _TEXTURELOADER_HPP_
#define GLEW_STATIC
#include <GL/glew.h>
#include <renderwure/loaders/rwbinarystream.h>
#include <string>
#include <map>
class TextureLoader
{
public:
bool loadFromFile(std::string filename);
bool loadFromMemory(char *data);
void bindTexture(std::string texture);
std::map<std::string, GLuint> textures;
};
#endif