aboutsummaryrefslogtreecommitdiffstats
path: root/gl.h
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2018-05-02 21:22:03 +0100
committerTomasz Kramkowski <tk@the-tk.com>2018-05-02 21:22:03 +0100
commitb659c412263f6dd7df962f7d42f4f51b7c3d5609 (patch)
treee2495e0b1446527b909a9c9fa2776797c7c28221 /gl.h
parentec93a8eddf70adef2b1439a511d990021ad25d99 (diff)
downloadfaqe-b659c412263f6dd7df962f7d42f4f51b7c3d5609.tar.gz
faqe-b659c412263f6dd7df962f7d42f4f51b7c3d5609.tar.xz
faqe-b659c412263f6dd7df962f7d42f4f51b7c3d5609.zip
Implement diffuse texture loading and basic material support
Diffstat (limited to 'gl.h')
-rw-r--r--gl.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/gl.h b/gl.h
index 40b650d..76e78d9 100644
--- a/gl.h
+++ b/gl.h
@@ -52,9 +52,25 @@ enum {
GL_CONTEXT_LOST,
GL_CULL_FACE = 0x0b44,
GL_DEPTH_TEST = 0x0b71,
+ GL_TEXTURE_2D = 0x0de1,
+ GL_UNSIGNED_BYTE = 0x1401,
GL_UNSIGNED_INT = 0x1405,
GL_FLOAT = 0x1406,
+ GL_RGB = 0x1907,
GL_LINE = 0x1B01,
+ GL_NEAREST = 0x2600,
+ GL_LINEAR,
+ GL_NEAREST_MIPMAP_NEAREST = 0x2700,
+ GL_LINEAR_MIPMAP_NEAREST,
+ GL_NEAREST_MIPMAP_LINEAR,
+ GL_LINEAR_MIPMAP_LINEAR,
+ GL_TEXTURE_MAG_FILTER = 0x2800,
+ GL_TEXTURE_MIN_FILTER,
+ GL_TEXTURE_WRAP_S,
+ GL_TEXTURE_WRAP_T,
+ GL_CLAMP = 0x2900,
+ GL_REPEAT,
+ GL_TEXTURE0 = 0x84c0,
GL_ARRAY_BUFFER = 0x8892,
GL_ELEMENT_ARRAY_BUFFER = 0x8893,
GL_STREAM_DRAW = 0x88e0,