|
glcxx: A Modern C++ Interface to OpenGL Object Management
|
C++ wrapper for an OpenGL texture object. More...
#include <Texture.hpp>
Public Member Functions | |
| Texture () | |
| Construct and allocate an OpenGL texture object. | |
| ~Texture () | |
| Destroy the texture object. | |
| GLuint | id () const |
| Get the texture object's ID. More... | |
| void | bind (GLenum target) const |
| Bind the texture object. | |
Static Public Member Functions | |
| static std::shared_ptr< Texture > | create () |
| Factory method to construct a Texture. More... | |
| static uint32_t | next_power_of_2 (uint32_t n) |
| Return the lowest power-of-2 integer greater than or equal to n. More... | |
Protected Member Functions | |
| void | allocate () |
| Allocate the OpenGL texture object. | |
Protected Attributes | |
| GLuint | m_id |
| The texture object's ID. | |
C++ wrapper for an OpenGL texture object.
|
inlinestatic |
|
inline |
Get the texture object's ID.
|
static |
Return the lowest power-of-2 integer greater than or equal to n.
| n | Minimum bound for return value. |
1.8.11