diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-03-10 19:38:23 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-03-10 19:38:23 +0400 |
commit | 9fe858264c698844c6734ed8eeeb0cd2373b4b4a (patch) | |
tree | 926c0f82915fe1417e3f679f5e64fe4f32350841 /source/blender/gpu/GPU_extensions.h | |
parent | f57398568a326dcbc69900d2c21b96abca14429b (diff) |
OpenGL: more work on fixed function lighting implementation as GLSL.
* Rename functions and move to own header.
* Add wrapper functions for glLight.
* Auto detect if we can use faster code for solid lighting.
* Various fixes for textured draw mode.
Diffstat (limited to 'source/blender/gpu/GPU_extensions.h')
-rw-r--r-- | source/blender/gpu/GPU_extensions.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/source/blender/gpu/GPU_extensions.h b/source/blender/gpu/GPU_extensions.h index 7492304bd40..07269d3e2b5 100644 --- a/source/blender/gpu/GPU_extensions.h +++ b/source/blender/gpu/GPU_extensions.h @@ -201,30 +201,6 @@ typedef struct GPUVertexAttribs { int totlayer; } GPUVertexAttribs; -/* Fixed Function Materials */ - -typedef enum GPUFixedMaterialOption { - GPU_FIXED_COLOR_MATERIAL = (1<<0), /* replace diffuse with glcolor */ - GPU_FIXED_SOLID_LIGHTING = (1<<1), /* use solid lighting (only 3 directional lights) */ - GPU_FIXED_SCENE_LIGHTING = (1<<2), /* use scene lighting (up to 8 arbitrary lights) */ - GPU_FIXED_TWO_SIDED = (1<<3), /* flip normals towards viewer */ - GPU_FIXED_TEXTURE_2D = (1<<4), /* use 2D texture to replace diffuse color */ - - GPU_FIXED_OPTIONS_NUM = 5, - GPU_FIXED_OPTION_COMBINATIONS = (1<<GPU_FIXED_OPTIONS_NUM) -} GPUFixedMaterialOption; - -void GPU_fixed_materials_init(void); -void GPU_fixed_materials_exit(void); - -void GPU_fixed_material_shader_bind(int options); -void GPU_fixed_material_shader_unbind(void); - -void GPU_fixed_material_colors(const float diffuse[3], const float specular[3], - int shininess, float alpha); - -bool GPU_fixed_material_need_normals(void); - #ifdef __cplusplus } #endif |