cogl-program: Add private functions to check if have each shader type
authorNeil Roberts <neil@linux.intel.com>
Thu, 2 Dec 2010 13:54:15 +0000 (13:54 +0000)
committerNeil Roberts <neil@linux.intel.com>
Mon, 13 Dec 2010 17:22:57 +0000 (17:22 +0000)
commit1e3cdb60d6a6ad67c4e693687c5c9c64a25d7cec
tree0708d2567da557d11568ee2eded43a4e40c7e385
parent31f0eb4f715a3622260965b0b0a3be132cde8d23
cogl-program: Add private functions to check if have each shader type

This adds two internal functions:

gboolean
_cogl_program_has_fragment_shader (CoglHandle handle);

gboolean
_cogl_program_has_vertex_shader (CoglHandle handle);

They just check whether any of the contained shaders are of that type.
clutter/cogl/cogl/cogl-program-private.h
clutter/cogl/cogl/cogl-program.c