From 270d3dfacf86bf38c2e52ac487a5bc3c046c4889 Mon Sep 17 00:00:00 2001 From: ikits Date: Sun, 22 Dec 2002 06:28:54 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@12 783a27ee-832a-0410-bc00-9f386506c6dd --- doc/glew.html | 2 ++ include/GL/glew.h | 22 ++++++++++++++++++++++ src/glew.c | 6 ++++++ src/glewinfo.c | 6 ++++++ 4 files changed, 36 insertions(+) diff --git a/doc/glew.html b/doc/glew.html index 72ab2fd..dc04189 100644 --- a/doc/glew.html +++ b/doc/glew.html @@ -149,6 +149,7 @@ name="NV">NV NV_fog_distance
NV_float_buffer
NV_fragment_program
+NV_half_float
NV_light_max_exponent
NV_multisample_filter_hint
NV_occlusion_query
@@ -158,6 +159,7 @@ name="NV">NV NV_primitive_restart
NV_register_combiners
NV_register_combiners2
+NV_texgen_emboss
NV_texgen_reflection
NV_texture_compression_vtc
NV_texture_env_combine4
diff --git a/include/GL/glew.h b/include/GL/glew.h index ab3bbee..b02750d 100644 --- a/include/GL/glew.h +++ b/include/GL/glew.h @@ -254,6 +254,7 @@ extern "C" { #define GL_NV_fog_distance 1 #define GL_NV_float_buffer 1 #define GL_NV_fragment_program 1 +#define GL_NV_half_float 1 #define GL_NV_light_max_exponent 1 #define GL_NV_multisample_filter_hint 1 #define GL_NV_occlusion_query 1 @@ -263,6 +264,7 @@ extern "C" { #define GL_NV_primitive_restart 1 #define GL_NV_register_combiners 1 #define GL_NV_register_combiners2 1 +#define GL_NV_texgen_emboss 1 #define GL_NV_texgen_reflection 1 #define GL_NV_texture_compression_vtc 1 #define GL_NV_texture_env_combine4 1 @@ -3800,6 +3802,14 @@ extern GLEW_EXPORT glGetProgramLocalParameterfvARBPROC glGetProgramLocalParamete #endif /* GL_NV_fragment_program */ +/* ----------------------------- NV_half_float ---------------------------- */ + +#ifdef GL_NV_half_float + +#define GL_HALF_FLOAT_NV 0x140B + +#endif /* GL_NV_half_float */ + /* ------------------------- NV_light_max_exponent ------------------------ */ #ifdef GL_NV_light_max_exponent @@ -4007,6 +4017,16 @@ extern GLEW_EXPORT glGetCombinerStageParameterfvNVPROC glGetCombinerStageParamet #endif /* GL_NV_register_combiners2 */ +/* --------------------------- NV_texgen_emboss --------------------------- */ + +#ifdef GL_NV_texgen_emboss + +#define GL_EMBOSS_LIGHT_NV 0x855D +#define GL_EMBOSS_CONSTANT_NV 0x855E +#define GL_EMBOSS_MAP_NV 0x855F + +#endif /* GL_NV_texgen_emboss */ + /* ------------------------- NV_texgen_reflection ------------------------- */ #ifdef GL_NV_texgen_reflection @@ -4524,6 +4544,7 @@ struct GLEW unsigned int NV_float_buffer : 1; unsigned int NV_fog_distance : 1; unsigned int NV_fragment_program : 1; + unsigned int NV_half_float : 1; unsigned int NV_light_max_exponent : 1; unsigned int NV_multisample_filter_hint : 1; unsigned int NV_occlusion_query : 1; @@ -4533,6 +4554,7 @@ struct GLEW unsigned int NV_point_sprite : 1; unsigned int NV_register_combiners : 1; unsigned int NV_register_combiners2 : 1; + unsigned int NV_texgen_emboss : 1; unsigned int NV_texgen_reflection : 1; unsigned int NV_texture_compression_vtc : 1; unsigned int NV_texture_env_combine4 : 1; diff --git a/src/glew.c b/src/glew.c index fc24ce6..592c3e7 100644 --- a/src/glew.c +++ b/src/glew.c @@ -2980,6 +2980,9 @@ static GLint _glewInit () glew.NV_fragment_program = glewGetExtension("GL_NV_fragment_program"); if (glewExperimental || glew.NV_fragment_program) glew.NV_fragment_program = !_glewInit_NV_fragment_program(); #endif +#ifdef GL_NV_light_max_exponent + glew.NV_half_float = glewGetExtension("GL_NV_half_float"); +#endif #ifdef GL_NV_light_max_exponent glew.NV_light_max_exponent = glewGetExtension("GL_NV_light_max_exponent"); #endif @@ -3013,6 +3016,9 @@ static GLint _glewInit () glew.NV_register_combiners2 = glewGetExtension("GL_NV_register_combiners2"); if (glewExperimental || glew.NV_register_combiners2) glew.NV_register_combiners2 = !_glewInit_NV_register_combiners2(); #endif +#ifdef GL_NV_texgen_emboss + glew.NV_texgen_emboss = glewGetExtension("GL_NV_texgen_emboss"); +#endif #ifdef GL_NV_texgen_reflection glew.NV_texgen_reflection = glewGetExtension("GL_NV_texgen_reflection"); #endif diff --git a/src/glewinfo.c b/src/glewinfo.c index 01a3e7f..f078bc0 100644 --- a/src/glewinfo.c +++ b/src/glewinfo.c @@ -1944,6 +1944,9 @@ static void glewInfo () #ifdef GL_NV_fragment_program glewInfo_NV_fragment_program(); #endif +#ifdef GL_NV_half_float + glewPrintExt("GL_NV_half_float", glew.NV_half_float); +#endif #ifdef GL_NV_light_max_exponent glewPrintExt("GL_NV_light_max_exponent", glew.NV_light_max_exponent); #endif @@ -1971,6 +1974,9 @@ static void glewInfo () #ifdef GL_NV_register_combiners2 glewInfo_NV_register_combiners2(); #endif +#ifdef GL_NV_texgen_emboss + glewPrintExt("GL_NV_texgen_emboss", glew.NV_texgen_emboss); +#endif #ifdef GL_NV_texgen_reflection glewPrintExt("GL_NV_texgen_reflection", glew.NV_texgen_reflection); #endif