2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module Scene
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend Node
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module cc
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2015-09-21 16:35:18 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#Scene] initWithPhysics
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#Scene] setCameraOrderDirty
|
|
|
|
-- @param self
|
|
|
|
-- @return Scene#Scene self (return value: cc.Scene)
|
|
|
|
|
2014-09-26 23:37:17 +08:00
|
|
|
--------------------------------
|
2016-10-28 10:13:57 +08:00
|
|
|
-- @overload self, cc.Renderer, mat4_table, mat4_table, unsigned int
|
|
|
|
-- @overload self, cc.Renderer, mat4_table, mat4_table
|
|
|
|
-- @function [parent=#Scene] render
|
2014-09-26 23:37:17 +08:00
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Renderer renderer
|
2016-10-28 10:13:57 +08:00
|
|
|
-- @param #mat4_table eyeTransforms
|
|
|
|
-- @param #mat4_table eyeProjections
|
|
|
|
-- @param #unsigned int multiViewCount
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Scene#Scene self (return value: cc.Scene)
|
2016-10-28 10:13:57 +08:00
|
|
|
|
2015-09-21 16:35:18 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#Scene] stepPhysicsAndNavigation
|
|
|
|
-- @param self
|
|
|
|
-- @param #float deltaTime
|
|
|
|
-- @return Scene#Scene self (return value: cc.Scene)
|
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#Scene] onProjectionChanged
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.EventCustom event
|
|
|
|
-- @return Scene#Scene self (return value: cc.Scene)
|
|
|
|
|
2015-09-21 16:35:18 +08:00
|
|
|
--------------------------------
|
|
|
|
-- Get the physics world of the scene.<br>
|
|
|
|
-- return The physics world of the scene.<br>
|
|
|
|
-- js NA
|
|
|
|
-- @function [parent=#Scene] getPhysicsWorld
|
|
|
|
-- @param self
|
|
|
|
-- @return PhysicsWorld#PhysicsWorld ret (return value: cc.PhysicsWorld)
|
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#Scene] initWithSize
|
|
|
|
-- @param self
|
|
|
|
-- @param #size_table size
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2015-01-14 11:43:27 +08:00
|
|
|
--------------------------------
|
2015-03-18 22:02:42 +08:00
|
|
|
-- Get the default camera.<br>
|
2015-03-19 22:17:17 +08:00
|
|
|
-- js NA<br>
|
2015-03-18 22:02:42 +08:00
|
|
|
-- return The default camera of scene.
|
2015-01-14 11:43:27 +08:00
|
|
|
-- @function [parent=#Scene] getDefaultCamera
|
|
|
|
-- @param self
|
|
|
|
-- @return Camera#Camera ret (return value: cc.Camera)
|
|
|
|
|
2014-06-05 11:01:43 +08:00
|
|
|
--------------------------------
|
2015-03-18 22:02:42 +08:00
|
|
|
-- Creates a new Scene object with a predefined Size. <br>
|
|
|
|
-- param size The predefined size of scene.<br>
|
2015-03-19 22:17:17 +08:00
|
|
|
-- return An autoreleased Scene object.<br>
|
|
|
|
-- js NA
|
2014-06-05 11:01:43 +08:00
|
|
|
-- @function [parent=#Scene] createWithSize
|
|
|
|
-- @param self
|
|
|
|
-- @param #size_table size
|
|
|
|
-- @return Scene#Scene ret (return value: cc.Scene)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-18 22:02:42 +08:00
|
|
|
-- Creates a new Scene object. <br>
|
|
|
|
-- return An autoreleased Scene object.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Scene] create
|
|
|
|
-- @param self
|
|
|
|
-- @return Scene#Scene ret (return value: cc.Scene)
|
|
|
|
|
2015-09-21 16:35:18 +08:00
|
|
|
--------------------------------
|
|
|
|
-- Create a scene with physics.<br>
|
|
|
|
-- return An autoreleased Scene object with physics.<br>
|
|
|
|
-- js NA
|
|
|
|
-- @function [parent=#Scene] createWithPhysics
|
|
|
|
-- @param self
|
|
|
|
-- @return Scene#Scene ret (return value: cc.Scene)
|
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#Scene] init
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-11-26 11:20:28 +08:00
|
|
|
-- @function [parent=#Scene] getDescription
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @param self
|
2014-11-26 11:20:28 +08:00
|
|
|
-- @return string#string ret (return value: string)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2015-03-13 14:19:29 +08:00
|
|
|
--------------------------------
|
|
|
|
-- override function
|
|
|
|
-- @function [parent=#Scene] removeAllChildren
|
|
|
|
-- @param self
|
|
|
|
-- @return Scene#Scene self (return value: cc.Scene)
|
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#Scene] Scene
|
|
|
|
-- @param self
|
|
|
|
-- @return Scene#Scene self (return value: cc.Scene)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|