The Deprecation Model
OpenGLのバージョンが3.0になることで、古い固定シェーダは使わないことを推奨することを指すもの。
OpenGL 3.0のSpecificationでも、付録Eに"The Deprecation Model"の説明がある。
概要
"...OpenGL 3.0 introduces a deprecation model in which certain features may be marked as deprecated. Deprecated features are expected to be completely removed from a future version of OpenGL..."
"...OpenGL 3.0 introduces a deprecation model in which certain features may be marked as deprecated. Deprecated features are expected to be completely removed from a future version of OpenGL..."
- deprecatedとマークされてしまった機能については、後のバージョンで削除される可能性があるため、使用することを推奨しない.
たとえば、
- OpenGL
- Begin/End の代わりに Vartex Array を使え
- GLSL1.3
- attribute や varying の代わりに in, out を使え
- ftransform は使うな
- gl_Vertex や gl_ModelViewProjectionMatrix など,固定機能に由来するものは使わない
- glVertexAttribPointer() を使え
など。
OpenGL4.0のDeprecatedからRemoveへの変更
実際、OpenGL4.0から固定シェーダ関連のAPIは削除されている.
OpenGL Quick Reference Card(PDF)を参照することで確認することが可能.
OpenGL Quick Reference Card(PDF)を参照することで確認することが可能.