mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2025-10-09 23:25:23 +00:00
初始化
This commit is contained in:
@@ -0,0 +1,343 @@
|
||||
/**
|
||||
* @module audioengine
|
||||
*/
|
||||
var jsb = jsb || {};
|
||||
|
||||
/**
|
||||
* @class AudioProfile
|
||||
*/
|
||||
jsb.AudioProfile = {
|
||||
|
||||
/**
|
||||
* @method AudioProfile
|
||||
* @constructor
|
||||
*/
|
||||
AudioProfile : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* @class AudioEngine
|
||||
*/
|
||||
jsb.AudioEngine = {
|
||||
|
||||
/**
|
||||
* @method lazyInit
|
||||
* @return {bool}
|
||||
*/
|
||||
lazyInit : function (
|
||||
)
|
||||
{
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setCurrentTime
|
||||
* @param {int} arg0
|
||||
* @param {float} arg1
|
||||
* @return {bool}
|
||||
*/
|
||||
setCurrentTime : function (
|
||||
int,
|
||||
float
|
||||
)
|
||||
{
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getVolume
|
||||
* @param {int} arg0
|
||||
* @return {float}
|
||||
*/
|
||||
getVolume : function (
|
||||
int
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method uncache
|
||||
* @param {String} arg0
|
||||
*/
|
||||
uncache : function (
|
||||
str
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method resumeAll
|
||||
*/
|
||||
resumeAll : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method stopAll
|
||||
*/
|
||||
stopAll : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method pause
|
||||
* @param {int} arg0
|
||||
*/
|
||||
pause : function (
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method end
|
||||
*/
|
||||
end : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getMaxAudioInstance
|
||||
* @return {int}
|
||||
*/
|
||||
getMaxAudioInstance : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method isEnabled
|
||||
* @return {bool}
|
||||
*/
|
||||
isEnabled : function (
|
||||
)
|
||||
{
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getDurationFromFile
|
||||
* @param {String} arg0
|
||||
* @return {float}
|
||||
*/
|
||||
getDurationFromFile : function (
|
||||
str
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getCurrentTime
|
||||
* @param {int} arg0
|
||||
* @return {float}
|
||||
*/
|
||||
getCurrentTime : function (
|
||||
int
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setMaxAudioInstance
|
||||
* @param {int} arg0
|
||||
* @return {bool}
|
||||
*/
|
||||
setMaxAudioInstance : function (
|
||||
int
|
||||
)
|
||||
{
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method isLoop
|
||||
* @param {int} arg0
|
||||
* @return {bool}
|
||||
*/
|
||||
isLoop : function (
|
||||
int
|
||||
)
|
||||
{
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method pauseAll
|
||||
*/
|
||||
pauseAll : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method uncacheAll
|
||||
*/
|
||||
uncacheAll : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setVolume
|
||||
* @param {int} arg0
|
||||
* @param {float} arg1
|
||||
*/
|
||||
setVolume : function (
|
||||
int,
|
||||
float
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method preload
|
||||
* @param {String|String} str
|
||||
* @param {function} func
|
||||
*/
|
||||
preload : function(
|
||||
str,
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setEnabled
|
||||
* @param {bool} arg0
|
||||
*/
|
||||
setEnabled : function (
|
||||
bool
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method play2d
|
||||
* @param {String} arg0
|
||||
* @param {bool} arg1
|
||||
* @param {float} arg2
|
||||
* @param {cc.AudioProfile} arg3
|
||||
* @return {int}
|
||||
*/
|
||||
play2d : function (
|
||||
str,
|
||||
bool,
|
||||
float,
|
||||
audioprofile
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getState
|
||||
* @param {int} arg0
|
||||
* @return {cc.AudioEngine::AudioState}
|
||||
*/
|
||||
getState : function (
|
||||
int
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method resume
|
||||
* @param {int} arg0
|
||||
*/
|
||||
resume : function (
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method stop
|
||||
* @param {int} arg0
|
||||
*/
|
||||
stop : function (
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getDuration
|
||||
* @param {int} arg0
|
||||
* @return {float}
|
||||
*/
|
||||
getDuration : function (
|
||||
int
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setLoop
|
||||
* @param {int} arg0
|
||||
* @param {bool} arg1
|
||||
*/
|
||||
setLoop : function (
|
||||
int,
|
||||
bool
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getDefaultProfile
|
||||
* @return {cc.AudioProfile}
|
||||
*/
|
||||
getDefaultProfile : function (
|
||||
)
|
||||
{
|
||||
return cc.AudioProfile;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setFinishCallback
|
||||
* @param {int} arg0
|
||||
* @param {function} arg1
|
||||
*/
|
||||
setFinishCallback : function (
|
||||
int,
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getProfile
|
||||
* @param {String|int} str
|
||||
* @return {cc.AudioProfile|cc.AudioProfile}
|
||||
*/
|
||||
getProfile : function(
|
||||
int
|
||||
)
|
||||
{
|
||||
return cc.AudioProfile;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getPlayingAudioCount
|
||||
* @return {int}
|
||||
*/
|
||||
getPlayingAudioCount : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
};
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,184 @@
|
||||
/**
|
||||
* @module cocos2dx_editor_support
|
||||
*/
|
||||
var middleware = middleware || {};
|
||||
|
||||
/**
|
||||
* @class Texture2D
|
||||
*/
|
||||
middleware.Texture2D = {
|
||||
|
||||
/**
|
||||
* @method getRealTextureIndex
|
||||
* @return {int}
|
||||
*/
|
||||
getRealTextureIndex : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setTexParamCallback
|
||||
* @param {function} arg0
|
||||
*/
|
||||
setTexParamCallback : function (
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setPixelsHigh
|
||||
* @param {int} arg0
|
||||
*/
|
||||
setPixelsHigh : function (
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getNativeTexture
|
||||
* @return {cc.renderer::Texture}
|
||||
*/
|
||||
getNativeTexture : function (
|
||||
)
|
||||
{
|
||||
return cc.renderer::Texture;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setPixelsWide
|
||||
* @param {int} arg0
|
||||
*/
|
||||
setPixelsWide : function (
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getPixelsHigh
|
||||
* @return {int}
|
||||
*/
|
||||
getPixelsHigh : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getPixelsWide
|
||||
* @return {int}
|
||||
*/
|
||||
getPixelsWide : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setRealTextureIndex
|
||||
* @param {int} arg0
|
||||
*/
|
||||
setRealTextureIndex : function (
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setNativeTexture
|
||||
* @param {cc.renderer::Texture} arg0
|
||||
*/
|
||||
setNativeTexture : function (
|
||||
texture
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setTexParameters
|
||||
* @param {cc.middleware::Texture2D::_TexParams} arg0
|
||||
*/
|
||||
setTexParameters : function (
|
||||
_texparams
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method Texture2D
|
||||
* @constructor
|
||||
*/
|
||||
Texture2D : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* @class MiddlewareManager
|
||||
*/
|
||||
middleware.MiddlewareManager = {
|
||||
|
||||
/**
|
||||
* @method render
|
||||
* @param {float} arg0
|
||||
*/
|
||||
render : function (
|
||||
float
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method update
|
||||
* @param {float} arg0
|
||||
*/
|
||||
update : function (
|
||||
float
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method destroyInstance
|
||||
*/
|
||||
destroyInstance : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method generateModuleID
|
||||
* @return {unsigned char}
|
||||
*/
|
||||
generateModuleID : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getInstance
|
||||
* @return {cc.middleware::MiddlewareManager}
|
||||
*/
|
||||
getInstance : function (
|
||||
)
|
||||
{
|
||||
return cc.middleware::MiddlewareManager;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method MiddlewareManager
|
||||
* @constructor
|
||||
*/
|
||||
MiddlewareManager : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
};
|
@@ -0,0 +1,548 @@
|
||||
/**
|
||||
* @module extension
|
||||
*/
|
||||
var jsb = jsb || {};
|
||||
|
||||
/**
|
||||
* @class EventAssetsManagerEx
|
||||
*/
|
||||
jsb.EventAssetsManager = {
|
||||
|
||||
/**
|
||||
* @method getAssetsManagerEx
|
||||
* @return {cc.AssetsManagerEx}
|
||||
*/
|
||||
getAssetsManagerEx : function (
|
||||
)
|
||||
{
|
||||
return cc.AssetsManagerEx;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getDownloadedFiles
|
||||
* @return {int}
|
||||
*/
|
||||
getDownloadedFiles : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getTotalFiles
|
||||
* @return {int}
|
||||
*/
|
||||
getTotalFiles : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getAssetId
|
||||
* @return {String}
|
||||
*/
|
||||
getAssetId : function (
|
||||
)
|
||||
{
|
||||
return ;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getTotalBytes
|
||||
* @return {double}
|
||||
*/
|
||||
getTotalBytes : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getCURLECode
|
||||
* @return {int}
|
||||
*/
|
||||
getCURLECode : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getMessage
|
||||
* @return {String}
|
||||
*/
|
||||
getMessage : function (
|
||||
)
|
||||
{
|
||||
return ;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getCURLMCode
|
||||
* @return {int}
|
||||
*/
|
||||
getCURLMCode : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getDownloadedBytes
|
||||
* @return {double}
|
||||
*/
|
||||
getDownloadedBytes : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getPercentByFile
|
||||
* @return {float}
|
||||
*/
|
||||
getPercentByFile : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getEventCode
|
||||
* @return {cc.EventAssetsManagerEx::EventCode}
|
||||
*/
|
||||
getEventCode : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getPercent
|
||||
* @return {float}
|
||||
*/
|
||||
getPercent : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method isResuming
|
||||
* @return {bool}
|
||||
*/
|
||||
isResuming : function (
|
||||
)
|
||||
{
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method EventAssetsManagerEx
|
||||
* @constructor
|
||||
* @param {String} arg0
|
||||
* @param {cc.AssetsManagerEx} arg1
|
||||
* @param {cc.EventAssetsManagerEx::EventCode} arg2
|
||||
* @param {String} arg3
|
||||
* @param {String} arg4
|
||||
* @param {int} arg5
|
||||
* @param {int} arg6
|
||||
*/
|
||||
EventAssetsManagerEx : function (
|
||||
str,
|
||||
assetsmanagerex,
|
||||
eventcode,
|
||||
str,
|
||||
str,
|
||||
int,
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* @class Manifest
|
||||
*/
|
||||
jsb.Manifest = {
|
||||
|
||||
/**
|
||||
* @method getManifestRoot
|
||||
* @return {String}
|
||||
*/
|
||||
getManifestRoot : function (
|
||||
)
|
||||
{
|
||||
return ;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setUpdating
|
||||
* @param {bool} arg0
|
||||
*/
|
||||
setUpdating : function (
|
||||
bool
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getManifestFileUrl
|
||||
* @return {String}
|
||||
*/
|
||||
getManifestFileUrl : function (
|
||||
)
|
||||
{
|
||||
return ;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method isVersionLoaded
|
||||
* @return {bool}
|
||||
*/
|
||||
isVersionLoaded : function (
|
||||
)
|
||||
{
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method parseFile
|
||||
* @param {String} arg0
|
||||
*/
|
||||
parseFile : function (
|
||||
str
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method isLoaded
|
||||
* @return {bool}
|
||||
*/
|
||||
isLoaded : function (
|
||||
)
|
||||
{
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getPackageUrl
|
||||
* @return {String}
|
||||
*/
|
||||
getPackageUrl : function (
|
||||
)
|
||||
{
|
||||
return ;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method isUpdating
|
||||
* @return {bool}
|
||||
*/
|
||||
isUpdating : function (
|
||||
)
|
||||
{
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getVersion
|
||||
* @return {String}
|
||||
*/
|
||||
getVersion : function (
|
||||
)
|
||||
{
|
||||
return ;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method parseJSONString
|
||||
* @param {String} arg0
|
||||
* @param {String} arg1
|
||||
*/
|
||||
parseJSONString : function (
|
||||
str,
|
||||
str
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getVersionFileUrl
|
||||
* @return {String}
|
||||
*/
|
||||
getVersionFileUrl : function (
|
||||
)
|
||||
{
|
||||
return ;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getSearchPaths
|
||||
* @return {Array}
|
||||
*/
|
||||
getSearchPaths : function (
|
||||
)
|
||||
{
|
||||
return new Array();
|
||||
},
|
||||
|
||||
/**
|
||||
* @method Manifest
|
||||
* @constructor
|
||||
* @param {String|String} str
|
||||
* @param {String} str
|
||||
*/
|
||||
Manifest : function(
|
||||
str,
|
||||
str
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* @class AssetsManagerEx
|
||||
*/
|
||||
jsb.AssetsManager = {
|
||||
|
||||
/**
|
||||
* @method getDownloadedFiles
|
||||
* @return {int}
|
||||
*/
|
||||
getDownloadedFiles : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setEventCallback
|
||||
* @param {function} arg0
|
||||
*/
|
||||
setEventCallback : function (
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method downloadFailedAssets
|
||||
*/
|
||||
downloadFailedAssets : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getTotalFiles
|
||||
* @return {int}
|
||||
*/
|
||||
getTotalFiles : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method checkUpdate
|
||||
*/
|
||||
checkUpdate : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method loadLocalManifest
|
||||
* @param {String|cc.Manifest} str
|
||||
* @param {String} str
|
||||
* @return {bool|bool}
|
||||
*/
|
||||
loadLocalManifest : function(
|
||||
manifest,
|
||||
str
|
||||
)
|
||||
{
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setMaxConcurrentTask
|
||||
* @param {int} arg0
|
||||
*/
|
||||
setMaxConcurrentTask : function (
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getLocalManifest
|
||||
* @return {cc.Manifest}
|
||||
*/
|
||||
getLocalManifest : function (
|
||||
)
|
||||
{
|
||||
return cc.Manifest;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getRemoteManifest
|
||||
* @return {cc.Manifest}
|
||||
*/
|
||||
getRemoteManifest : function (
|
||||
)
|
||||
{
|
||||
return cc.Manifest;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method cancelUpdate
|
||||
*/
|
||||
cancelUpdate : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method isResuming
|
||||
* @return {bool}
|
||||
*/
|
||||
isResuming : function (
|
||||
)
|
||||
{
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getState
|
||||
* @return {cc.AssetsManagerEx::State}
|
||||
*/
|
||||
getState : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getMaxConcurrentTask
|
||||
* @return {int}
|
||||
*/
|
||||
getMaxConcurrentTask : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setVersionCompareHandle
|
||||
* @param {function} arg0
|
||||
*/
|
||||
setVersionCompareHandle : function (
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getTotalBytes
|
||||
* @return {double}
|
||||
*/
|
||||
getTotalBytes : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setVerifyCallback
|
||||
* @param {function} arg0
|
||||
*/
|
||||
setVerifyCallback : function (
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getStoragePath
|
||||
* @return {String}
|
||||
*/
|
||||
getStoragePath : function (
|
||||
)
|
||||
{
|
||||
return ;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method update
|
||||
*/
|
||||
update : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getDownloadedBytes
|
||||
* @return {double}
|
||||
*/
|
||||
getDownloadedBytes : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method prepareUpdate
|
||||
*/
|
||||
prepareUpdate : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method loadRemoteManifest
|
||||
* @param {cc.Manifest} arg0
|
||||
* @return {bool}
|
||||
*/
|
||||
loadRemoteManifest : function (
|
||||
manifest
|
||||
)
|
||||
{
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method create
|
||||
* @param {String} arg0
|
||||
* @param {String} arg1
|
||||
* @return {cc.AssetsManagerEx}
|
||||
*/
|
||||
create : function (
|
||||
str,
|
||||
str
|
||||
)
|
||||
{
|
||||
return cc.AssetsManagerEx;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method AssetsManagerEx
|
||||
* @constructor
|
||||
* @param {String|String} str
|
||||
* @param {String|String} str
|
||||
* @param {function} func
|
||||
*/
|
||||
AssetsManagerEx : function(
|
||||
str,
|
||||
str,
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
};
|
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* @module network
|
||||
*/
|
||||
var jsb = jsb || {};
|
||||
|
||||
/**
|
||||
* @class Downloader
|
||||
*/
|
||||
jsb.Downloader = {
|
||||
|
||||
/**
|
||||
* @method setOnTaskProgress
|
||||
* @param {function} arg0
|
||||
*/
|
||||
setOnTaskProgress : function (
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method Downloader
|
||||
* @constructor
|
||||
* @param {cc.network::DownloaderHints} downloaderhints
|
||||
*/
|
||||
Downloader : function(
|
||||
downloaderhints
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
};
|
@@ -0,0 +1,258 @@
|
||||
/**
|
||||
* @module cocos2dx_particle
|
||||
*/
|
||||
var middleware = middleware || {};
|
||||
|
||||
/**
|
||||
* @class ParticleSimulator
|
||||
*/
|
||||
middleware.ParticleSimulator = {
|
||||
|
||||
/**
|
||||
* @method setGravity
|
||||
* @param {float} arg0
|
||||
* @param {float} arg1
|
||||
* @param {float} arg2
|
||||
*/
|
||||
setGravity : function (
|
||||
float,
|
||||
float,
|
||||
float
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method render
|
||||
* @param {float} arg0
|
||||
*/
|
||||
render : function (
|
||||
float
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setSourcePos
|
||||
* @param {float} arg0
|
||||
* @param {float} arg1
|
||||
* @param {float} arg2
|
||||
*/
|
||||
setSourcePos : function (
|
||||
float,
|
||||
float,
|
||||
float
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method onEnable
|
||||
*/
|
||||
onEnable : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setEffect
|
||||
* @param {cc.renderer::EffectVariant} arg0
|
||||
*/
|
||||
setEffect : function (
|
||||
effectvariant
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setPosVar
|
||||
* @param {float} arg0
|
||||
* @param {float} arg1
|
||||
* @param {float} arg2
|
||||
*/
|
||||
setPosVar : function (
|
||||
float,
|
||||
float,
|
||||
float
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setEndColorVar
|
||||
* @param {unsigned char} arg0
|
||||
* @param {unsigned char} arg1
|
||||
* @param {unsigned char} arg2
|
||||
* @param {unsigned char} arg3
|
||||
*/
|
||||
setEndColorVar : function (
|
||||
char,
|
||||
char,
|
||||
char,
|
||||
char
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getParticleCount
|
||||
* @return {unsigned int}
|
||||
*/
|
||||
getParticleCount : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setStartColorVar
|
||||
* @param {unsigned char} arg0
|
||||
* @param {unsigned char} arg1
|
||||
* @param {unsigned char} arg2
|
||||
* @param {unsigned char} arg3
|
||||
*/
|
||||
setStartColorVar : function (
|
||||
char,
|
||||
char,
|
||||
char,
|
||||
char
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method emitParticle
|
||||
* @param {vec3_object} arg0
|
||||
*/
|
||||
emitParticle : function (
|
||||
vec3
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method stop
|
||||
*/
|
||||
stop : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method update
|
||||
* @param {float} arg0
|
||||
*/
|
||||
update : function (
|
||||
float
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method active
|
||||
* @return {bool}
|
||||
*/
|
||||
active : function (
|
||||
)
|
||||
{
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method updateUVs
|
||||
* @param {Array} arg0
|
||||
*/
|
||||
updateUVs : function (
|
||||
array
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setStartColor
|
||||
* @param {unsigned char} arg0
|
||||
* @param {unsigned char} arg1
|
||||
* @param {unsigned char} arg2
|
||||
* @param {unsigned char} arg3
|
||||
*/
|
||||
setStartColor : function (
|
||||
char,
|
||||
char,
|
||||
char,
|
||||
char
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method reset
|
||||
*/
|
||||
reset : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method onDisable
|
||||
*/
|
||||
onDisable : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method bindNodeProxy
|
||||
* @param {cc.renderer::NodeProxy} arg0
|
||||
*/
|
||||
bindNodeProxy : function (
|
||||
nodeproxy
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setEndColor
|
||||
* @param {unsigned char} arg0
|
||||
* @param {unsigned char} arg1
|
||||
* @param {unsigned char} arg2
|
||||
* @param {unsigned char} arg3
|
||||
*/
|
||||
setEndColor : function (
|
||||
char,
|
||||
char,
|
||||
char,
|
||||
char
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setFinishedCallback
|
||||
* @param {function} arg0
|
||||
*/
|
||||
setFinishedCallback : function (
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setStopCallback
|
||||
* @param {function} arg0
|
||||
*/
|
||||
setStopCallback : function (
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method ParticleSimulator
|
||||
* @constructor
|
||||
*/
|
||||
ParticleSimulator : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
};
|
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,841 @@
|
||||
/**
|
||||
* @module gfx
|
||||
*/
|
||||
var gfx = gfx || {};
|
||||
|
||||
/**
|
||||
* @class GraphicsHandle
|
||||
*/
|
||||
gfx.GraphicsHandle = {
|
||||
|
||||
/**
|
||||
* @method getHandle
|
||||
* @return {unsigned int}
|
||||
*/
|
||||
getHandle : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method GraphicsHandle
|
||||
* @constructor
|
||||
*/
|
||||
GraphicsHandle : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* @class IndexBuffer
|
||||
*/
|
||||
gfx.IndexBuffer = {
|
||||
|
||||
/**
|
||||
* @method getUsage
|
||||
* @return {cc.renderer::Usage}
|
||||
*/
|
||||
getUsage : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setFormat
|
||||
* @param {cc.renderer::IndexFormat} arg0
|
||||
*/
|
||||
setFormat : function (
|
||||
indexformat
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setCount
|
||||
* @param {unsigned int} arg0
|
||||
*/
|
||||
setCount : function (
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method destroy
|
||||
*/
|
||||
destroy : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setUsage
|
||||
* @param {cc.renderer::Usage} arg0
|
||||
*/
|
||||
setUsage : function (
|
||||
usage
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getCount
|
||||
* @return {unsigned int}
|
||||
*/
|
||||
getCount : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setBytesPerIndex
|
||||
* @param {unsigned int} arg0
|
||||
*/
|
||||
setBytesPerIndex : function (
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getBytes
|
||||
* @return {unsigned int}
|
||||
*/
|
||||
getBytes : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method IndexBuffer
|
||||
* @constructor
|
||||
*/
|
||||
IndexBuffer : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* @class VertexBuffer
|
||||
*/
|
||||
gfx.VertexBuffer = {
|
||||
|
||||
/**
|
||||
* @method getUsage
|
||||
* @return {cc.renderer::Usage}
|
||||
*/
|
||||
getUsage : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setCount
|
||||
* @param {unsigned int} arg0
|
||||
*/
|
||||
setCount : function (
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method destroy
|
||||
*/
|
||||
destroy : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setUsage
|
||||
* @param {cc.renderer::Usage} arg0
|
||||
*/
|
||||
setUsage : function (
|
||||
usage
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getCount
|
||||
* @return {unsigned int}
|
||||
*/
|
||||
getCount : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getBytes
|
||||
* @return {unsigned int}
|
||||
*/
|
||||
getBytes : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method VertexBuffer
|
||||
* @constructor
|
||||
*/
|
||||
VertexBuffer : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* @class DeviceGraphics
|
||||
*/
|
||||
gfx.Device = {
|
||||
|
||||
/**
|
||||
* @method setBlendFuncSeparate
|
||||
* @param {cc.renderer::BlendFactor} arg0
|
||||
* @param {cc.renderer::BlendFactor} arg1
|
||||
* @param {cc.renderer::BlendFactor} arg2
|
||||
* @param {cc.renderer::BlendFactor} arg3
|
||||
*/
|
||||
setBlendFuncSeparate : function (
|
||||
blendfactor,
|
||||
blendfactor,
|
||||
blendfactor,
|
||||
blendfactor
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method enableBlend
|
||||
*/
|
||||
enableBlend : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setPrimitiveType
|
||||
* @param {cc.renderer::PrimitiveType} arg0
|
||||
*/
|
||||
setPrimitiveType : function (
|
||||
primitivetype
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setBlendEquationSeparate
|
||||
* @param {cc.renderer::BlendOp} arg0
|
||||
* @param {cc.renderer::BlendOp} arg1
|
||||
*/
|
||||
setBlendEquationSeparate : function (
|
||||
blendop,
|
||||
blendop
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setIndexBuffer
|
||||
* @param {cc.renderer::IndexBuffer} arg0
|
||||
*/
|
||||
setIndexBuffer : function (
|
||||
indexbuffer
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setProgram
|
||||
* @param {cc.renderer::Program} arg0
|
||||
*/
|
||||
setProgram : function (
|
||||
program
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setFrameBuffer
|
||||
* @param {cc.renderer::FrameBuffer} arg0
|
||||
*/
|
||||
setFrameBuffer : function (
|
||||
framebuffer
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setStencilFunc
|
||||
* @param {cc.renderer::ComparisonFunc} arg0
|
||||
* @param {int} arg1
|
||||
* @param {unsigned int} arg2
|
||||
*/
|
||||
setStencilFunc : function (
|
||||
comparisonfunc,
|
||||
int,
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setBlendColor
|
||||
* @param {unsigned char|unsigned int} char
|
||||
* @param {unsigned char} char
|
||||
* @param {unsigned char} char
|
||||
* @param {unsigned char} char
|
||||
*/
|
||||
setBlendColor : function(
|
||||
char,
|
||||
char,
|
||||
char,
|
||||
char
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setScissor
|
||||
* @param {int} arg0
|
||||
* @param {int} arg1
|
||||
* @param {int} arg2
|
||||
* @param {int} arg3
|
||||
*/
|
||||
setScissor : function (
|
||||
int,
|
||||
int,
|
||||
int,
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setVertexBuffer
|
||||
* @param {int} arg0
|
||||
* @param {cc.renderer::VertexBuffer} arg1
|
||||
* @param {int} arg2
|
||||
*/
|
||||
setVertexBuffer : function (
|
||||
int,
|
||||
vertexbuffer,
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method enableDepthWrite
|
||||
*/
|
||||
enableDepthWrite : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getCapacity
|
||||
* @return {cc.renderer::DeviceGraphics::Capacity}
|
||||
*/
|
||||
getCapacity : function (
|
||||
)
|
||||
{
|
||||
return cc.renderer::DeviceGraphics::Capacity;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setStencilOpBack
|
||||
* @param {cc.renderer::StencilOp} arg0
|
||||
* @param {cc.renderer::StencilOp} arg1
|
||||
* @param {cc.renderer::StencilOp} arg2
|
||||
* @param {unsigned int} arg3
|
||||
*/
|
||||
setStencilOpBack : function (
|
||||
stencilop,
|
||||
stencilop,
|
||||
stencilop,
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setViewport
|
||||
* @param {int} arg0
|
||||
* @param {int} arg1
|
||||
* @param {int} arg2
|
||||
* @param {int} arg3
|
||||
*/
|
||||
setViewport : function (
|
||||
int,
|
||||
int,
|
||||
int,
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method draw
|
||||
* @param {unsigned int} arg0
|
||||
* @param {int} arg1
|
||||
*/
|
||||
draw : function (
|
||||
int,
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setDepthFunc
|
||||
* @param {cc.renderer::ComparisonFunc} arg0
|
||||
*/
|
||||
setDepthFunc : function (
|
||||
comparisonfunc
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method enableDepthTest
|
||||
*/
|
||||
enableDepthTest : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method resetDrawCalls
|
||||
*/
|
||||
resetDrawCalls : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getDrawCalls
|
||||
* @return {unsigned int}
|
||||
*/
|
||||
getDrawCalls : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setBlendEquation
|
||||
* @param {cc.renderer::BlendOp} arg0
|
||||
*/
|
||||
setBlendEquation : function (
|
||||
blendop
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setStencilFuncFront
|
||||
* @param {cc.renderer::ComparisonFunc} arg0
|
||||
* @param {int} arg1
|
||||
* @param {unsigned int} arg2
|
||||
*/
|
||||
setStencilFuncFront : function (
|
||||
comparisonfunc,
|
||||
int,
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setStencilOpFront
|
||||
* @param {cc.renderer::StencilOp} arg0
|
||||
* @param {cc.renderer::StencilOp} arg1
|
||||
* @param {cc.renderer::StencilOp} arg2
|
||||
* @param {unsigned int} arg3
|
||||
*/
|
||||
setStencilOpFront : function (
|
||||
stencilop,
|
||||
stencilop,
|
||||
stencilop,
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setStencilFuncBack
|
||||
* @param {cc.renderer::ComparisonFunc} arg0
|
||||
* @param {int} arg1
|
||||
* @param {unsigned int} arg2
|
||||
*/
|
||||
setStencilFuncBack : function (
|
||||
comparisonfunc,
|
||||
int,
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setBlendFunc
|
||||
* @param {cc.renderer::BlendFactor} arg0
|
||||
* @param {cc.renderer::BlendFactor} arg1
|
||||
*/
|
||||
setBlendFunc : function (
|
||||
blendfactor,
|
||||
blendfactor
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setCullMode
|
||||
* @param {cc.renderer::CullMode} arg0
|
||||
*/
|
||||
setCullMode : function (
|
||||
cullmode
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setStencilOp
|
||||
* @param {cc.renderer::StencilOp} arg0
|
||||
* @param {cc.renderer::StencilOp} arg1
|
||||
* @param {cc.renderer::StencilOp} arg2
|
||||
* @param {unsigned int} arg3
|
||||
*/
|
||||
setStencilOp : function (
|
||||
stencilop,
|
||||
stencilop,
|
||||
stencilop,
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method enableStencilTest
|
||||
*/
|
||||
enableStencilTest : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method destroy
|
||||
*/
|
||||
destroy : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getInstance
|
||||
* @return {cc.renderer::DeviceGraphics}
|
||||
*/
|
||||
getInstance : function (
|
||||
)
|
||||
{
|
||||
return cc.renderer::DeviceGraphics;
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* @class FrameBuffer
|
||||
*/
|
||||
gfx.FrameBuffer = {
|
||||
|
||||
/**
|
||||
* @method getHeight
|
||||
* @return {int}
|
||||
*/
|
||||
getHeight : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getWidth
|
||||
* @return {int}
|
||||
*/
|
||||
getWidth : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method destroy
|
||||
*/
|
||||
destroy : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method FrameBuffer
|
||||
* @constructor
|
||||
*/
|
||||
FrameBuffer : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* @class RenderTarget
|
||||
*/
|
||||
gfx.RenderTarget = {
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* @class RenderBuffer
|
||||
*/
|
||||
gfx.RenderBuffer = {
|
||||
|
||||
/**
|
||||
* @method init
|
||||
* @param {cc.renderer::DeviceGraphics} arg0
|
||||
* @param {cc.renderer::RenderBuffer::Format} arg1
|
||||
* @param {unsigned short} arg2
|
||||
* @param {unsigned short} arg3
|
||||
* @return {bool}
|
||||
*/
|
||||
init : function (
|
||||
devicegraphics,
|
||||
format,
|
||||
short,
|
||||
short
|
||||
)
|
||||
{
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method update
|
||||
* @param {unsigned short} arg0
|
||||
* @param {unsigned short} arg1
|
||||
* @return {bool}
|
||||
*/
|
||||
update : function (
|
||||
short,
|
||||
short
|
||||
)
|
||||
{
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method create
|
||||
* @param {cc.renderer::DeviceGraphics} arg0
|
||||
* @param {cc.renderer::RenderBuffer::Format} arg1
|
||||
* @param {unsigned short} arg2
|
||||
* @param {unsigned short} arg3
|
||||
* @return {cc.renderer::RenderBuffer}
|
||||
*/
|
||||
create : function (
|
||||
devicegraphics,
|
||||
format,
|
||||
short,
|
||||
short
|
||||
)
|
||||
{
|
||||
return cc.renderer::RenderBuffer;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method RenderBuffer
|
||||
* @constructor
|
||||
*/
|
||||
RenderBuffer : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* @class Texture
|
||||
*/
|
||||
gfx.Texture = {
|
||||
|
||||
/**
|
||||
* @method getWidth
|
||||
* @return {unsigned short}
|
||||
*/
|
||||
getWidth : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setAlphaAtlas
|
||||
* @param {bool} arg0
|
||||
*/
|
||||
setAlphaAtlas : function (
|
||||
bool
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getHeight
|
||||
* @return {unsigned short}
|
||||
*/
|
||||
getHeight : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method isAlphaAtlas
|
||||
* @return {bool}
|
||||
*/
|
||||
isAlphaAtlas : function (
|
||||
)
|
||||
{
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getTarget
|
||||
* @return {unsigned int}
|
||||
*/
|
||||
getTarget : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* @class Texture2D
|
||||
*/
|
||||
gfx.Texture2D = {
|
||||
|
||||
/**
|
||||
* @method updateImage
|
||||
* @param {cc.renderer::Texture::ImageOption} arg0
|
||||
*/
|
||||
updateImage : function (
|
||||
imageoption
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method init
|
||||
* @param {cc.renderer::DeviceGraphics} arg0
|
||||
* @param {cc.renderer::Texture::Options} arg1
|
||||
* @return {bool}
|
||||
*/
|
||||
init : function (
|
||||
devicegraphics,
|
||||
options
|
||||
)
|
||||
{
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method updateSubImage
|
||||
* @param {cc.renderer::Texture::SubImageOption} arg0
|
||||
*/
|
||||
updateSubImage : function (
|
||||
subimageoption
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method update
|
||||
* @param {cc.renderer::Texture::Options} arg0
|
||||
*/
|
||||
update : function (
|
||||
options
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method Texture2D
|
||||
* @constructor
|
||||
*/
|
||||
Texture2D : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* @class Program
|
||||
*/
|
||||
gfx.Program = {
|
||||
|
||||
/**
|
||||
* @method getID
|
||||
* @return {unsigned int}
|
||||
*/
|
||||
getID : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method init
|
||||
* @param {cc.renderer::DeviceGraphics} arg0
|
||||
* @param {char} arg1
|
||||
* @param {char} arg2
|
||||
* @return {bool}
|
||||
*/
|
||||
init : function (
|
||||
devicegraphics,
|
||||
char,
|
||||
char
|
||||
)
|
||||
{
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method link
|
||||
*/
|
||||
link : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method Program
|
||||
* @constructor
|
||||
*/
|
||||
Program : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
};
|
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,238 @@
|
||||
/**
|
||||
* @module video
|
||||
*/
|
||||
var jsb = jsb || {};
|
||||
|
||||
/**
|
||||
* @class VideoPlayer
|
||||
*/
|
||||
jsb.VideoPlayer = {
|
||||
|
||||
/**
|
||||
* @method setFullScreenEnabled
|
||||
* @param {bool} arg0
|
||||
*/
|
||||
setFullScreenEnabled : function (
|
||||
bool
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getFrameWidth
|
||||
* @return {int}
|
||||
*/
|
||||
getFrameWidth : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method duration
|
||||
* @return {float}
|
||||
*/
|
||||
duration : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method pause
|
||||
*/
|
||||
pause : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getFrame
|
||||
*/
|
||||
getFrame : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setShowRawFrame
|
||||
* @param {bool} arg0
|
||||
*/
|
||||
setShowRawFrame : function (
|
||||
bool
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method onPlayEvent
|
||||
* @param {int} arg0
|
||||
*/
|
||||
onPlayEvent : function (
|
||||
int
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method addEventListener
|
||||
* @param {String} arg0
|
||||
* @param {function} arg1
|
||||
*/
|
||||
addEventListener : function (
|
||||
str,
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method seekTo
|
||||
* @param {float} arg0
|
||||
*/
|
||||
seekTo : function (
|
||||
float
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method play
|
||||
*/
|
||||
play : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getFrameHeight
|
||||
* @return {int}
|
||||
*/
|
||||
getFrameHeight : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method stop
|
||||
*/
|
||||
stop : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setURL
|
||||
* @param {String} arg0
|
||||
*/
|
||||
setURL : function (
|
||||
str
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method update
|
||||
*/
|
||||
update : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method pushFrameDataToTexture2D
|
||||
* @param {cc.renderer::Texture} arg0
|
||||
*/
|
||||
pushFrameDataToTexture2D : function (
|
||||
texture
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method isKeepAspectRatioEnabled
|
||||
* @return {bool}
|
||||
*/
|
||||
isKeepAspectRatioEnabled : function (
|
||||
)
|
||||
{
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getFrameChannel
|
||||
* @return {int}
|
||||
*/
|
||||
getFrameChannel : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getVideoTexDataSize
|
||||
* @return {int}
|
||||
*/
|
||||
getVideoTexDataSize : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setKeepAspectRatioEnabled
|
||||
* @param {bool} arg0
|
||||
*/
|
||||
setKeepAspectRatioEnabled : function (
|
||||
bool
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method currentTime
|
||||
* @return {float}
|
||||
*/
|
||||
currentTime : function (
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setFrame
|
||||
* @param {float} arg0
|
||||
* @param {float} arg1
|
||||
* @param {float} arg2
|
||||
* @param {float} arg3
|
||||
*/
|
||||
setFrame : function (
|
||||
float,
|
||||
float,
|
||||
float,
|
||||
float
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setVisible
|
||||
* @param {bool} arg0
|
||||
*/
|
||||
setVisible : function (
|
||||
bool
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method VideoPlayer
|
||||
* @constructor
|
||||
*/
|
||||
VideoPlayer : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
};
|
@@ -0,0 +1,286 @@
|
||||
/**
|
||||
* @module webview
|
||||
*/
|
||||
var jsb = jsb || {};
|
||||
|
||||
/**
|
||||
* @class WebView
|
||||
*/
|
||||
jsb.WebView = {
|
||||
|
||||
/**
|
||||
* @method setOnShouldStartLoading
|
||||
* @param {function} arg0
|
||||
*/
|
||||
setOnShouldStartLoading : function (
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setOnDidFailLoading
|
||||
* @param {function} arg0
|
||||
*/
|
||||
setOnDidFailLoading : function (
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method canGoBack
|
||||
* @return {bool}
|
||||
*/
|
||||
canGoBack : function (
|
||||
)
|
||||
{
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method loadHTMLString
|
||||
* @param {String} arg0
|
||||
* @param {String} arg1
|
||||
*/
|
||||
loadHTMLString : function (
|
||||
str,
|
||||
str
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method goForward
|
||||
*/
|
||||
goForward : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method goBack
|
||||
*/
|
||||
goBack : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setScalesPageToFit
|
||||
* @param {bool} arg0
|
||||
*/
|
||||
setScalesPageToFit : function (
|
||||
bool
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getOnDidFailLoading
|
||||
* @return {function}
|
||||
*/
|
||||
getOnDidFailLoading : function (
|
||||
)
|
||||
{
|
||||
return std::function<void (cocos2d::WebView , std::string&)>;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method loadFile
|
||||
* @param {String} arg0
|
||||
*/
|
||||
loadFile : function (
|
||||
str
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method loadURL
|
||||
* @param {String} arg0
|
||||
*/
|
||||
loadURL : function (
|
||||
str
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setBounces
|
||||
* @param {bool} arg0
|
||||
*/
|
||||
setBounces : function (
|
||||
bool
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method evaluateJS
|
||||
* @param {String} arg0
|
||||
*/
|
||||
evaluateJS : function (
|
||||
str
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setOnJSCallback
|
||||
* @param {function} arg0
|
||||
*/
|
||||
setOnJSCallback : function (
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setBackgroundTransparent
|
||||
* @param {bool} arg0
|
||||
*/
|
||||
setBackgroundTransparent : function (
|
||||
bool
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getOnJSCallback
|
||||
* @return {function}
|
||||
*/
|
||||
getOnJSCallback : function (
|
||||
)
|
||||
{
|
||||
return std::function<void (cocos2d::WebView , std::string&)>;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method canGoForward
|
||||
* @return {bool}
|
||||
*/
|
||||
canGoForward : function (
|
||||
)
|
||||
{
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getOnShouldStartLoading
|
||||
* @return {function}
|
||||
*/
|
||||
getOnShouldStartLoading : function (
|
||||
)
|
||||
{
|
||||
return std::function<bool (cocos2d::WebView , std::string&)>;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method stopLoading
|
||||
*/
|
||||
stopLoading : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setFrame
|
||||
* @param {float} arg0
|
||||
* @param {float} arg1
|
||||
* @param {float} arg2
|
||||
* @param {float} arg3
|
||||
*/
|
||||
setFrame : function (
|
||||
float,
|
||||
float,
|
||||
float,
|
||||
float
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setVisible
|
||||
* @param {bool} arg0
|
||||
*/
|
||||
setVisible : function (
|
||||
bool
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method reload
|
||||
*/
|
||||
reload : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method loadData
|
||||
* @param {cc.Data} arg0
|
||||
* @param {String} arg1
|
||||
* @param {String} arg2
|
||||
* @param {String} arg3
|
||||
*/
|
||||
loadData : function (
|
||||
data,
|
||||
str,
|
||||
str,
|
||||
str
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setJavascriptInterfaceScheme
|
||||
* @param {String} arg0
|
||||
*/
|
||||
setJavascriptInterfaceScheme : function (
|
||||
str
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method setOnDidFinishLoading
|
||||
* @param {function} arg0
|
||||
*/
|
||||
setOnDidFinishLoading : function (
|
||||
func
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getOnDidFinishLoading
|
||||
* @return {function}
|
||||
*/
|
||||
getOnDidFinishLoading : function (
|
||||
)
|
||||
{
|
||||
return std::function<void (cocos2d::WebView , std::string&)>;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method create
|
||||
* @return {cc.WebView}
|
||||
*/
|
||||
create : function (
|
||||
)
|
||||
{
|
||||
return cc.WebView;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method WebView
|
||||
* @constructor
|
||||
*/
|
||||
WebView : function (
|
||||
)
|
||||
{
|
||||
},
|
||||
|
||||
};
|
Reference in New Issue
Block a user