Skip to content

Commit

Permalink
Merge commit '0c576892132a619d2ee2fc7861ddd496a5f47001' into scgamex-v3
Browse files Browse the repository at this point in the history
STEVE: removed all scripting/3d/etc support previously removed

* commit '0c576892132a619d2ee2fc7861ddd496a5f47001':
  Lua: add manual bindings for EventDispatcher::addCustomEventListener (cocos2d#19405)
  [ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically (cocos2d#19431)
  refine travis, don't generate binding codes for cpp only target (cocos2d#19430)
  remove unneeded codes (cocos2d#19421)
  need to generate binding codes for all targets (cocos2d#19424)
  Fix memory leak if invoking Texture2D::setAlphaTexture many times. (cocos2d#19400)
  fix header path include style (cocos2d#19395)
  Font atlas texture initialization delayed (cocos2d#19384)
  If path to file is tool long crash is possible. (cocos2d#19383)
  Checking, does the touch is within the height of the line, not the height of the sprite? (cocos2d#19394)
  [ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically (cocos2d#19390)
  Adds Configuration::getInfoAsMap() (cocos2d#19381)

# Conflicts:
#	build/cocos2d_libs.xcodeproj/project.pbxproj
#	build/cocos2d_tests.xcodeproj/project.pbxproj
#	cocos/2d/CCTextFieldTTF.cpp
#	cocos/editor-support/spine/Animation.c
#	cocos/editor-support/spine/Animation.h
#	cocos/editor-support/spine/AnimationState.c
#	cocos/editor-support/spine/AnimationState.h
#	cocos/editor-support/spine/AnimationStateData.c
#	cocos/editor-support/spine/AnimationStateData.h
#	cocos/editor-support/spine/Array.c
#	cocos/editor-support/spine/Array.h
#	cocos/editor-support/spine/Atlas.c
#	cocos/editor-support/spine/Atlas.h
#	cocos/editor-support/spine/AtlasAttachmentLoader.c
#	cocos/editor-support/spine/AtlasAttachmentLoader.h
#	cocos/editor-support/spine/Attachment.c
#	cocos/editor-support/spine/Attachment.h
#	cocos/editor-support/spine/AttachmentLoader.c
#	cocos/editor-support/spine/AttachmentLoader.h
#	cocos/editor-support/spine/AttachmentVertices.cpp
#	cocos/editor-support/spine/Bone.c
#	cocos/editor-support/spine/Bone.h
#	cocos/editor-support/spine/BoneData.c
#	cocos/editor-support/spine/BoneData.h
#	cocos/editor-support/spine/BoundingBoxAttachment.c
#	cocos/editor-support/spine/BoundingBoxAttachment.h
#	cocos/editor-support/spine/ClippingAttachment.c
#	cocos/editor-support/spine/ClippingAttachment.h
#	cocos/editor-support/spine/Cocos2dAttachmentLoader.cpp
#	cocos/editor-support/spine/Cocos2dAttachmentLoader.h
#	cocos/editor-support/spine/Color.c
#	cocos/editor-support/spine/Color.h
#	cocos/editor-support/spine/Event.c
#	cocos/editor-support/spine/Event.h
#	cocos/editor-support/spine/EventData.c
#	cocos/editor-support/spine/EventData.h
#	cocos/editor-support/spine/IkConstraint.c
#	cocos/editor-support/spine/IkConstraint.h
#	cocos/editor-support/spine/IkConstraintData.c
#	cocos/editor-support/spine/IkConstraintData.h
#	cocos/editor-support/spine/Json.c
#	cocos/editor-support/spine/MeshAttachment.c
#	cocos/editor-support/spine/MeshAttachment.h
#	cocos/editor-support/spine/PathAttachment.c
#	cocos/editor-support/spine/PathAttachment.h
#	cocos/editor-support/spine/PathConstraint.c
#	cocos/editor-support/spine/PathConstraint.h
#	cocos/editor-support/spine/PathConstraintData.c
#	cocos/editor-support/spine/PathConstraintData.h
#	cocos/editor-support/spine/PointAttachment.c
#	cocos/editor-support/spine/PointAttachment.h
#	cocos/editor-support/spine/RegionAttachment.c
#	cocos/editor-support/spine/RegionAttachment.h
#	cocos/editor-support/spine/Skeleton.c
#	cocos/editor-support/spine/Skeleton.h
#	cocos/editor-support/spine/SkeletonAnimation.cpp
#	cocos/editor-support/spine/SkeletonAnimation.h
#	cocos/editor-support/spine/SkeletonBatch.cpp
#	cocos/editor-support/spine/SkeletonBatch.h
#	cocos/editor-support/spine/SkeletonBinary.c
#	cocos/editor-support/spine/SkeletonBinary.h
#	cocos/editor-support/spine/SkeletonBounds.c
#	cocos/editor-support/spine/SkeletonBounds.h
#	cocos/editor-support/spine/SkeletonClipping.c
#	cocos/editor-support/spine/SkeletonClipping.h
#	cocos/editor-support/spine/SkeletonData.c
#	cocos/editor-support/spine/SkeletonData.h
#	cocos/editor-support/spine/SkeletonJson.c
#	cocos/editor-support/spine/SkeletonJson.h
#	cocos/editor-support/spine/SkeletonRenderer.cpp
#	cocos/editor-support/spine/SkeletonRenderer.h
#	cocos/editor-support/spine/SkeletonTwoColorBatch.cpp
#	cocos/editor-support/spine/SkeletonTwoColorBatch.h
#	cocos/editor-support/spine/Skin.c
#	cocos/editor-support/spine/Skin.h
#	cocos/editor-support/spine/Slot.c
#	cocos/editor-support/spine/Slot.h
#	cocos/editor-support/spine/SlotData.c
#	cocos/editor-support/spine/SlotData.h
#	cocos/editor-support/spine/TransformConstraint.c
#	cocos/editor-support/spine/TransformConstraint.h
#	cocos/editor-support/spine/TransformConstraintData.c
#	cocos/editor-support/spine/TransformConstraintData.h
#	cocos/editor-support/spine/Triangulator.c
#	cocos/editor-support/spine/Triangulator.h
#	cocos/editor-support/spine/VertexAttachment.c
#	cocos/editor-support/spine/VertexAttachment.h
#	cocos/editor-support/spine/VertexEffect.c
#	cocos/editor-support/spine/VertexEffect.h
#	cocos/editor-support/spine/extension.c
#	cocos/editor-support/spine/extension.h
#	cocos/editor-support/spine/spine-cocos2dx.cpp
#	cocos/editor-support/spine/spine-cocos2dx.h
#	cocos/editor-support/spine/spine.h
#	cocos/platform/winrt/CCGLViewImpl-winrt.h
#	cocos/scripting/js-bindings/auto/api/jsb_cocos2dx_auto_api.js
#	cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp
#	cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.hpp
#	cocos/scripting/js-bindings/proj.ios_mac/cocos2d_js_bindings.xcodeproj/project.pbxproj
#	cocos/scripting/lua-bindings/auto/api/Application.lua
#	cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp
#	cocos/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_manual.cpp
#	cocos/scripting/lua-bindings/proj.ios_mac/cocos2d_lua_bindings.xcodeproj/project.pbxproj
#	tests/cpp-tests/Classes/Box2DTestBed/Test.h
#	tests/cpp-tests/Classes/MaterialSystemTest/MaterialSystemTest.cpp
#	tests/cpp-tests/Classes/Scene3DTest/Scene3DTest.cpp
#	tests/cpp-tests/Classes/SpineTest/SpineTest.h
#	tests/lua-tests/src/NewEventDispatcherTest/NewEventDispatcherTest.lua
  • Loading branch information
stevetranby committed Feb 27, 2019
2 parents 43dab73 + 0c57689 commit 9761254
Show file tree
Hide file tree
Showing 132 changed files with 106 additions and 21,453 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ matrix:
sudo: required
# android ndk-build
- os: linux
env: BUILD_TARGET=android_ndk-build
env: BUILD_TARGET=android_cpp_ndk-build
language: android
sudo: required
# android_lua ndk-build
Expand All @@ -35,7 +35,7 @@ matrix:
sudo: required
# android cmake
- os: linux
env: BUILD_TARGET=android_cmake
env: BUILD_TARGET=android_cpp_cmake
language: android
sudo: required
# android_lua cmake
Expand All @@ -61,12 +61,12 @@ matrix:
osx_image: xcode9.3
sudo: required
- os: linux
env: BUILD_TARGET=android_cocos_new_test
env: BUILD_TARGET=android_cocos_new_cpp_test
language: android
sudo: required
- os: linux
dist: xenial
env: BUILD_TARGET=linux_cocos_new_test
env: BUILD_TARGET=linux_cocos_new_lua_test
language: cpp
sudo: required

Expand Down
8 changes: 8 additions & 0 deletions build/cocos2d_libs.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -4771,6 +4771,8 @@
1551A34D158F2AB200E66CFE /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ENABLE_OBJC_WEAK = YES;
COMBINE_HIDPI_IMAGES = YES;
EXECUTABLE_EXTENSION = a;
EXECUTABLE_PREFIX = "";
Expand Down Expand Up @@ -4826,6 +4828,8 @@
1551A34E158F2AB200E66CFE /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ENABLE_OBJC_WEAK = YES;
COMBINE_HIDPI_IMAGES = YES;
EXECUTABLE_EXTENSION = a;
EXECUTABLE_PREFIX = "";
Expand Down Expand Up @@ -4878,6 +4882,8 @@
A07A4D621783777C0073F6A7 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ENABLE_OBJC_WEAK = YES;
ENABLE_BITCODE = NO;
EXECUTABLE_PREFIX = "";
GCC_PRECOMPILE_PREFIX_HEADER = YES;
Expand Down Expand Up @@ -4922,6 +4928,8 @@
A07A4D631783777C0073F6A7 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ENABLE_OBJC_WEAK = YES;
ENABLE_BITCODE = NO;
EXECUTABLE_PREFIX = "";
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
Expand Down
1 change: 1 addition & 0 deletions build/cocos2d_tests.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2873,6 +2873,7 @@
1A0EE41118CDF775004CD58F /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-cpp-empty-test";
CODE_SIGN_IDENTITY = "iPhone Developer";
DEVELOPMENT_TEAM = 63UZQ327C5;
Expand Down
7 changes: 4 additions & 3 deletions cocos/2d/CCFontAtlas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ FontAtlas::FontAtlas(Font &theFont)
{
_letterPadding += 2 * FontFreeType::DistanceMapSpread;
}

reinit();

#if CC_ENABLE_CACHE_TEXTURE_DATA
auto eventDispatcher = Director::getInstance()->getEventDispatcher();
Expand Down Expand Up @@ -344,7 +342,10 @@ bool FontAtlas::prepareLetterDefinitions(const std::u32string& utf32Text)
{
return false;
}


if (!_currentPageData)
reinit();

std::unordered_map<unsigned int, unsigned int> codeMapOfNewChar;
findNewCharacters(utf32Text, codeMapOfNewChar);
if (codeMapOfNewChar.empty())
Expand Down
43 changes: 21 additions & 22 deletions cocos/2d/CCFontAtlasCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
NS_CC_BEGIN

std::unordered_map<std::string, FontAtlas *> FontAtlasCache::_atlasMap;
#define ATLAS_MAP_KEY_BUFFER 255
#define ATLAS_MAP_KEY_PREFIX_BUFFER_SIZE 255

void FontAtlasCache::purgeCachedData()
{
Expand All @@ -60,15 +60,11 @@ FontAtlas* FontAtlasCache::getFontAtlasTTF(const _ttfConfig* config)
useDistanceField = false;
}

char tmp[ATLAS_MAP_KEY_BUFFER];
if (useDistanceField) {
snprintf(tmp, ATLAS_MAP_KEY_BUFFER, "df %.2f %d %s", config->fontSize, config->outlineSize,
realFontFilename.c_str());
} else {
snprintf(tmp, ATLAS_MAP_KEY_BUFFER, "%.2f %d %s", config->fontSize, config->outlineSize,
realFontFilename.c_str());
}
std::string atlasName = tmp;
std::string key;
char keyPrefix[ATLAS_MAP_KEY_PREFIX_BUFFER_SIZE];
snprintf(keyPrefix, ATLAS_MAP_KEY_PREFIX_BUFFER_SIZE, useDistanceField ? "df %.2f %d " : "%.2f %d ", config->fontSize, config->outlineSize);
std::string atlasName(keyPrefix);
atlasName += realFontFilename;

auto it = _atlasMap.find(atlasName);

Expand All @@ -95,9 +91,10 @@ FontAtlas* FontAtlasCache::getFontAtlasTTF(const _ttfConfig* config)
FontAtlas* FontAtlasCache::getFontAtlasFNT(const std::string& fontFileName, const Vec2& imageOffset /* = Vec2::ZERO */)
{
auto realFontFilename = FileUtils::getInstance()->getNewFilename(fontFileName); // resolves real file path, to prevent storing multiple atlases for the same file.
char tmp[ATLAS_MAP_KEY_BUFFER];
snprintf(tmp, ATLAS_MAP_KEY_BUFFER, "%.2f %.2f %s", imageOffset.x, imageOffset.y, realFontFilename.c_str());
std::string atlasName = tmp;
char keyPrefix[ATLAS_MAP_KEY_PREFIX_BUFFER_SIZE];
snprintf(keyPrefix, ATLAS_MAP_KEY_PREFIX_BUFFER_SIZE, "%.2f %.2f ", imageOffset.x, imageOffset.y);
std::string atlasName(keyPrefix);
atlasName += realFontFilename;

auto it = _atlasMap.find(atlasName);
if ( it == _atlasMap.end() )
Expand Down Expand Up @@ -147,9 +144,9 @@ FontAtlas* FontAtlasCache::getFontAtlasCharMap(const std::string& plistFile)

FontAtlas* FontAtlasCache::getFontAtlasCharMap(Texture2D* texture, int itemWidth, int itemHeight, int startCharMap)
{
char tmp[30];
sprintf(tmp,"name:%u_%d_%d_%d",texture->getName(),itemWidth,itemHeight,startCharMap);
std::string atlasName = tmp;
char key[ATLAS_MAP_KEY_PREFIX_BUFFER_SIZE];
sprintf(key,"name:%u_%d_%d_%d",texture->getName(),itemWidth,itemHeight,startCharMap);
std::string atlasName = key;

auto it = _atlasMap.find(atlasName);
if ( it == _atlasMap.end() )
Expand All @@ -174,9 +171,10 @@ FontAtlas* FontAtlasCache::getFontAtlasCharMap(Texture2D* texture, int itemWidth

FontAtlas* FontAtlasCache::getFontAtlasCharMap(const std::string& charMapFile, int itemWidth, int itemHeight, int startCharMap)
{
char tmp[ATLAS_MAP_KEY_BUFFER];
snprintf(tmp, ATLAS_MAP_KEY_BUFFER, "%d %d %d %s", itemWidth, itemHeight, startCharMap, charMapFile.c_str());
std::string atlasName = tmp;
char keyPrefix[ATLAS_MAP_KEY_PREFIX_BUFFER_SIZE];
snprintf(keyPrefix, ATLAS_MAP_KEY_PREFIX_BUFFER_SIZE, "%d %d %d ", itemWidth, itemHeight, startCharMap);
std::string atlasName(keyPrefix);
atlasName += charMapFile;

auto it = _atlasMap.find(atlasName);
if ( it == _atlasMap.end() )
Expand Down Expand Up @@ -224,9 +222,10 @@ bool FontAtlasCache::releaseFontAtlas(FontAtlas *atlas)

void FontAtlasCache::reloadFontAtlasFNT(const std::string& fontFileName, const Vec2& imageOffset/* = Vec2::ZERO*/)
{
char tmp[ATLAS_MAP_KEY_BUFFER];
snprintf(tmp, ATLAS_MAP_KEY_BUFFER, "%.2f %.2f %s", imageOffset.x, imageOffset.y, fontFileName.c_str());
std::string atlasName = tmp;
char keyPrefix[ATLAS_MAP_KEY_PREFIX_BUFFER_SIZE];
snprintf(keyPrefix, ATLAS_MAP_KEY_PREFIX_BUFFER_SIZE, "%.2f %.2f ", imageOffset.x, imageOffset.y);
std::string atlasName(keyPrefix);
atlasName += fontFileName;

auto it = _atlasMap.find(atlasName);
if (it != _atlasMap.end())
Expand Down
2 changes: 1 addition & 1 deletion cocos/2d/CCFontFreeType.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include "2d/CCFont.h"

#include <string>
#include <ft2build.h>
#include "ft2build.h"

#if (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
#define generic GenericFromFreeTypeLibrary
Expand Down
9 changes: 9 additions & 0 deletions cocos/base/CCConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,15 @@ class CC_DLL Configuration : public Ref
* @return The Configuration info.
*/
std::string getInfo() const;

/**
Returns the configuration as value map
@return the configuration map
@since 3.18
@js NA
@lua NA
*/
const ValueMap& getInfoAsMap()const { return _valueDict; }

/** Gathers OpenGL / GPU information.
*/
Expand Down
34 changes: 7 additions & 27 deletions cocos/base/CCDirector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ THE SOFTWARE.
#include "base/CCScriptSupport.h"
#endif

#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
#include "platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxEngineDataManager.h"
#endif

/**
Position of the FPS
Expand Down Expand Up @@ -118,7 +114,7 @@ Director::Director()
{
}

bool Director::init(void)
bool Director::init()
{
setDefaultValues();

Expand Down Expand Up @@ -161,13 +157,10 @@ bool Director::init(void)
_renderer = new (std::nothrow) Renderer;
RenderState::initialize();

#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
EngineDataManager::init();
#endif
return true;
}

Director::~Director(void)
Director::~Director()
{
CCLOGINFO("deallocing Director: %p", this);

Expand Down Expand Up @@ -1135,10 +1128,7 @@ void Director::purgeDirector()
_openGLView->end();
_openGLView = nullptr;
}

#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
EngineDataManager::destroy();
#endif

// delete Director
release();
}
Expand Down Expand Up @@ -1220,7 +1210,7 @@ void Director::pause()
_oldAnimationInterval = _animationInterval;

// when paused, don't consume CPU
setAnimationInterval(1 / 4.0, SetIntervalReason::BY_DIRECTOR_PAUSE);
setAnimationInterval(1 / 4.0);
_paused = true;
}

Expand All @@ -1231,7 +1221,7 @@ void Director::resume()
return;
}

setAnimationInterval(_oldAnimationInterval, SetIntervalReason::BY_ENGINE);
setAnimationInterval(_oldAnimationInterval);

_paused = false;
_deltaTime = 0;
Expand Down Expand Up @@ -1456,19 +1446,14 @@ void Director::setEventDispatcher(EventDispatcher* dispatcher)
}

void Director::startAnimation()
{
startAnimation(SetIntervalReason::BY_ENGINE);
}

void Director::startAnimation(SetIntervalReason reason)
{
_lastUpdate = std::chrono::steady_clock::now();

_invalid = false;

_cocos2d_thread_id = std::this_thread::get_id();

Application::getInstance()->setAnimationInterval(_animationInterval, reason);
Application::getInstance()->setAnimationInterval(_animationInterval);

// fix issue #3509, skip one fps to avoid incorrect time calculation.
setNextDeltaTimeZero(true);
Expand Down Expand Up @@ -1508,17 +1493,12 @@ void Director::stopAnimation()
}

void Director::setAnimationInterval(float interval)
{
setAnimationInterval(interval, SetIntervalReason::BY_GAME);
}

void Director::setAnimationInterval(float interval, SetIntervalReason reason)
{
_animationInterval = interval;
if (! _invalid)
{
stopAnimation();
startAnimation(reason);
startAnimation();
}
}

Expand Down
4 changes: 0 additions & 4 deletions cocos/base/CCDirector.h
Original file line number Diff line number Diff line change
Expand Up @@ -585,10 +585,6 @@ class CC_DLL Director : public Ref

protected:
void reset();


virtual void startAnimation(SetIntervalReason reason);
virtual void setAnimationInterval(float interval, SetIntervalReason reason);

void purgeDirector();
bool _purgeDirectorInNextLoop = false; // this flag will be set to true in end()
Expand Down
9 changes: 0 additions & 9 deletions cocos/base/ccTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -634,15 +634,6 @@ class CC_DLL Acceleration
extern const std::string CC_DLL STD_STRING_EMPTY;
extern const ssize_t CC_DLL CC_INVALID_INDEX;

enum class SetIntervalReason : char
{
BY_GAME = 0,
BY_ENGINE,
BY_SYSTEM,
BY_SCENE_CHANGE,
BY_DIRECTOR_PAUSE
};

NS_CC_END
// end group
/// @}
Expand Down
21 changes: 0 additions & 21 deletions cocos/cocos2d.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,6 @@ THE SOFTWARE.
//Enhance modification end
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID

#if (CC_TARGET_PLATFORM == CC_PLATFORM_BLACKBERRY)
#include "platform/blackberry/CCApplication.h"
#include "platform/blackberry/CCGLViewImpl.h"
#include "platform/blackberry/CCGL.h"
#include "platform/blackberry/CCStdC.h"
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_BLACKBERRY

#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
#include "platform/win32/CCApplication-win32.h"
#include "platform/desktop/CCGLViewImpl-desktop.h"
Expand All @@ -233,20 +226,6 @@ THE SOFTWARE.
#include "platform/linux/CCStdC-linux.h"
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_LINUX

#if (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
#include "platform/winrt/CCApplication.h"
#include "platform/winrt/CCGLViewImpl-winrt.h"
#include "platform/winrt/CCGL.h"
#include "platform/winrt/CCStdC.h"
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_WINRT

#if (CC_TARGET_PLATFORM == CC_PLATFORM_TIZEN)
#include "platform/tizen/CCApplication-tizen.h"
#include "platform/tizen/CCGLViewImpl-tizen.h"
#include "platform/tizen/CCGL-tizen.h"
#include "platform/tizen/CCStdC-tizen.h"
#endif

// script_support
#include "base/CCScriptSupport.h"

Expand Down
2 changes: 0 additions & 2 deletions cocos/platform/CCApplication.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ THE SOFTWARE.
#include "platform/winrt/CCApplication.h"
#elif CC_TARGET_PLATFORM == CC_PLATFORM_LINUX
#include "platform/linux/CCApplication-linux.h"
#elif CC_TARGET_PLATFORM == CC_PLATFORM_TIZEN
#include "platform/tizen/CCApplication-tizen.h"
#endif

/// @endcond
Expand Down
1 change: 0 additions & 1 deletion cocos/platform/CCApplicationProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ class CC_DLL ApplicationProtocol
* @lua NA
*/
virtual void setAnimationInterval(float interval) = 0;
virtual void setAnimationInterval(float interval, SetIntervalReason reason) = 0;

/** Subclass override the function to set OpenGL context attribution instead of use default value.
* And now can only set six attributions:redBits,greenBits,blueBits,alphaBits,depthBits,stencilBits.
Expand Down
Loading

0 comments on commit 9761254

Please sign in to comment.