mirror of
https://github.com/Linloir/SceneEditor.git
synced 2025-12-17 23:48:12 +08:00
24 lines
459 B
C++
24 lines
459 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
enum TextureType { DIFFUSE, SPECULAR };
|
|
|
|
class Texture {
|
|
private:
|
|
unsigned int _id;
|
|
TextureType _type;
|
|
std::string _path;
|
|
|
|
public:
|
|
Texture(TextureType type, std::string path);
|
|
|
|
public:
|
|
inline unsigned int id() const { return _id; }
|
|
inline TextureType type() const { return _type; }
|
|
inline std::string path() const { return _path; }
|
|
|
|
inline void bind() const;
|
|
inline void unbind() const;
|
|
};
|