From 52097b6ee7cc8f5a770eb851902560b5b8592218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 22 Feb 2021 21:05:36 +0800 Subject: add meta/3rd with acknowledgement --- meta/3rd/Cocos4.0/cc.Bundle3D.lua | 58 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 meta/3rd/Cocos4.0/cc.Bundle3D.lua (limited to 'meta/3rd/Cocos4.0/cc.Bundle3D.lua') diff --git a/meta/3rd/Cocos4.0/cc.Bundle3D.lua b/meta/3rd/Cocos4.0/cc.Bundle3D.lua new file mode 100644 index 00000000..faa71b3c --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Bundle3D.lua @@ -0,0 +1,58 @@ + +---@class cc.Bundle3D +local Bundle3D={ } +cc.Bundle3D=Bundle3D + + + + +---* load a file. You must load a file first, then call loadMeshData, loadSkinData, and so on
+---* param path File to be loaded
+---* return result of load +---@param path string +---@return boolean +function Bundle3D:load (path) end +---* load skin data from bundle
+---* param id The ID of the skin, load the first Skin in the bundle if it is empty +---@param id string +---@param skindata cc.SkinData +---@return boolean +function Bundle3D:loadSkinData (id,skindata) end +---* +---@return self +function Bundle3D:clear () end +---* +---@param materialdatas cc.MaterialDatas +---@return boolean +function Bundle3D:loadMaterials (materialdatas) end +---* +---@param nodedatas cc.NodeDatas +---@return boolean +function Bundle3D:loadNodes (nodedatas) end +---* load material data from bundle
+---* param id The ID of the animation, load the first animation in the bundle if it is empty +---@param id string +---@param animationdata cc.Animation3DData +---@return boolean +function Bundle3D:loadAnimationData (id,animationdata) end +---* get define data type
+---* param str The type in string +---@param str string +---@return int +function Bundle3D:parseSamplerAddressMode (str) end +---* +---@param bundle cc.Bundle3D +---@return self +function Bundle3D:destroyBundle (bundle) end +---* create a new bundle, destroy it when finish using it +---@return self +function Bundle3D:createBundle () end +---* get define data type
+---* param str The type in string +---@param str string +---@param size int +---@return int +function Bundle3D:parseGLDataType (str,size) end +---* +---@return self +function Bundle3D:Bundle3D () end \ No newline at end of file -- cgit v1.2.3