diff options
author | Andrey Nazarov <skuller@skuller.net> | 2013-03-04 20:11:31 +0400 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2013-03-14 20:53:32 +0400 |
commit | baff433b6a2347ba3b052c6d54027634ea90175e (patch) | |
tree | 7884bbe3f4bc36fabce24649204e0a321bcca0a7 /inc/shared/shared.h | |
parent | 9ca9cd9374fc98a3aeb466c1f5232bc07d6394b8 (diff) |
Improve OpenGL renderer.
Support GL_UNSIGNED_INT and GL_UNSIGNED_SHORT indices for
glDrawElements as compile time option.
Explicitly generate texture object names for future compatibility with
Core profile.
Get rid of most GL matrix manipulation functions. Setup our own
matrices.
Further minimize number of GL state changes. Implement lightmap, flow
and warp state bits. Implement client side array state bits.
Lazily rebind textures on different TMUs. Lazily toggle multitexturing.
Prevent ‘gl_nobind 1’ from interfering with texture uploads.
Add support for vertex lighting, activated with ‘gl_vertexlight 1’.
Remove dependency on GL_ARB_multitexture extension, renderer should now
run on pure OpenGL 1.1 with vertex lighting.
Preserve front-to-back ordering of world surfaces when hashing.
Optimize drawing path with hashing disabled. Don't hash inline model
surfaces. Add support for alpha test surfaces.
Don't count meshes when displaying triangles per batch ratio.
Diffstat (limited to 'inc/shared/shared.h')
-rw-r--r-- | inc/shared/shared.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/shared/shared.h b/inc/shared/shared.h index ba3b87d..372c792 100644 --- a/inc/shared/shared.h +++ b/inc/shared/shared.h @@ -695,6 +695,8 @@ COLLISION DETECTION #define SURF_FLOWING 0x40 // scroll towards angle #define SURF_NODRAW 0x80 // don't bother referencing the texture +#define SURF_ALPHATEST 0x02000000 // used by kmquake2 + // content masks |