summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_opengl_qglpixelbuffer.cpp
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-08-27 00:54:14 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-08-27 00:54:14 (GMT)
commit741bbc1be204adb4ceb6f9ae2aa35772c63d989c (patch)
treecdb19c67a69613f3a3633a16e6213e37bc05978d /doc/src/snippets/code/src_opengl_qglpixelbuffer.cpp
parente201ff0ff3a8223b14a72954c898674e606f147e (diff)
downloadQt-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/src_opengl_qglpixelbuffer.cpp')
0 files changed, 0 insertions, 0 deletions