diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-08-27 00:54:14 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-08-27 00:54:14 (GMT) |
commit | 741bbc1be204adb4ceb6f9ae2aa35772c63d989c (patch) | |
tree | cdb19c67a69613f3a3633a16e6213e37bc05978d /doc/src/snippets/code/doc_src_qalgorithms.qdoc | |
parent | e201ff0ff3a8223b14a72954c898674e606f147e (diff) | |
download | Qt-741bbc1be204adb4ceb6f9ae2aa35772c63d989c.zip Qt-741bbc1be204adb4ceb6f9ae2aa35772c63d989c.tar.gz Qt-741bbc1be204adb4ceb6f9ae2aa35772c63d989c.tar.bz2 |
API improvements for creating shaders from files
It used to be possible to derive the shader type from the file extension,
but this isn't very extensible and doesn't capture the usual extensions.
Change it so that the shader type must be supplied explicitly.
Also add the addShaderFromFile() function to QGLShaderProgram to
provide a convenient short-cut for file-based shader creation.
Reviewed-by: Sarah Smith
Diffstat (limited to 'doc/src/snippets/code/doc_src_qalgorithms.qdoc')
0 files changed, 0 insertions, 0 deletions