#pragma once #include namespace moggle { //! creates empty texture inline texture create_texture(GLsizei width, GLsizei height, GLint internalformat = GL_RGBA, GLenum target = GL_TEXTURE_2D){ texture t; t.image_2d(target, 0, internalformat, width, height, nullptr); return t; } }