Adds static function in CCGLProgram.

Useful for JSB