aboutsummaryrefslogtreecommitdiffstats
path: root/glfunc.h
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2018-10-22 01:41:32 +0300
committerTomasz Kramkowski <tk@the-tk.com>2018-10-22 01:41:32 +0300
commit0cd7f50e11d89311762ae062bb1cfa876a317353 (patch)
tree2d4fbf2ff330c5d150f660d1aefd145d3135ddd0 /glfunc.h
parent3c7790062aa05653efa0f8ee230c07cb7ead91dd (diff)
downloadfaqe-0cd7f50e11d89311762ae062bb1cfa876a317353.tar.gz
faqe-0cd7f50e11d89311762ae062bb1cfa876a317353.tar.xz
faqe-0cd7f50e11d89311762ae062bb1cfa876a317353.zip
use shaders/data.h for the definition of vertices
Now that shaders/data.h is in place, it can be taken to the next extreme. The information stored in shaders/data.h is plentiful enough that vertex attribute location information can be standardised, the definition of vertices can be specified in only one place and the bindings for vertex information can be generated. It's around this point in time that I wish there was a better pre-processor for all this. It might make things a lot cleaner.
Diffstat (limited to 'glfunc.h')
-rw-r--r--glfunc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/glfunc.h b/glfunc.h
index a5c575e..cec32b3 100644
--- a/glfunc.h
+++ b/glfunc.h
@@ -52,3 +52,4 @@ GL_FUNC(glBindTexture, void, gl_tex_bind, GLenum target, GLuint texture)
GL_FUNC(glTexImage2D, void, gl_tex_img2d, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *data)
GL_FUNC(glTexParameteri, void, gl_tex_parami, GLenum target, GLenum pname, GLint param)
GL_FUNC(glGenerateMipmap, void, gl_tex_genmip, GLenum target)
+GL_FUNC(glBindAttribLocation, void, gl_attr_bindloc, GLuint program, GLuint index, const char *name)