/** There are 4 types of Director.
        - kCCDirectorTypeNSTimer (default)
        - kCCDirectorTypeMainLoop
        - kCCDirectorTypeThreadMainLoop
        - kCCDirectorTypeDisplayLink

        Each Director has it's own benefits, limitations.
        Now we only support DisplayLink director, so it has not effect. 
       */

        ///<summary>
        /// This method should be called before any other call to the director.
        ///@since v0.8.2
        /// </summary>
        public static bool setDirectorType(ccDirectorType obDirectorType)
        {
            // we only support CCDisplayLinkDirector
            CCDirector.sharedDirector();

            return true;
        }
Beispiel #2
0
        /** There are 4 types of Director.
         * - kCCDirectorTypeNSTimer (default)
         * - kCCDirectorTypeMainLoop
         * - kCCDirectorTypeThreadMainLoop
         * - kCCDirectorTypeDisplayLink
         *
         * Each Director has it's own benefits, limitations.
         * Now we only support DisplayLink director, so it has not effect.
         */

        ///<summary>
        /// This method should be called before any other call to the director.
        ///@since v0.8.2
        /// </summary>
        public static bool setDirectorType(ccDirectorType obDirectorType)
        {
            // we only support CCDisplayLinkDirector
            CCDirector.sharedDirector();

            return(true);
        }
Beispiel #3
0
 public static bool setDirectorType(ccDirectorType obDirectorType)
 {
     CCDirector.sharedDirector();
     return(true);
 }