This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
2015-11-07 13:56:06 +00:00
|
|
|
#ifndef _TEXTURE_HPP_
|
|
|
|
#define _TEXTURE_HPP_
|
|
|
|
|
2015-11-11 20:17:11 +00:00
|
|
|
#include "resource.hpp"
|
2015-11-07 13:56:06 +00:00
|
|
|
#include "gl.hpp"
|
|
|
|
|
2015-11-09 15:28:25 +00:00
|
|
|
#include <string>
|
|
|
|
|
2015-11-13 10:47:30 +00:00
|
|
|
struct Texture:
|
|
|
|
Resource
|
2015-11-07 13:56:06 +00:00
|
|
|
{
|
2015-11-11 20:17:11 +00:00
|
|
|
RESOURCE(Texture)
|
2015-11-11 17:28:11 +00:00
|
|
|
|
2015-11-07 13:56:06 +00:00
|
|
|
void use() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
GLuint _id;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _TEXTURE_HPP_
|