52 GLboolean layered, GLint layer,
53 GLenum access, GLenum format) {
55 glBindImageTexture(unit,
texture, level, layered, layer, access, format);
static std::shared_ptr< Texture > find_texture(std::string name)
Finds a texture in the internal map using the name as key.
void bind_image(GLuint unit, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format)
Binds a level of a texture to an image unit.
unsigned int width
The width of the texture.
static bool store_texture(std::string name, std::shared_ptr< Texture > texture)
Stores a texture object in an internal map using the name parameter as key (no duplicates)
void set_parameter(GLenum name, int parameter)
Sets a texture parameter.
virtual void unbind(unsigned int texture_unit=0)=0
Unbind the texture.
virtual void bind(unsigned int texture_unit=0)=0
Bind the texture to be used by the shader.
static void add_path(std::string path)
Adds a path to the list of paths to be searched for image files.
unsigned int height
The height of the texture.