Add gfx::array::operator bool
This commit is contained in:
parent
abc0af2a79
commit
bd7f8e6658
1 changed files with 2 additions and 0 deletions
|
|
@ -21,6 +21,8 @@ namespace psemek::gfx
|
||||||
|
|
||||||
GLuint id() const { return id_; }
|
GLuint id() const { return id_; }
|
||||||
|
|
||||||
|
explicit operator bool() const { return id() != 0; }
|
||||||
|
|
||||||
void bind() const;
|
void bind() const;
|
||||||
|
|
||||||
void reset();
|
void reset();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue