You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
313 B
14 lines
313 B
#pragma once
|
|
|
|
#include <moggle/core/texture.hpp>
|
|
|
|
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;
|
|
}
|
|
|
|
}
|
|
|