added text widget parsing and rendering
This commit is contained in:
@@ -14,6 +14,7 @@ public:
|
||||
void bind() const { glBindTexture(GL_TEXTURE_2D, m_tex); }
|
||||
void unbind() const { glBindTexture(GL_TEXTURE_2D, 0); }
|
||||
void update(const uint8_t* data);
|
||||
bool ready() const { return m_tex != 0; }
|
||||
};
|
||||
|
||||
class Sampler
|
||||
@@ -25,4 +26,5 @@ public:
|
||||
void set(GLint filter = GL_LINEAR, GLint wrap = GL_CLAMP_TO_EDGE);
|
||||
void bind(int unit);
|
||||
void unbind();
|
||||
bool ready() const { return id != 0; }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user