2014-09-15 23:21:18 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module Sprite3D
|
|
|
|
-- @extend Node,BlendProtocol
|
|
|
|
-- @parent_module cc
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#Sprite3D] setCullFaceEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool enable
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @overload self, cc.Texture2D
|
|
|
|
-- @overload self, string
|
|
|
|
-- @function [parent=#Sprite3D] setTexture
|
|
|
|
-- @param self
|
|
|
|
-- @param #string texFile
|
|
|
|
|
2014-09-30 15:13:25 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#Sprite3D] getLightMask
|
|
|
|
-- @param self
|
|
|
|
-- @return unsigned int#unsigned int ret (return value: unsigned int)
|
|
|
|
|
2014-09-15 23:21:18 +08:00
|
|
|
--------------------------------
|
|
|
|
-- remove all attach nodes
|
|
|
|
-- @function [parent=#Sprite3D] removeAllAttachNode
|
|
|
|
-- @param self
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- get mesh
|
|
|
|
-- @function [parent=#Sprite3D] getMesh
|
|
|
|
-- @param self
|
|
|
|
-- @return Mesh#Mesh ret (return value: cc.Mesh)
|
|
|
|
|
2014-09-30 15:13:25 +08:00
|
|
|
--------------------------------
|
|
|
|
-- light mask getter & setter, light works only when _lightmask & light's flag is true, default value of _lightmask is 0xffff
|
|
|
|
-- @function [parent=#Sprite3D] setLightMask
|
|
|
|
-- @param self
|
|
|
|
-- @param #unsigned int mask
|
|
|
|
|
2014-09-15 23:21:18 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#Sprite3D] getBlendFunc
|
|
|
|
-- @param self
|
|
|
|
-- @return BlendFunc#BlendFunc ret (return value: cc.BlendFunc)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-10-24 21:55:25 +08:00
|
|
|
-- get mesh count
|
|
|
|
-- @function [parent=#Sprite3D] getMeshCount
|
2014-09-15 23:21:18 +08:00
|
|
|
-- @param self
|
2014-10-24 21:55:25 +08:00
|
|
|
-- @return long#long ret (return value: long)
|
2014-09-15 23:21:18 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- remove attach node
|
|
|
|
-- @function [parent=#Sprite3D] removeAttachNode
|
|
|
|
-- @param self
|
|
|
|
-- @param #string boneName
|
|
|
|
|
2014-10-24 21:55:25 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#Sprite3D] setCullFace
|
|
|
|
-- @param self
|
|
|
|
-- @param #unsigned int cullFace
|
|
|
|
|
2014-09-15 23:21:18 +08:00
|
|
|
--------------------------------
|
|
|
|
-- get SubMeshState by index
|
|
|
|
-- @function [parent=#Sprite3D] getMeshByIndex
|
|
|
|
-- @param self
|
|
|
|
-- @param #int index
|
|
|
|
-- @return Mesh#Mesh ret (return value: cc.Mesh)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- get SubMeshState by Name
|
|
|
|
-- @function [parent=#Sprite3D] getMeshByName
|
|
|
|
-- @param self
|
|
|
|
-- @param #string name
|
|
|
|
-- @return Mesh#Mesh ret (return value: cc.Mesh)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#Sprite3D] getSkeleton
|
|
|
|
-- @param self
|
|
|
|
-- @return Skeleton3D#Skeleton3D ret (return value: cc.Skeleton3D)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- get AttachNode by bone name, return nullptr if not exist
|
|
|
|
-- @function [parent=#Sprite3D] getAttachNode
|
|
|
|
-- @param self
|
|
|
|
-- @param #string boneName
|
|
|
|
-- @return AttachNode#AttachNode ret (return value: cc.AttachNode)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @overload self, string, string
|
|
|
|
-- @overload self, string
|
|
|
|
-- @function [parent=#Sprite3D] create
|
|
|
|
-- @param self
|
|
|
|
-- @param #string modelPath
|
|
|
|
-- @param #string texturePath
|
2014-10-17 22:56:22 +08:00
|
|
|
-- @return Sprite3D#Sprite3D ret (return value: cc.Sprite3D)
|
2014-09-15 23:21:18 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Returns 2d bounding-box<br>
|
|
|
|
-- Note: the bouding-box is just get from the AABB which as Z=0, so that is not very accurate.
|
|
|
|
-- @function [parent=#Sprite3D] getBoundingBox
|
|
|
|
-- @param self
|
|
|
|
-- @return rect_table#rect_table ret (return value: rect_table)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- set GLProgramState, you should bind attributes by yourself
|
|
|
|
-- @function [parent=#Sprite3D] setGLProgramState
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.GLProgramState glProgramState
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- just rember bind attributes
|
|
|
|
-- @function [parent=#Sprite3D] setGLProgram
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.GLProgram glprogram
|
|
|
|
|
|
|
|
return nil
|