Draft implementation of hash tabled textures

This commit is contained in:
2016-08-27 04:15:13 +10:00
parent 4c0c2808ca
commit 1d09bdfa20
8 changed files with 72 additions and 58 deletions
+6 -6
View File
@@ -34,12 +34,12 @@ Texture texture_gen(const GLuint width, const GLuint height,
// TODO(doyle): Let us set the parameters gl params as well
GL_CHECK_ERROR();
Texture tex = {0};
tex.width = width;
tex.height = height;
tex.internalFormat = GL_RGBA;
tex.wrapS = GL_REPEAT;
tex.wrapT = GL_REPEAT;
tex.filterMinification = GL_NEAREST;
tex.width = width;
tex.height = height;
tex.internalFormat = GL_RGBA;
tex.wrapS = GL_REPEAT;
tex.wrapT = GL_REPEAT;
tex.filterMinification = GL_NEAREST;
tex.filterMagnification = GL_NEAREST;
glGenTextures(1, &tex.id);