Lightweight OpenGL 3D Renderer
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#pragma once
|
|
|
|
namespace Textures {
|
|
class Texture2D {
|
|
public:
|
|
unsigned int id;
|
|
const char* texture_src;
|
|
bool loaded = false;
|
|
|
|
Texture2D();
|
|
Texture2D(const char* t_src);
|
|
void load();
|
|
void bind();
|
|
private:
|
|
int width, height, nrChannels;
|
|
};
|
|
}
|
|
|
|
|