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
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Sprite3D#Sprite3D self (return value: cc.Sprite3D)
|
2014-09-15 23:21:18 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @overload self, cc.Texture2D
|
|
|
|
-- @overload self, string
|
|
|
|
-- @function [parent=#Sprite3D] setTexture
|
|
|
|
-- @param self
|
|
|
|
-- @param #string texFile
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Sprite3D#Sprite3D self (return value: cc.Sprite3D)
|
2014-09-15 23:21:18 +08:00
|
|
|
|
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
|
|
|
--------------------------------
|
2015-05-12 13:23:45 +08:00
|
|
|
-- Adds a new material to a particular mesh of the sprite.<br>
|
|
|
|
-- meshIndex is the mesh that will be applied to.<br>
|
|
|
|
-- if meshIndex == -1, then it will be applied to all the meshes that belong to the sprite.
|
|
|
|
-- @function [parent=#Sprite3D] getMaterial
|
|
|
|
-- @param self
|
|
|
|
-- @param #int meshIndex
|
|
|
|
-- @return Material#Material ret (return value: cc.Material)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-05-05 11:31:53 +08:00
|
|
|
--
|
|
|
|
-- @function [parent=#Sprite3D] setCullFace
|
2014-09-15 23:21:18 +08:00
|
|
|
-- @param self
|
2015-05-05 11:31:53 +08:00
|
|
|
-- @param #unsigned int cullFace
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Sprite3D#Sprite3D self (return value: cc.Sprite3D)
|
2014-09-15 23:21:18 +08:00
|
|
|
|
2015-01-14 16:26:14 +08:00
|
|
|
--------------------------------
|
2015-05-05 11:31:53 +08:00
|
|
|
-- remove all attach nodes
|
|
|
|
-- @function [parent=#Sprite3D] removeAllAttachNode
|
2015-01-14 16:26:14 +08:00
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Sprite3D#Sprite3D self (return value: cc.Sprite3D)
|
2015-01-14 16:26:14 +08:00
|
|
|
|
2015-05-06 09:07:26 +08:00
|
|
|
--------------------------------
|
|
|
|
-- @overload self, cc.Material, int
|
|
|
|
-- @overload self, cc.Material
|
|
|
|
-- @function [parent=#Sprite3D] setMaterial
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Material material
|
|
|
|
-- @param #int meshIndex
|
|
|
|
-- @return Sprite3D#Sprite3D self (return value: cc.Sprite3D)
|
|
|
|
|
2014-09-15 23:21:18 +08:00
|
|
|
--------------------------------
|
|
|
|
-- get mesh
|
|
|
|
-- @function [parent=#Sprite3D] getMesh
|
|
|
|
-- @param self
|
|
|
|
-- @return Mesh#Mesh ret (return value: cc.Mesh)
|
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
-- get mesh count
|
|
|
|
-- @function [parent=#Sprite3D] getMeshCount
|
|
|
|
-- @param self
|
|
|
|
-- @return long#long ret (return value: long)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- get Mesh by index
|
|
|
|
-- @function [parent=#Sprite3D] getMeshByIndex
|
|
|
|
-- @param self
|
|
|
|
-- @param #int index
|
|
|
|
-- @return Mesh#Mesh ret (return value: cc.Mesh)
|
|
|
|
|
2014-11-07 10:38:01 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
2015-05-05 11:31:53 +08:00
|
|
|
-- @function [parent=#Sprite3D] isForceDepthWrite
|
2014-11-07 10:38:01 +08:00
|
|
|
-- @param self
|
2015-05-05 11:31:53 +08:00
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#Sprite3D] getBlendFunc
|
|
|
|
-- @param self
|
|
|
|
-- @return BlendFunc#BlendFunc ret (return value: cc.BlendFunc)
|
2014-11-07 10:38:01 +08:00
|
|
|
|
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
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Sprite3D#Sprite3D self (return value: cc.Sprite3D)
|
2014-09-30 15:13:25 +08:00
|
|
|
|
2014-09-15 23:21:18 +08:00
|
|
|
--------------------------------
|
2015-05-05 11:31:53 +08:00
|
|
|
-- get AttachNode by bone name, return nullptr if not exist
|
|
|
|
-- @function [parent=#Sprite3D] getAttachNode
|
2014-09-15 23:21:18 +08:00
|
|
|
-- @param self
|
2015-05-05 11:31:53 +08:00
|
|
|
-- @param #string boneName
|
|
|
|
-- @return AttachNode#AttachNode ret (return value: cc.AttachNode)
|
2014-09-15 23:21:18 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-05-05 11:31:53 +08:00
|
|
|
--
|
|
|
|
-- @function [parent=#Sprite3D] setBlendFunc
|
2014-09-15 23:21:18 +08:00
|
|
|
-- @param self
|
2015-05-05 11:31:53 +08:00
|
|
|
-- @param #cc.BlendFunc blendFunc
|
|
|
|
-- @return Sprite3D#Sprite3D self (return value: cc.Sprite3D)
|
2014-09-15 23:21:18 +08:00
|
|
|
|
2015-07-01 22:12:18 +08:00
|
|
|
--------------------------------
|
|
|
|
-- force set this Sprite3D to 2D render queue
|
|
|
|
-- @function [parent=#Sprite3D] setForce2DQueue
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool force2D
|
|
|
|
-- @return Sprite3D#Sprite3D self (return value: cc.Sprite3D)
|
|
|
|
|
2014-09-15 23:21:18 +08:00
|
|
|
--------------------------------
|
|
|
|
-- remove attach node
|
|
|
|
-- @function [parent=#Sprite3D] removeAttachNode
|
|
|
|
-- @param self
|
|
|
|
-- @param #string boneName
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Sprite3D#Sprite3D self (return value: cc.Sprite3D)
|
2014-09-15 23:21:18 +08:00
|
|
|
|
2014-10-24 21:55:25 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
2014-11-07 10:38:01 +08:00
|
|
|
-- @function [parent=#Sprite3D] getSkeleton
|
2014-10-24 21:55:25 +08:00
|
|
|
-- @param self
|
2014-11-07 10:38:01 +08:00
|
|
|
-- @return Skeleton3D#Skeleton3D ret (return value: cc.Skeleton3D)
|
2014-10-24 21:55:25 +08:00
|
|
|
|
2015-01-28 15:21:15 +08:00
|
|
|
--------------------------------
|
|
|
|
-- Force to write to depth buffer, this is useful if you want to achieve effects like fading.
|
|
|
|
-- @function [parent=#Sprite3D] setForceDepthWrite
|
|
|
|
-- @param self
|
|
|
|
-- @param #bool value
|
|
|
|
-- @return Sprite3D#Sprite3D self (return value: cc.Sprite3D)
|
|
|
|
|
2014-09-15 23:21:18 +08:00
|
|
|
--------------------------------
|
2014-11-07 10:38:01 +08:00
|
|
|
-- get Mesh by Name, it returns the first one if there are more than one mesh with the same name
|
2014-09-15 23:21:18 +08:00
|
|
|
-- @function [parent=#Sprite3D] getMeshByName
|
|
|
|
-- @param self
|
|
|
|
-- @param #string name
|
|
|
|
-- @return Mesh#Mesh ret (return value: cc.Mesh)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @overload self, string
|
2015-01-14 11:43:27 +08:00
|
|
|
-- @overload self
|
|
|
|
-- @overload self, string, string
|
2014-09-15 23:21:18 +08:00
|
|
|
-- @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
|
|
|
|
2015-02-15 19:53:55 +08:00
|
|
|
--------------------------------
|
|
|
|
-- draw
|
|
|
|
-- @function [parent=#Sprite3D] draw
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Renderer renderer
|
|
|
|
-- @param #mat4_table transform
|
|
|
|
-- @param #unsigned int flags
|
|
|
|
-- @return Sprite3D#Sprite3D self (return value: cc.Sprite3D)
|
|
|
|
|
2015-01-28 15:21:15 +08:00
|
|
|
--------------------------------
|
|
|
|
-- Executes an action, and returns the action that is executed. For Sprite3D special logic are needed to take care of Fading.<br>
|
|
|
|
-- This node becomes the action's target. Refer to Action::getTarget()<br>
|
|
|
|
-- warning Actions don't retain their target.<br>
|
|
|
|
-- return An Action pointer
|
|
|
|
-- @function [parent=#Sprite3D] runAction
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Action action
|
|
|
|
-- @return Action#Action ret (return value: cc.Action)
|
|
|
|
|
2014-09-15 23:21:18 +08:00
|
|
|
--------------------------------
|
|
|
|
-- just rember bind attributes
|
|
|
|
-- @function [parent=#Sprite3D] setGLProgram
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.GLProgram glprogram
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Sprite3D#Sprite3D self (return value: cc.Sprite3D)
|
2014-09-15 23:21:18 +08:00
|
|
|
|
2015-05-05 11:31:53 +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
|
|
|
|
-- @return Sprite3D#Sprite3D self (return value: cc.Sprite3D)
|
|
|
|
|
2014-09-15 23:21:18 +08:00
|
|
|
return nil
|