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

23 lines
389 B
C++

#pragma once
#ifndef _TEXTURELOADER_HPP_
#define _TEXTURELOADER_HPP_
#define GLEW_STATIC
#include <GL/glew.h>
#include "../../framework/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