Added glm, fbo, shader, texture and texture generator

This commit is contained in:
2022-04-23 16:41:33 +03:00
parent 38af8d7336
commit 8290c32cda
17 changed files with 676 additions and 25 deletions
+27
View File
@@ -0,0 +1,27 @@
#pragma once
#include "peripherals.h"
BEGIN_NAMESPACE
class texture {
public:
texture(int width, int height, uint8_t *buffer);
texture(GLuint id, int width, int height);
virtual ~texture();
int get_width() const;
int get_height() const;
GLuint get_id() const { return id; }
void use() const;
void unuse() const;
private:
int width;
int height;
bool destroyable;
GLuint id = 0;
};
END_NAMESPACE