src/opengl/util/README-GLSL
author Eckhart Koeppen <eckhart.koppen@nokia.com>
Thu, 08 Apr 2010 14:19:33 +0300
branchRCL_3
changeset 7 3f74d0d4af4c
parent 0 1918ee327afb
permissions -rw-r--r--
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84

Use of GLSL for vertex and fragment programs in Qt
---------------------------------------------------

We don't compile the *.glsl files because we don't want the build process of
Qt to require cgc from nVidia to build the fragment programs.

The script src/opengl/util/glsl_to_include.sh will compile a GLSL program to a file
that can be included in a C(++) program. The file is the output from cgc
quoted as a string.

This can be done manually by:

./glsl_to_include.sh radial.glsl
./glsl_to_include.sh conical.glsl

This will produce the files radial.frag and radial.glsl_quoted.
(and also conical.frag and conical.glsl_quoted)
These files are included by qpaintengine_opengl.cpp