mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 11:22:45 +01:00
20 lines
310 B
C++
20 lines
310 B
C++
#pragma once
|
|
|
|
#define GLEW_STATIC
|
|
#include <GL/glew.h>
|
|
|
|
#include "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;
|
|
};
|