2014-05-20 19:46:42 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module GLProgramCache
|
|
|
|
-- @extend Ref
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module cc
|
2014-05-20 19:46:42 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-07-30 13:53:20 +08:00
|
|
|
-- reload default programs these are relative to light
|
|
|
|
-- @function [parent=#GLProgramCache] reloadDefaultGLProgramsRelativeToLights
|
2014-05-20 19:46:42 +08:00
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return GLProgramCache#GLProgramCache self (return value: cc.GLProgramCache)
|
2014-05-20 19:46:42 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-07-30 13:53:20 +08:00
|
|
|
-- adds a GLProgram to the cache for a given name
|
|
|
|
-- @function [parent=#GLProgramCache] addGLProgram
|
2014-05-20 19:46:42 +08:00
|
|
|
-- @param self
|
2015-07-30 13:53:20 +08:00
|
|
|
-- @param #cc.GLProgram program
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #string key
|
2015-07-30 13:53:20 +08:00
|
|
|
-- @return GLProgramCache#GLProgramCache self (return value: cc.GLProgramCache)
|
2014-05-20 19:46:42 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- reload the default shaders
|
2014-05-20 19:46:42 +08:00
|
|
|
-- @function [parent=#GLProgramCache] reloadDefaultGLPrograms
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return GLProgramCache#GLProgramCache self (return value: cc.GLProgramCache)
|
2014-05-20 19:46:42 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- loads the default shaders
|
2014-05-20 19:46:42 +08:00
|
|
|
-- @function [parent=#GLProgramCache] loadDefaultGLPrograms
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return GLProgramCache#GLProgramCache self (return value: cc.GLProgramCache)
|
2014-05-20 19:46:42 +08:00
|
|
|
|
2015-07-30 13:53:20 +08:00
|
|
|
--------------------------------
|
|
|
|
-- returns a GL program for a given key
|
|
|
|
-- @function [parent=#GLProgramCache] getGLProgram
|
|
|
|
-- @param self
|
|
|
|
-- @param #string key
|
|
|
|
-- @return GLProgram#GLProgram ret (return value: cc.GLProgram)
|
|
|
|
|
2014-05-20 19:46:42 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- purges the cache. It releases the retained instance.
|
2014-05-20 19:46:42 +08:00
|
|
|
-- @function [parent=#GLProgramCache] destroyInstance
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return GLProgramCache#GLProgramCache self (return value: cc.GLProgramCache)
|
2014-05-20 19:46:42 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- returns the shared instance
|
2014-05-20 19:46:42 +08:00
|
|
|
-- @function [parent=#GLProgramCache] getInstance
|
|
|
|
-- @param self
|
|
|
|
-- @return GLProgramCache#GLProgramCache ret (return value: cc.GLProgramCache)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-20 12:53:00 +08:00
|
|
|
-- Constructor.<br>
|
2014-09-02 13:45:07 +08:00
|
|
|
-- js ctor
|
2014-05-20 19:46:42 +08:00
|
|
|
-- @function [parent=#GLProgramCache] GLProgramCache
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return GLProgramCache#GLProgramCache self (return value: cc.GLProgramCache)
|
2014-05-20 19:46:42 +08:00
|
|
|
|
|
|
|
return nil
|