Added glm, fbo, shader, texture and texture generator
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user