Commit a9886304 authored by Tim Übelhör's avatar Tim Übelhör

using member functions

parent acfd206f
......@@ -9,9 +9,9 @@ Texture2D::Texture2D(GLsizei width, GLsizei height,
type(type)
{
glGenTextures(1, &texture);
glBindTexture(GL_TEXTURE_2D, texture);
bind();
glTexStorage2D(GL_TEXTURE_2D, 1, internal_format, width, height);
glBindTexture(GL_TEXTURE_2D, 0);
unbind();
}
Texture2D::~Texture2D()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment