void OutputNode(dmGameObject::SceneNode* node) {\n dmGameObject::SceneNodeIterator it = dmGameObject::TraverseIterateChildren(node);\n while(dmGameObject::TraverseIterateNext(&it))\n {\n OutputProperties(&it.m_Node); // see dmGameObject::TraverseIterateProperties()\n OutputNode(&it.m_Node);\n }\n}\n\nbool OutputScene(HRegister regist) {\n dmGameObject::SceneNode root;\n if (!dmGameObject::TraverseGetRoot(regist, &root))\n return false;\n OutputNode(&node);\n}\n
",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "Delete"
+ "name": "TraverseGetRoot"
},
{
"replaces": "",
- "description": "Construct a hash of an instance id based on the index provided.",
+ "description": "Get a scene node iterator for the nodes' children",
"parameters": [
{
- "doc": "The index to base the id off of.",
- "name": "index",
+ "doc": "the parent node",
+ "name": "node",
"types": [
- "uint32_t"
+ "dmGameObject::SceneNode*"
]
}
],
"returnvalues": [
{
- "doc": "hash of the instance id constructed.",
- "name": "id",
+ "doc": "the iterator",
+ "name": "iterator",
"types": [
- "dmhash_t"
+ "dmGameObject::SceneNodeIterator"
]
}
],
"notes": [],
- "brief": "Construct a hash of an instance id based on the in...",
+ "brief": "Get a scene node iterator for the nodes' children",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "ConstructInstanceId"
+ "name": "TraverseIterateChildren"
},
{
"replaces": "",
- "description": "Retrieve an instance index from the index pool for the collection.",
+ "description": "Step a scene node iterator to the next sibling",
"parameters": [
{
- "doc": "Collection from which to retrieve the instance index.",
- "name": "collection",
+ "doc": "the iterator",
+ "name": "it",
"types": [
- "dmGameObject::HColleciton"
+ "dmGameObject::SceneNodeIterator*"
]
}
],
"returnvalues": [
{
- "doc": "index from the index pool of collection.",
- "name": "instance",
+ "doc": "true if successful. false if the iterator is finished",
+ "name": "result",
"types": [
- "uint32_t"
+ "bool"
]
}
],
"notes": [],
- "brief": "Retrieve an instance index from the index pool for...",
+ "brief": "Step a scene node iterator to the next sibling",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "AcquireInstanceIndex"
+ "name": "TraverseIterateNext"
},
{
"replaces": "",
- "description": "Assign an index to the instance, only if the instance is not null.",
- "parameters": [
+ "description": "scene node property types",
+ "parameters": [],
+ "returnvalues": [],
+ "notes": [],
+ "brief": "scene node property types",
+ "examples": "",
+ "members": [
{
- "doc": "The index to assign.",
- "name": "index",
- "types": [
- "uint32_t"
- ]
+ "doc": "",
+ "type": "",
+ "name": "dmGameObject::SCENE_NODE_PROPERTY_TYPE_NUMBER"
},
{
- "doc": "The instance that should be assigned the index.",
- "name": "instance",
- "types": [
- "dmGameObject::HInstance"
- ]
+ "doc": "",
+ "type": "",
+ "name": "dmGameObject::SCENE_NODE_PROPERTY_TYPE_HASH"
+ },
+ {
+ "doc": "",
+ "type": "",
+ "name": "dmGameObject::SCENE_NODE_PROPERTY_TYPE_URL"
+ },
+ {
+ "doc": "",
+ "type": "",
+ "name": "dmGameObject::SCENE_NODE_PROPERTY_TYPE_VECTOR3"
+ },
+ {
+ "doc": "",
+ "type": "",
+ "name": "dmGameObject::SCENE_NODE_PROPERTY_TYPE_VECTOR4"
+ },
+ {
+ "doc": "",
+ "type": "",
+ "name": "dmGameObject::SCENE_NODE_PROPERTY_TYPE_QUAT"
+ },
+ {
+ "doc": "",
+ "type": "",
+ "name": "dmGameObject::SCENE_NODE_PROPERTY_TYPE_BOOLEAN"
+ },
+ {
+ "doc": "",
+ "type": "",
+ "name": "dmGameObject::SCENE_NODE_PROPERTY_TYPE_TEXT"
+ },
+ {
+ "doc": "",
+ "type": "",
+ "name": "dmGameObject::SCENE_NODE_PROPERTY_TYPE_COUNT"
}
],
+ "error": "",
+ "tparams": [],
+ "type": "ENUM",
+ "name": "SceneNodePropertyType"
+ },
+ {
+ "replaces": "",
+ "description": "Struct that holds info about the current position when traversing the scene",
+ "parameters": [],
"returnvalues": [],
"notes": [],
- "brief": "Assign an index to the instance, only if the insta...",
+ "brief": "scene traversal node property",
"examples": "",
- "members": [],
+ "members": [
+ {
+ "doc": "name",
+ "type": "dmhash_t",
+ "name": "m_NameHash"
+ },
+ {
+ "doc": "type",
+ "type": "dmGameObject::SceneNodePropertyType",
+ "name": "m_Type"
+ },
+ {
+ "doc": "value\ndmGameObject::SceneNodePropertyIterator pit = TraverseIterateProperties(node);\nwhile(dmGameObject::TraverseIteratePropertiesNext(&pit))\n{\n const char* name = dmHashReverseSafe64(pit.m_Property.m_NameHash);\n switch(pit.m_Property.m_Type)\n {\n case dmGameObject::SCENE_NODE_PROPERTY_TYPE_NUMBER: ...\n ...\n }\n}\n
",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "GetIdentifier"
+ "name": "TraverseIterateProperties"
},
{
"replaces": "",
- "description": "Set instance identifier. Must be unique within the collection.",
+ "description": "Steps the scene node traversal property iterator to the next property",
"parameters": [
{
- "doc": "Collection",
- "name": "collection",
- "types": [
- "dmGameObject::HCollection"
- ]
- },
- {
- "doc": "Instance",
- "name": "instance",
- "types": [
- "dmGameObject::HInstance"
- ]
- },
- {
- "doc": "Identifier",
- "name": "identifier",
+ "doc": "the iterator",
+ "name": "it",
"types": [
- "dmhash_t"
+ "dmGameObject::SceneNodePropertyIterator*"
]
}
],
"returnvalues": [
{
- "doc": "RESULT_OK on success",
- "name": "result",
+ "doc": "True if the iterator it valid, false if the iterator is finished.",
+ "name": "finished",
"types": [
- "dmGameObject::Result"
+ "bool"
]
}
],
"notes": [],
- "brief": "Set instance identifier. Must be unique within the...",
+ "brief": "Steps the scene node traversal property iterator t...",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "SetIdentifier"
+ "name": "TraverseIteratePropertiesNext"
},
{
"replaces": "",
- "description": "Get component id from component index.",
- "parameters": [
- {
- "doc": "Instance",
- "name": "instance",
- "types": [
- "dmGameObject::HInstance"
- ]
- },
- {
- "doc": "Component index",
- "name": "component_index",
- "types": [
- "uint16_t"
- ]
- },
- {
- "doc": "[type: dmhash_t* Component id as out-argument",
- "name": "component_id",
- "types": [
- ""
- ]
- }
- ],
- "returnvalues": [
- {
- "doc": "RESULT_OK if the comopnent was found",
- "name": "result",
- "types": [
- "dmGameObject::Result"
- ]
- }
- ],
+ "description": "Callback when iterating over the properties for a component.",
+ "parameters": [],
+ "returnvalues": [],
"notes": [],
- "brief": "Get component id from component index.",
+ "brief": "Callback when iterating over the properties for a ...",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "GetComponentId"
+ "name": ""
},
{
"replaces": "",
- "description": "Set gameobject instance position",
+ "description": "Set the new world callback. Called when a collection (i.e. a \"world\") is created.",
"parameters": [
{
- "doc": "Gameobject instance",
- "name": "instance",
+ "doc": "the type",
+ "name": "type",
"types": [
- "dmGameObject::HInstance"
+ "ComponentType*"
]
},
{
- "doc": "New Position",
- "name": "position",
+ "doc": "",
+ "name": "",
"types": [
- "dmGameObject::Point3"
+ ""
]
}
],
"returnvalues": [],
"notes": [],
- "brief": "set position",
+ "brief": "set the new world callback",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "SetPosition"
+ "name": "ComponentTypeSetNewWorldFn"
},
{
"replaces": "",
- "description": "Get gameobject instance position",
+ "description": "Set the world destroy callback. Called when a collection (i.e. a \"world\") is destroyed.",
"parameters": [
{
- "doc": "Gameobject instance",
- "name": "instance",
+ "doc": "the type",
+ "name": "type",
"types": [
- "dmGameObject::HInstance"
+ "ComponentType*"
]
- }
- ],
- "returnvalues": [
+ },
{
- "doc": "Position",
+ "doc": "",
"name": "",
"types": [
- "dmGameObject::Point3"
+ ""
]
}
],
+ "returnvalues": [],
"notes": [],
- "brief": "get position",
+ "brief": "set the world destroy callback",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "GetPosition"
+ "name": "ComponentTypeSetDeleteWorldFn"
},
{
"replaces": "",
- "description": "Set gameobject instance rotation",
+ "description": "Set the component create callback. Called when a component instance is created.",
"parameters": [
{
- "doc": "Gameobject instance",
- "name": "instance",
+ "doc": "the type",
+ "name": "type",
"types": [
- "dmGameObject::HInstance"
+ "ComponentType*"
]
},
{
- "doc": "New Position",
- "name": "position",
+ "doc": "",
+ "name": "",
"types": [
""
]
@@ -1722,58 +1799,57 @@
],
"returnvalues": [],
"notes": [],
- "brief": "set rotation",
+ "brief": "set the component create callback",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "SetRotation"
+ "name": "ComponentTypeSetCreateFn"
},
{
"replaces": "",
- "description": "Get gameobject instance rotation",
+ "description": "Set the component destroy callback. Called when a component instance is destroyed.",
"parameters": [
{
- "doc": "Gameobject instance",
- "name": "instance",
+ "doc": "the type",
+ "name": "type",
"types": [
- "dmGameObject::HInstance"
+ "ComponentType*"
]
- }
- ],
- "returnvalues": [
+ },
{
- "doc": "rotation",
+ "doc": "",
"name": "",
"types": [
- "dmGameObject::Quat"
+ ""
]
}
],
+ "returnvalues": [],
"notes": [],
- "brief": "get rotation",
+ "brief": "set the component destroy callback",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "GetRotation"
+ "name": "ComponentTypeSetDestroyFn"
},
{
"replaces": "",
- "description": "Set gameobject instance uniform scale",
+ "description": "Set the component init callback. Called on each gameobject's components, during a gameobject's initialization.",
"parameters": [
{
- "doc": "Gameobject instance",
- "name": "instance",
+ "doc": "the type",
+ "name": "type",
"types": [
- "dmGameObject::HInstance"
+ "ComponentType*"
]
},
{
- "doc": "New uniform scale",
- "name": "scale",
+ "doc": "",
+ "name": "",
"types": [
""
]
@@ -1781,28 +1857,28 @@
],
"returnvalues": [],
"notes": [],
- "brief": "set uniform scale",
+ "brief": "set the component init callback",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "SetScale"
+ "name": "ComponentTypeSetInitFn"
},
{
"replaces": "",
- "description": "Set gameobject instance non-uniform scale",
+ "description": "Set the component finalize callback. Called on each gameobject's components, during a gameobject's finalization.",
"parameters": [
{
- "doc": "Gameobject instance",
- "name": "instance",
+ "doc": "the type",
+ "name": "type",
"types": [
- "dmGameObject::HInstance"
+ "ComponentType*"
]
},
{
- "doc": "New uniform scale",
- "name": "scale",
+ "doc": "",
+ "name": "",
"types": [
""
]
@@ -1810,680 +1886,603 @@
],
"returnvalues": [],
"notes": [],
- "brief": "set scale",
+ "brief": "set the component finalize callback",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "SetScale"
+ "name": "ComponentTypeSetFinalFn"
},
{
"replaces": "",
- "description": "Get gameobject instance uniform scale",
+ "description": "Set the component add-to-update callback. Called for each component instal, when the game object is spawned.",
"parameters": [
{
- "doc": "Gameobject instance",
- "name": "instance",
+ "doc": "the type",
+ "name": "type",
"types": [
- "dmGameObject::HInstance"
+ "ComponentType*"
]
- }
- ],
- "returnvalues": [
+ },
{
- "doc": "Uniform scale",
+ "doc": "",
"name": "",
"types": [
- "float"
+ ""
]
}
],
+ "returnvalues": [],
"notes": [],
- "brief": "get uniform scale",
+ "brief": "set the component add-to-update callback",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "GetUniformScale"
+ "name": "ComponentTypeSetAddToUpdateFn"
},
{
"replaces": "",
- "description": "Get gameobject instance scale",
+ "description": "Set the component get callback. Called when the scripts want to retrieve the individual component user data given an url.",
"parameters": [
{
- "doc": "Gameobject instance",
- "name": "instance",
+ "doc": "the type",
+ "name": "type",
"types": [
- "dmGameObject::HInstance"
+ "ComponentType*"
]
- }
- ],
- "returnvalues": [
+ },
{
- "doc": "Non-uniform scale",
+ "doc": "",
"name": "",
"types": [
- "dmGameObject::Vector3"
+ ""
]
}
],
+ "returnvalues": [],
"notes": [],
- "brief": "get scale",
+ "brief": "set the component get callback",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "GetScale"
+ "name": "ComponentTypeSetGetFn"
},
{
"replaces": "",
- "description": "Get gameobject instance world position",
+ "description": "Set the component render callback. Called when it's time to render all component instances.",
"parameters": [
{
- "doc": "Gameobject instance",
- "name": "instance",
+ "doc": "the type",
+ "name": "type",
"types": [
- "dmGameObject::HInstance"
+ "ComponentType*"
]
- }
- ],
- "returnvalues": [
+ },
{
- "doc": "World position",
+ "doc": "",
"name": "",
"types": [
- "dmGameObject::Point3"
+ ""
]
}
],
+ "returnvalues": [],
"notes": [],
- "brief": "get world position",
+ "brief": "set the component render callback",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "GetWorldPosition"
+ "name": "ComponentTypeSetRenderFn"
},
{
"replaces": "",
- "description": "Get gameobject instance world rotation",
+ "description": "Set the component update callback. Called when it's time to update all component instances.",
"parameters": [
{
- "doc": "Gameobject instance",
- "name": "instance",
+ "doc": "the type",
+ "name": "type",
"types": [
- "dmGameObject::HInstance"
+ "ComponentType*"
]
- }
- ],
- "returnvalues": [
+ },
{
- "doc": "World rotation",
+ "doc": "",
"name": "",
"types": [
- "dmGameObject::Quat"
+ ""
]
}
],
+ "returnvalues": [],
"notes": [],
- "brief": "get world rotation",
+ "brief": "set the component update callback",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "GetWorldRotation"
+ "name": "ComponentTypeSetUpdateFn"
},
{
"replaces": "",
- "description": "Get game object instance world transform",
+ "description": "Set the component post update callback. Called for each collection after the update, before the render.",
"parameters": [
{
- "doc": "Gameobject instance",
- "name": "instance",
+ "doc": "the type",
+ "name": "type",
"types": [
- "dmGameObject::HInstance"
+ "ComponentType*"
]
- }
- ],
- "returnvalues": [
+ },
{
- "doc": "World scale",
+ "doc": "",
"name": "",
"types": [
- "dmGameObject::Vector3"
+ ""
]
}
],
+ "returnvalues": [],
"notes": [],
- "brief": "get world scale",
+ "brief": "set the component post update callback",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "GetWorldScale"
+ "name": "ComponentTypeSetPostUpdateFn"
},
{
"replaces": "",
- "description": "Get game object instance uniform scale",
+ "description": "Set the component on-message callback. Called multiple times per frame, to flush messages.",
"parameters": [
{
- "doc": "Gameobject instance",
- "name": "instance",
+ "doc": "the type",
+ "name": "type",
"types": [
- "dmGameObject::HInstance"
+ "ComponentType*"
]
- }
- ],
- "returnvalues": [
+ },
{
- "doc": "World uniform scale",
+ "doc": "",
"name": "",
"types": [
- "float"
+ ""
]
}
],
+ "returnvalues": [],
"notes": [],
- "brief": "get world uniform scale",
+ "brief": "set the component on-message callback",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "GetWorldUniformScale"
+ "name": "ComponentTypeSetOnMessageFn"
},
{
"replaces": "",
- "description": "Get game object instance world transform as Matrix4.",
+ "description": "Set the component on-input callback. Called once per frame, before the Update function.",
"parameters": [
{
- "doc": "Gameobject instance",
- "name": "instance",
+ "doc": "the type",
+ "name": "type",
"types": [
- "dmGameObject::HInstance"
+ "ComponentType*"
]
- }
- ],
- "returnvalues": [
+ },
{
- "doc": "World transform matrix.",
+ "doc": "",
"name": "",
"types": [
- "dmGameObject::MAtrix4"
+ ""
]
}
],
+ "returnvalues": [],
"notes": [],
- "brief": "get world matrix",
+ "brief": "set the component on-input callback",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "GetWorldMatrix"
+ "name": "ComponentTypeSetOnInputFn"
},
{
"replaces": "",
- "description": "Get game object instance world transform",
+ "description": "Set the component on-reload callback. Called when the resource of a component instance is reloaded.",
"parameters": [
{
- "doc": "Gameobject instance",
- "name": "instance",
+ "doc": "the type",
+ "name": "type",
"types": [
- "dmGameObject::HInstance"
+ "ComponentType*"
]
- }
- ],
- "returnvalues": [
+ },
{
- "doc": "World transform",
+ "doc": "",
"name": "",
"types": [
- "dmTransform::Transform"
+ ""
]
}
],
+ "returnvalues": [],
"notes": [],
- "brief": "get world transform",
+ "brief": "set the component on-reload callback",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "GetWorldTransform"
+ "name": "ComponentTypeSetOnReloadFn"
},
{
"replaces": "",
- "description": "Set whether the instance should be flagged as a bone.\nInstances flagged as bones can have their transforms updated in a batch through SetBoneTransforms.\nUsed for animated skeletons.",
+ "description": "Set the component set properties callback. Called when the component instance is being spwned.",
"parameters": [
{
- "doc": "Instance",
- "name": "instance",
+ "doc": "the type",
+ "name": "type",
"types": [
- "HImstance"
+ "ComponentType*"
]
},
{
- "doc": "true if the instance is a bone",
- "name": "bone",
+ "doc": "",
+ "name": "",
"types": [
- "bool"
+ ""
]
}
],
"returnvalues": [],
"notes": [],
- "brief": "Set whether the instance should be flagged as a bo...",
+ "brief": "set the component set properties callback",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "SetBone"
+ "name": "ComponentTypeSetSetPropertiesFn"
},
{
"replaces": "",
- "description": "Check whether the instance is flagged as a bone.",
+ "description": "Set the component get property callback. Called when accessing a property via void OutputNode(dmGameObject::SceneNode* node) {\n dmGameObject::SceneNodeIterator it = dmGameObject::TraverseIterateChildren(node);\n while(dmGameObject::TraverseIterateNext(&it))\n {\n OutputProperties(&it.m_Node); // see dmGameObject::TraverseIterateProperties()\n OutputNode(&it.m_Node);\n }\n}\n\nbool OutputScene(HRegister regist) {\n dmGameObject::SceneNode root;\n if (!dmGameObject::TraverseGetRoot(regist, &root))\n return false;\n OutputNode(&node);\n}\n
",
+ "brief": "set the component type need for a per component instance user data",
+ "examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "TraverseGetRoot"
+ "name": "ComponentTypeSetHasUserData"
},
{
"replaces": "",
- "description": "Get a scene node iterator for the nodes' children",
+ "description": "set the component property iterator function. Called during inspection",
"parameters": [
{
- "doc": "the parent node",
- "name": "node",
+ "doc": "the type",
+ "name": "type",
"types": [
- "dmGameObject::SceneNode*"
+ "ComponentType*"
]
- }
- ],
- "returnvalues": [
+ },
{
- "doc": "the iterator",
- "name": "iterator",
+ "doc": "",
+ "name": "",
"types": [
- "dmGameObject::SceneNodeIterator"
+ ""
]
}
],
+ "returnvalues": [],
"notes": [],
- "brief": "Get a scene node iterator for the nodes' children",
+ "brief": "set the component property iterator function",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "TraverseIterateChildren"
+ "name": "ComponentTypeSetChilldIteratorFn"
},
{
"replaces": "",
- "description": "Step a scene node iterator to the next sibling",
+ "description": "set the component property iterator function. Called during inspection",
"parameters": [
{
- "doc": "the iterator",
- "name": "it",
+ "doc": "the type",
+ "name": "type",
"types": [
- "dmGameObject::SceneNodeIterator*"
+ "ComponentType*"
]
- }
- ],
- "returnvalues": [
+ },
{
- "doc": "true if successful. false if the iterator is finished",
- "name": "result",
+ "doc": "",
+ "name": "",
"types": [
- "bool"
+ ""
]
}
],
+ "returnvalues": [],
"notes": [],
- "brief": "Step a scene node iterator to the next sibling",
+ "brief": "set the component property iterator function",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "TraverseIterateNext"
+ "name": "ComponentTypeSetPropertyIteratorFn"
},
{
"replaces": "",
- "description": "scene node property types",
+ "description": "Context used when registering a new component type",
"parameters": [],
"returnvalues": [],
"notes": [],
- "brief": "scene node property types",
+ "brief": "Context used when registering a new component type",
"examples": "",
"members": [
{
- "doc": "",
- "type": "",
- "name": "dmGameObject::SCENE_NODE_PROPERTY_TYPE_NUMBER"
- },
- {
- "doc": "",
- "type": "",
- "name": "dmGameObject::SCENE_NODE_PROPERTY_TYPE_HASH"
- },
- {
- "doc": "",
- "type": "",
- "name": "dmGameObject::SCENE_NODE_PROPERTY_TYPE_URL"
- },
- {
- "doc": "",
- "type": "",
- "name": "dmGameObject::SCENE_NODE_PROPERTY_TYPE_VECTOR3"
- },
- {
- "doc": "",
- "type": "",
- "name": "dmGameObject::SCENE_NODE_PROPERTY_TYPE_VECTOR4"
+ "doc": "The config file",
+ "type": "dmConfigFile::HConfig",
+ "name": "m_Config"
},
{
- "doc": "",
- "type": "",
- "name": "dmGameObject::SCENE_NODE_PROPERTY_TYPE_QUAT"
+ "doc": "The resource factory",
+ "type": "dmResource::HFactory",
+ "name": "m_Factory"
},
{
- "doc": "",
- "type": "",
- "name": "dmGameObject::SCENE_NODE_PROPERTY_TYPE_BOOLEAN"
+ "doc": "The game object registry",
+ "type": "dmGameObject::HRegister",
+ "name": "m_Register"
},
{
- "doc": "",
- "type": "",
- "name": "dmGameObject::SCENE_NODE_PROPERTY_TYPE_TEXT"
+ "doc": "The shared script context",
+ "type": "dmScript::HContext",
+ "name": "m_Script"
},
{
- "doc": "",
- "type": "",
- "name": "dmGameObject::SCENE_NODE_PROPERTY_TYPE_COUNT"
+ "doc": "Mappings between names and contextx",
+ "type": "dmHashTable64",
+ "name": "m_Contextx"
}
],
"error": "",
"tparams": [],
- "type": "ENUM",
- "name": "SceneNodePropertyType"
+ "type": "STRUCT",
+ "name": "ComponentTypeCreateCtx"
},
{
"replaces": "",
- "description": "Struct that holds info about the current position when traversing the scene",
- "parameters": [],
- "returnvalues": [],
- "notes": [],
- "brief": "scene traversal node property",
- "examples": "",
- "members": [
+ "description": "Get component user data from a url.\nThe object referenced by the url must be in the same collection as the caller.",
+ "parameters": [
{
- "doc": "name",
- "type": "dmhash_t",
- "name": "m_NameHash"
+ "doc": "Lua state",
+ "name": "L",
+ "types": [
+ "lua_State*"
+ ]
},
{
- "doc": "type",
- "type": "dmGameObject::SceneNodePropertyType",
- "name": "m_Type"
+ "doc": "index to argument (a url)",
+ "name": "index",
+ "types": [
+ "lua_State*"
+ ]
},
{
- "doc": "value\n\nm_Number
\n- double floating point number
\nm_Hash
\n- dmhash_t The hashed value.
\nm_URL
\n- char[1024] The text representation of the url (if reverse hashes are enabled)
\nm_V4
\n- float[4] Used for Vector3, Vector4 and Quat
\nm_Bool
\n- bool A boolean value
\nm_Text
\n- const char* Text from a text property
\n
",
- "type": "union",
- "name": "m_Value"
- }
- ],
- "error": "",
- "tparams": [],
- "type": "STRUCT",
- "name": "SceneNodeProperty"
- },
- {
- "replaces": "",
- "description": "Holds the property",
- "parameters": [],
- "returnvalues": [],
- "notes": [],
- "brief": "scene traversal node property",
- "examples": "",
- "members": [
- {
- "doc": "property",
- "type": "dmGameObject::SceneNodeProperty",
- "name": "m_Property"
- }
- ],
- "error": "",
- "tparams": [],
- "type": "STRUCT",
- "name": "SceneNodePropertyIterator"
- },
- {
- "replaces": "",
- "description": "Create a scene node traversal property iterator",
- "parameters": [
- {
- "doc": "the node to inspect",
- "name": "node",
+ "doc": "the call will fail if the found component does not have the specified extension",
+ "name": "component_type",
"types": [
- "dmGameObject::SceneNode*"
+ "const char*"
]
- }
- ],
- "returnvalues": [
+ },
{
- "doc": "the property iterator",
- "name": "iterator",
+ "doc": "The world associated owning the component. May be 0",
+ "name": "world",
"types": [
- "dmGameObject::SceneNodePropertyIterator"
+ "void**"
]
- }
- ],
- "notes": [],
- "brief": "Create a scene node traversal property iterator",
- "examples": "The following examples show how to iterate over the properties of a node\ndmGameObject::SceneNodePropertyIterator pit = TraverseIterateProperties(node);\nwhile(dmGameObject::TraverseIteratePropertiesNext(&pit))\n{\n const char* name = dmHashReverseSafe64(pit.m_Property.m_NameHash);\n switch(pit.m_Property.m_Type)\n {\n case dmGameObject::SCENE_NODE_PROPERTY_TYPE_NUMBER: ...\n ...\n }\n}\n
",
- "members": [],
- "error": "",
- "tparams": [],
- "type": "FUNCTION",
- "name": "TraverseIterateProperties"
- },
- {
- "replaces": "",
- "description": "Steps the scene node traversal property iterator to the next property",
- "parameters": [
+ },
{
- "doc": "the iterator",
- "name": "it",
+ "doc": "The component data associated with the url. May be 0",
+ "name": "component",
"types": [
- "dmGameObject::SceneNodePropertyIterator*"
+ "void**"
]
- }
- ],
- "returnvalues": [
+ },
{
- "doc": "True if the iterator it valid, false if the iterator is finished.",
- "name": "finished",
+ "doc": "The resolved url. May be 0",
+ "name": "url",
"types": [
- "bool"
+ "dmMessage::URL*"
]
}
],
+ "returnvalues": [],
"notes": [],
- "brief": "Steps the scene node traversal property iterator t...",
+ "brief": "Get component user data from a url",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "TraverseIteratePropertiesNext"
+ "name": "GetComponentFromLua"
}
]
}
\ No newline at end of file
diff --git a/DefoldDocs/doc/dmGraphics_doc.json b/DefoldDocs/doc/dmGraphics_doc.json
index d9b7bca..85ca40c 100644
--- a/DefoldDocs/doc/dmGraphics_doc.json
+++ b/DefoldDocs/doc/dmGraphics_doc.json
@@ -1,343 +1,14 @@
{
"info": {
- "description": "<dmsdk/graphics/graphics.h>\nGraphics API",
+ "group": "DEFOLD SDK",
+ "description": "Platform specific native graphics functions.",
"namespace": "dmGraphics",
- "brief": "Graphics API documentation",
- "file": "",
- "path": "",
+ "brief": "SDK Graphics API documentation",
+ "file": "dmsdk/graphics/graphics_native.h",
+ "path": "engine/dlib/src/dmsdk/graphics/graphics_native.h",
"name": "Graphics"
},
"elements": [
- {
- "replaces": "",
- "description": "Get iOS UIWindow native handle (id). Any other platform return zero.",
- "parameters": [],
- "returnvalues": [
- {
- "doc": "native handle",
- "name": "id",
- "types": [
- "id"
- ]
- }
- ],
- "notes": [],
- "brief": "get iOS UIWindow",
- "examples": "",
- "members": [],
- "error": "",
- "tparams": [],
- "type": "FUNCTION",
- "name": "dmGraphics::GetNativeiOSUIWindow"
- },
- {
- "replaces": "",
- "description": "Get iOS UIView native handle (id). Any other platform return zero.",
- "parameters": [],
- "returnvalues": [
- {
- "doc": "native handle",
- "name": "id",
- "types": [
- "id"
- ]
- }
- ],
- "notes": [],
- "brief": "get iOS UIView",
- "examples": "",
- "members": [],
- "error": "",
- "tparams": [],
- "type": "FUNCTION",
- "name": "dmGraphics::GetNativeiOSUIView"
- },
- {
- "replaces": "",
- "description": "Get iOS EAGLContext native handle (id). Any other platform return zero.",
- "parameters": [],
- "returnvalues": [
- {
- "doc": "native handle",
- "name": "id",
- "types": [
- "id"
- ]
- }
- ],
- "notes": [],
- "brief": "get iOS EAGLContext",
- "examples": "",
- "members": [],
- "error": "",
- "tparams": [],
- "type": "FUNCTION",
- "name": "dmGraphics::GetNativeiOSEAGLContext"
- },
- {
- "replaces": "",
- "description": "Get OSX NSWindow native handle (id). Any other platform return zero.",
- "parameters": [],
- "returnvalues": [
- {
- "doc": "native handle",
- "name": "id",
- "types": [
- "id"
- ]
- }
- ],
- "notes": [],
- "brief": "get OSX NSWindow",
- "examples": "",
- "members": [],
- "error": "",
- "tparams": [],
- "type": "FUNCTION",
- "name": "dmGraphics::GetNativeOSXNSWindow"
- },
- {
- "replaces": "",
- "description": "Get OSX NSView native handle (id). Any other platform return zero.",
- "parameters": [],
- "returnvalues": [
- {
- "doc": "native handle",
- "name": "id",
- "types": [
- "id"
- ]
- }
- ],
- "notes": [],
- "brief": "get OSX NSView",
- "examples": "",
- "members": [],
- "error": "",
- "tparams": [],
- "type": "FUNCTION",
- "name": "dmGraphics::GetNativeOSXNSView"
- },
- {
- "replaces": "",
- "description": "Get OSX NSOpenGLContext native handle (id). Any other platform return zero.",
- "parameters": [],
- "returnvalues": [
- {
- "doc": "native handle",
- "name": "id",
- "types": [
- "id"
- ]
- }
- ],
- "notes": [],
- "brief": "get OSX NSOpenGLContext",
- "examples": "",
- "members": [],
- "error": "",
- "tparams": [],
- "type": "FUNCTION",
- "name": "dmGraphics::GetNativeOSXNSOpenGLContext"
- },
- {
- "replaces": "",
- "description": "Get Win32 windows native handle (HWND). Any other platform return zero.",
- "parameters": [],
- "returnvalues": [
- {
- "doc": "native handle",
- "name": "HWND",
- "types": [
- "HWND"
- ]
- }
- ],
- "notes": [],
- "brief": "get Win32 HWND",
- "examples": "",
- "members": [],
- "error": "",
- "tparams": [],
- "type": "FUNCTION",
- "name": "dmGraphics::GetNativeWindowsHWND"
- },
- {
- "replaces": "",
- "description": "Get Win32 gl rendercontext native handle (HGLRC). Any other platform return zero.",
- "parameters": [],
- "returnvalues": [
- {
- "doc": "native handle",
- "name": "HGLRC",
- "types": [
- "HGLRC"
- ]
- }
- ],
- "notes": [],
- "brief": "get Win32 HGLRC",
- "examples": "",
- "members": [],
- "error": "",
- "tparams": [],
- "type": "FUNCTION",
- "name": "dmGraphics::GetNativeWindowsHGLRC"
- },
- {
- "replaces": "",
- "description": "Get Android EGLContext native handle (EGLContext). Any other platform return zero.",
- "parameters": [],
- "returnvalues": [
- {
- "doc": "native handle",
- "name": "EGLContext",
- "types": [
- "EGLContext"
- ]
- }
- ],
- "notes": [],
- "brief": "get Android EGLContext",
- "examples": "",
- "members": [],
- "error": "",
- "tparams": [],
- "type": "FUNCTION",
- "name": "dmGraphics::GetNativeAndroidEGLContext"
- },
- {
- "replaces": "",
- "description": "Get Android EGLSurface native handle (EGLSurface). Any other platform return zero.",
- "parameters": [],
- "returnvalues": [
- {
- "doc": "native handle",
- "name": "EGLSurface",
- "types": [
- "EGLSurface"
- ]
- }
- ],
- "notes": [],
- "brief": "get Android EGLSurface",
- "examples": "",
- "members": [],
- "error": "",
- "tparams": [],
- "type": "FUNCTION",
- "name": "dmGraphics::GetNativeAndroidEGLSurface"
- },
- {
- "replaces": "",
- "description": "Get Android JavaVM ptr. Any other platform return zero.",
- "parameters": [],
- "returnvalues": [
- {
- "doc": "native handle",
- "name": "JavaVM*",
- "types": [
- "JavaVM*"
- ]
- }
- ],
- "notes": [],
- "brief": "get Android native JavaVM",
- "examples": "",
- "members": [],
- "error": "",
- "tparams": [],
- "type": "FUNCTION",
- "name": "dmGraphics::GetNativeAndroidJavaVM"
- },
- {
- "replaces": "",
- "description": "Get Android native jobject. Any other platform return zero.",
- "parameters": [],
- "returnvalues": [
- {
- "doc": "native handle",
- "name": "jobject",
- "types": [
- "jobject"
- ]
- }
- ],
- "notes": [],
- "brief": "get Android native jobject",
- "examples": "",
- "members": [],
- "error": "",
- "tparams": [],
- "type": "FUNCTION",
- "name": "dmGraphics::GetNativeAndroidActivity"
- },
- {
- "replaces": "",
- "description": "Get Android app object. Any other platform return zero.",
- "parameters": [],
- "returnvalues": [
- {
- "doc": "native handle",
- "name": "app",
- "types": [
- "struct android_app*"
- ]
- }
- ],
- "notes": [],
- "brief": "get Android app object",
- "examples": "",
- "members": [],
- "error": "",
- "tparams": [],
- "type": "FUNCTION",
- "name": "dmGraphics::GetNativeAndroidApp"
- },
- {
- "replaces": "",
- "description": "Get Linux X11Window windows native handle (Window). Any other platform return zero.",
- "parameters": [],
- "returnvalues": [
- {
- "doc": "native handle",
- "name": "Window",
- "types": [
- "Window"
- ]
- }
- ],
- "notes": [],
- "brief": "get Linux X11Window",
- "examples": "",
- "members": [],
- "error": "",
- "tparams": [],
- "type": "FUNCTION",
- "name": "dmGraphics::GetNativeX11Window"
- },
- {
- "replaces": "",
- "description": "Get Linux X11GLXContext native handle (GLXContext). Any other platform return zero.",
- "parameters": [],
- "returnvalues": [
- {
- "doc": "native handle",
- "name": "GLXContext",
- "types": [
- "GLXContext"
- ]
- }
- ],
- "notes": [],
- "brief": "get Linux X11GLXContext",
- "examples": "",
- "members": [],
- "error": "",
- "tparams": [],
- "type": "FUNCTION",
- "name": "dmGraphics::GetNativeX11GLXContext"
- },
{
"replaces": "",
"description": "Context handle",
@@ -505,6 +176,31 @@
"type": "ENUM",
"name": "CompareFunc"
},
+ {
+ "replaces": "",
+ "description": "",
+ "parameters": [],
+ "returnvalues": [],
+ "notes": [],
+ "brief": "",
+ "examples": "",
+ "members": [
+ {
+ "doc": "",
+ "type": "",
+ "name": "FACE_WINDING_CCW"
+ },
+ {
+ "doc": "",
+ "type": "",
+ "name": "FACE_WINDING_CW"
+ }
+ ],
+ "error": "",
+ "tparams": [],
+ "type": "ENUM",
+ "name": "FaceWinding"
+ },
{
"replaces": "",
"description": "",
@@ -931,70 +627,259 @@
]
},
{
- "doc": "the array of vertex elements",
- "name": "element",
+ "doc": "the array of vertex elements",
+ "name": "element",
+ "types": [
+ "dmGraphics::VertexElement*"
+ ]
+ },
+ {
+ "doc": "the number of items in the element array",
+ "name": "count",
+ "types": [
+ "uint32_t"
+ ]
+ },
+ {
+ "doc": "the stride between the start of each vertex (in bytes)",
+ "name": "stride",
+ "types": [
+ "uint32_t"
+ ]
+ }
+ ],
+ "returnvalues": [
+ {
+ "doc": "the vertex declaration",
+ "name": "declaration",
+ "types": [
+ "dmGraphics::HVertexDeclaration"
+ ]
+ }
+ ],
+ "notes": [],
+ "brief": "Create new vertex declaration",
+ "examples": "",
+ "members": [],
+ "error": "",
+ "tparams": [],
+ "type": "FUNCTION",
+ "name": "NewVertexDeclaration"
+ },
+ {
+ "replaces": "",
+ "description": "Delete vertex declaration",
+ "parameters": [
+ {
+ "doc": "the vertex declaration",
+ "name": "vertex_declaration",
+ "types": [
+ "dmGraphics::HVertexDeclaration"
+ ]
+ }
+ ],
+ "returnvalues": [],
+ "notes": [],
+ "brief": "Delete vertex declaration",
+ "examples": "",
+ "members": [],
+ "error": "",
+ "tparams": [],
+ "type": "FUNCTION",
+ "name": "DeleteVertexDeclaration"
+ },
+ {
+ "replaces": "",
+ "description": "Create new vertex buffer with initial data",
+ "parameters": [
+ {
+ "doc": "the context",
+ "name": "context",
+ "types": [
+ "dmGraphics::HContext"
+ ]
+ },
+ {
+ "doc": "the size of the buffer (in bytes). May be 0",
+ "name": "size",
+ "types": [
+ "uint32_t"
+ ]
+ },
+ {
+ "doc": "the data",
+ "name": "data",
+ "types": [
+ "void*"
+ ]
+ },
+ {
+ "doc": "the usage",
+ "name": "buffer_usage",
+ "types": [
+ "dmGraphics::BufferUsage"
+ ]
+ }
+ ],
+ "returnvalues": [
+ {
+ "doc": "the vertex buffer",
+ "name": "buffer",
+ "types": [
+ "dmGraphics::HVertexBuffer"
+ ]
+ }
+ ],
+ "notes": [],
+ "brief": "Create new vertex buffer with initial data",
+ "examples": "",
+ "members": [],
+ "error": "",
+ "tparams": [],
+ "type": "FUNCTION",
+ "name": "NewVertexBuffer"
+ },
+ {
+ "replaces": "",
+ "description": "Delete vertex buffer",
+ "parameters": [
+ {
+ "doc": "the buffer",
+ "name": "buffer",
+ "types": [
+ "dmGraphics::HVertexBuffer"
+ ]
+ }
+ ],
+ "returnvalues": [],
+ "notes": [],
+ "brief": "Delete vertex buffer",
+ "examples": "",
+ "members": [],
+ "error": "",
+ "tparams": [],
+ "type": "FUNCTION",
+ "name": "DeleteVertexBuffer"
+ },
+ {
+ "replaces": "",
+ "description": "Set vertex buffer data",
+ "parameters": [
+ {
+ "doc": "the buffer",
+ "name": "buffer",
+ "types": [
+ "dmGraphics::HVertexBuffer"
+ ]
+ },
+ {
+ "doc": "the size of the buffer (in bytes). May be 0",
+ "name": "size",
+ "types": [
+ "uint32_t"
+ ]
+ },
+ {
+ "doc": "the data",
+ "name": "data",
+ "types": [
+ "void*"
+ ]
+ },
+ {
+ "doc": "the usage",
+ "name": "buffer_usage",
+ "types": [
+ "dmGraphics::BufferUsage"
+ ]
+ }
+ ],
+ "returnvalues": [],
+ "notes": [],
+ "brief": "Set vertex buffer data",
+ "examples": "",
+ "members": [],
+ "error": "",
+ "tparams": [],
+ "type": "FUNCTION",
+ "name": "SetVertexBufferData"
+ },
+ {
+ "replaces": "",
+ "description": "Set subset of vertex buffer data",
+ "parameters": [
+ {
+ "doc": "the buffer",
+ "name": "buffer",
"types": [
- "dmGraphics::VertexElement*"
+ "dmGraphics::HVertexBuffer"
]
},
{
- "doc": "the number of items in the element array",
- "name": "count",
+ "doc": "the offset into the desination buffer (in bytes)",
+ "name": "offset",
"types": [
"uint32_t"
]
},
{
- "doc": "the stride between the start of each vertex (in bytes)",
- "name": "stride",
+ "doc": "the size of the buffer (in bytes). May be 0",
+ "name": "size",
"types": [
"uint32_t"
]
- }
- ],
- "returnvalues": [
+ },
{
- "doc": "the vertex declaration",
- "name": "declaration",
+ "doc": "the data",
+ "name": "data",
"types": [
- "dmGraphics::HVertexDeclaration"
+ "void*"
]
}
],
+ "returnvalues": [],
"notes": [],
- "brief": "Create new vertex declaration",
+ "brief": "Set subset of vertex buffer data",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "NewVertexDeclaration"
+ "name": "SetVertexBufferSubData"
},
{
"replaces": "",
- "description": "Delete vertex declaration",
+ "description": "Get the max number of vertices allowed by the system in a vertex buffer",
"parameters": [
{
- "doc": "the vertex declaration",
- "name": "vertex_declaration",
+ "doc": "the context",
+ "name": "context",
"types": [
- "dmGraphics::HVertexDeclaration"
+ "dmGraphics::HContext"
+ ]
+ }
+ ],
+ "returnvalues": [
+ {
+ "doc": "the count",
+ "name": "count",
+ "types": [
+ "uint32_t"
]
}
],
- "returnvalues": [],
"notes": [],
- "brief": "Delete vertex declaration",
+ "brief": "Get the max number of vertices allowed by the syst...",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "DeleteVertexDeclaration"
+ "name": "GetMaxElementsVertices"
},
{
"replaces": "",
- "description": "Create new vertex buffer with initial data",
+ "description": "Create new index buffer with initial data",
"parameters": [
{
"doc": "the context",
@@ -1027,53 +912,53 @@
],
"returnvalues": [
{
- "doc": "the vertex buffer",
+ "doc": "the index buffer",
"name": "buffer",
"types": [
- "dmGraphics::HVertexBuffer"
+ "dmGraphics::HIndexBuffer"
]
}
],
"notes": [],
- "brief": "Create new vertex buffer with initial data",
+ "brief": "Create new index buffer with initial data",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "NewVertexBuffer"
+ "name": "NewIndexBuffer"
},
{
"replaces": "",
- "description": "Delete vertex buffer",
+ "description": "Delete the index buffer",
"parameters": [
{
- "doc": "the buffer",
+ "doc": "the index buffer",
"name": "buffer",
"types": [
- "dmGraphics::HVertexBuffer"
+ "dmGraphics::HIndexBuffer"
]
}
],
"returnvalues": [],
"notes": [],
- "brief": "Delete vertex buffer",
+ "brief": "Delete the index buffer",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "DeleteVertexBuffer"
+ "name": "DeleteIndexBuffer"
},
{
"replaces": "",
- "description": "Set vertex buffer data",
+ "description": "Set index buffer data",
"parameters": [
{
"doc": "the buffer",
"name": "buffer",
"types": [
- "dmGraphics::HVertexBuffer"
+ "dmGraphics::HIndexBuffer"
]
},
{
@@ -1100,17 +985,17 @@
],
"returnvalues": [],
"notes": [],
- "brief": "Set vertex buffer data",
+ "brief": "Set index buffer data",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "SetVertexBufferData"
+ "name": "SetIndexBufferData"
},
{
"replaces": "",
- "description": "Set subset of vertex buffer data",
+ "description": "Set subset of index buffer data",
"parameters": [
{
"doc": "the buffer",
@@ -1134,277 +1019,418 @@
]
},
{
- "doc": "the data",
- "name": "data",
+ "doc": "the data",
+ "name": "data",
+ "types": [
+ "void*"
+ ]
+ }
+ ],
+ "returnvalues": [],
+ "notes": [],
+ "brief": "Set subset of index buffer data",
+ "examples": "",
+ "members": [],
+ "error": "",
+ "tparams": [],
+ "type": "FUNCTION",
+ "name": "SetIndexBufferSubData"
+ },
+ {
+ "replaces": "",
+ "description": "Check if the index format is supported",
+ "parameters": [
+ {
+ "doc": "the context",
+ "name": "context",
+ "types": [
+ "dmGraphics::HContext"
+ ]
+ },
+ {
+ "doc": "the format",
+ "name": "format",
+ "types": [
+ "dmGraphics::IndexBufferFormat"
+ ]
+ },
+ {
+ "doc": "true if the format is supoprted",
+ "name": "result",
+ "types": [
+ "bool"
+ ]
+ }
+ ],
+ "returnvalues": [],
+ "notes": [],
+ "brief": "Check if the index format is supported",
+ "examples": "",
+ "members": [],
+ "error": "",
+ "tparams": [],
+ "type": "FUNCTION",
+ "name": "IsIndexBufferFormatSupported"
+ },
+ {
+ "replaces": "",
+ "description": "Get the max number of indices allowed by the system in an index buffer",
+ "parameters": [
+ {
+ "doc": "the context",
+ "name": "context",
+ "types": [
+ "dmGraphics::HContext"
+ ]
+ }
+ ],
+ "returnvalues": [
+ {
+ "doc": "the count",
+ "name": "count",
+ "types": [
+ "uint32_t"
+ ]
+ }
+ ],
+ "notes": [],
+ "brief": "Get the max number of indices allowed by the syste...",
+ "examples": "",
+ "members": [],
+ "error": "",
+ "tparams": [],
+ "type": "FUNCTION",
+ "name": "GetMaxElementsIndices"
+ },
+ {
+ "replaces": "",
+ "description": "Get iOS UIWindow native handle (id). Any other platform return zero.",
+ "parameters": [],
+ "returnvalues": [
+ {
+ "doc": "native handle",
+ "name": "id",
+ "types": [
+ "id"
+ ]
+ }
+ ],
+ "notes": [],
+ "brief": "get iOS UIWindow",
+ "examples": "",
+ "members": [],
+ "error": "",
+ "tparams": [],
+ "type": "FUNCTION",
+ "name": "dmGraphics::GetNativeiOSUIWindow"
+ },
+ {
+ "replaces": "",
+ "description": "Get iOS UIView native handle (id). Any other platform return zero.",
+ "parameters": [],
+ "returnvalues": [
+ {
+ "doc": "native handle",
+ "name": "id",
+ "types": [
+ "id"
+ ]
+ }
+ ],
+ "notes": [],
+ "brief": "get iOS UIView",
+ "examples": "",
+ "members": [],
+ "error": "",
+ "tparams": [],
+ "type": "FUNCTION",
+ "name": "dmGraphics::GetNativeiOSUIView"
+ },
+ {
+ "replaces": "",
+ "description": "Get iOS EAGLContext native handle (id). Any other platform return zero.",
+ "parameters": [],
+ "returnvalues": [
+ {
+ "doc": "native handle",
+ "name": "id",
+ "types": [
+ "id"
+ ]
+ }
+ ],
+ "notes": [],
+ "brief": "get iOS EAGLContext",
+ "examples": "",
+ "members": [],
+ "error": "",
+ "tparams": [],
+ "type": "FUNCTION",
+ "name": "dmGraphics::GetNativeiOSEAGLContext"
+ },
+ {
+ "replaces": "",
+ "description": "Get OSX NSWindow native handle (id). Any other platform return zero.",
+ "parameters": [],
+ "returnvalues": [
+ {
+ "doc": "native handle",
+ "name": "id",
+ "types": [
+ "id"
+ ]
+ }
+ ],
+ "notes": [],
+ "brief": "get OSX NSWindow",
+ "examples": "",
+ "members": [],
+ "error": "",
+ "tparams": [],
+ "type": "FUNCTION",
+ "name": "dmGraphics::GetNativeOSXNSWindow"
+ },
+ {
+ "replaces": "",
+ "description": "Get OSX NSView native handle (id). Any other platform return zero.",
+ "parameters": [],
+ "returnvalues": [
+ {
+ "doc": "native handle",
+ "name": "id",
"types": [
- "void*"
+ "id"
]
}
],
- "returnvalues": [],
"notes": [],
- "brief": "Set subset of vertex buffer data",
+ "brief": "get OSX NSView",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "SetVertexBufferSubData"
+ "name": "dmGraphics::GetNativeOSXNSView"
},
{
"replaces": "",
- "description": "Get the max number of vertices allowed by the system in a vertex buffer",
- "parameters": [
+ "description": "Get OSX NSOpenGLContext native handle (id). Any other platform return zero.",
+ "parameters": [],
+ "returnvalues": [
{
- "doc": "the context",
- "name": "context",
+ "doc": "native handle",
+ "name": "id",
"types": [
- "dmGraphics::HContext"
+ "id"
]
}
],
+ "notes": [],
+ "brief": "get OSX NSOpenGLContext",
+ "examples": "",
+ "members": [],
+ "error": "",
+ "tparams": [],
+ "type": "FUNCTION",
+ "name": "dmGraphics::GetNativeOSXNSOpenGLContext"
+ },
+ {
+ "replaces": "",
+ "description": "Get Win32 windows native handle (HWND). Any other platform return zero.",
+ "parameters": [],
"returnvalues": [
{
- "doc": "the count",
- "name": "count",
+ "doc": "native handle",
+ "name": "HWND",
"types": [
- "uint32_t"
+ "HWND"
]
}
],
"notes": [],
- "brief": "Get the max number of vertices allowed by the syst...",
+ "brief": "get Win32 HWND",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "GetMaxElementsVertices"
+ "name": "dmGraphics::GetNativeWindowsHWND"
},
{
"replaces": "",
- "description": "Create new index buffer with initial data",
- "parameters": [
- {
- "doc": "the context",
- "name": "context",
- "types": [
- "dmGraphics::HContext"
- ]
- },
- {
- "doc": "the size of the buffer (in bytes). May be 0",
- "name": "size",
- "types": [
- "uint32_t"
- ]
- },
- {
- "doc": "the data",
- "name": "data",
- "types": [
- "void*"
- ]
- },
+ "description": "Get Win32 gl rendercontext native handle (HGLRC). Any other platform return zero.",
+ "parameters": [],
+ "returnvalues": [
{
- "doc": "the usage",
- "name": "buffer_usage",
+ "doc": "native handle",
+ "name": "HGLRC",
"types": [
- "dmGraphics::BufferUsage"
+ "HGLRC"
]
}
],
+ "notes": [],
+ "brief": "get Win32 HGLRC",
+ "examples": "",
+ "members": [],
+ "error": "",
+ "tparams": [],
+ "type": "FUNCTION",
+ "name": "dmGraphics::GetNativeWindowsHGLRC"
+ },
+ {
+ "replaces": "",
+ "description": "Get Android EGLContext native handle (EGLContext). Any other platform return zero.",
+ "parameters": [],
"returnvalues": [
{
- "doc": "the index buffer",
- "name": "buffer",
+ "doc": "native handle",
+ "name": "EGLContext",
"types": [
- "dmGraphics::HIndexBuffer"
+ "EGLContext"
]
}
],
"notes": [],
- "brief": "Create new index buffer with initial data",
+ "brief": "get Android EGLContext",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "NewIndexBuffer"
+ "name": "dmGraphics::GetNativeAndroidEGLContext"
},
{
"replaces": "",
- "description": "Delete the index buffer",
- "parameters": [
+ "description": "Get Android EGLSurface native handle (EGLSurface). Any other platform return zero.",
+ "parameters": [],
+ "returnvalues": [
{
- "doc": "the index buffer",
- "name": "buffer",
+ "doc": "native handle",
+ "name": "EGLSurface",
"types": [
- "dmGraphics::HIndexBuffer"
+ "EGLSurface"
]
}
],
- "returnvalues": [],
"notes": [],
- "brief": "Delete the index buffer",
+ "brief": "get Android EGLSurface",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "DeleteIndexBuffer"
+ "name": "dmGraphics::GetNativeAndroidEGLSurface"
},
{
"replaces": "",
- "description": "Set index buffer data",
- "parameters": [
- {
- "doc": "the buffer",
- "name": "buffer",
- "types": [
- "dmGraphics::HIndexBuffer"
- ]
- },
- {
- "doc": "the size of the buffer (in bytes). May be 0",
- "name": "size",
- "types": [
- "uint32_t"
- ]
- },
- {
- "doc": "the data",
- "name": "data",
- "types": [
- "void*"
- ]
- },
+ "description": "Get Android JavaVM ptr. Any other platform return zero.",
+ "parameters": [],
+ "returnvalues": [
{
- "doc": "the usage",
- "name": "buffer_usage",
+ "doc": "native handle",
+ "name": "JavaVM*",
"types": [
- "dmGraphics::BufferUsage"
+ "JavaVM*"
]
}
],
- "returnvalues": [],
"notes": [],
- "brief": "Set index buffer data",
+ "brief": "get Android native JavaVM",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "SetIndexBufferData"
+ "name": "dmGraphics::GetNativeAndroidJavaVM"
},
{
"replaces": "",
- "description": "Set subset of index buffer data",
- "parameters": [
- {
- "doc": "the buffer",
- "name": "buffer",
- "types": [
- "dmGraphics::HVertexBuffer"
- ]
- },
- {
- "doc": "the offset into the desination buffer (in bytes)",
- "name": "offset",
- "types": [
- "uint32_t"
- ]
- },
- {
- "doc": "the size of the buffer (in bytes). May be 0",
- "name": "size",
- "types": [
- "uint32_t"
- ]
- },
+ "description": "Get Android native jobject. Any other platform return zero.",
+ "parameters": [],
+ "returnvalues": [
{
- "doc": "the data",
- "name": "data",
+ "doc": "native handle",
+ "name": "jobject",
"types": [
- "void*"
+ "jobject"
]
}
],
- "returnvalues": [],
"notes": [],
- "brief": "Set subset of index buffer data",
+ "brief": "get Android native jobject",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "SetIndexBufferSubData"
+ "name": "dmGraphics::GetNativeAndroidActivity"
},
{
"replaces": "",
- "description": "Check if the index format is supported",
- "parameters": [
- {
- "doc": "the context",
- "name": "context",
- "types": [
- "dmGraphics::HContext"
- ]
- },
- {
- "doc": "the format",
- "name": "format",
- "types": [
- "dmGraphics::IndexBufferFormat"
- ]
- },
+ "description": "Get Android app object. Any other platform return zero.",
+ "parameters": [],
+ "returnvalues": [
{
- "doc": "true if the format is supoprted",
- "name": "result",
+ "doc": "native handle",
+ "name": "app",
"types": [
- "bool"
+ "struct android_app*"
]
}
],
- "returnvalues": [],
"notes": [],
- "brief": "Check if the index format is supported",
+ "brief": "get Android app object",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "IsIndexBufferFormatSupported"
+ "name": "dmGraphics::GetNativeAndroidApp"
},
{
"replaces": "",
- "description": "Get the max number of indices allowed by the system in an index buffer",
- "parameters": [
+ "description": "Get Linux X11Window windows native handle (Window). Any other platform return zero.",
+ "parameters": [],
+ "returnvalues": [
{
- "doc": "the context",
- "name": "context",
+ "doc": "native handle",
+ "name": "Window",
"types": [
- "dmGraphics::HContext"
+ "Window"
]
}
],
+ "notes": [],
+ "brief": "get Linux X11Window",
+ "examples": "",
+ "members": [],
+ "error": "",
+ "tparams": [],
+ "type": "FUNCTION",
+ "name": "dmGraphics::GetNativeX11Window"
+ },
+ {
+ "replaces": "",
+ "description": "Get Linux X11GLXContext native handle (GLXContext). Any other platform return zero.",
+ "parameters": [],
"returnvalues": [
{
- "doc": "the count",
- "name": "count",
+ "doc": "native handle",
+ "name": "GLXContext",
"types": [
- "uint32_t"
+ "GLXContext"
]
}
],
"notes": [],
- "brief": "Get the max number of indices allowed by the syste...",
+ "brief": "get Linux X11GLXContext",
"examples": "",
"members": [],
"error": "",
"tparams": [],
"type": "FUNCTION",
- "name": "GetMaxElementsIndices"
+ "name": "dmGraphics::GetNativeX11GLXContext"
}
]
}
\ No newline at end of file
diff --git a/DefoldDocs/doc/gui_doc.json b/DefoldDocs/doc/gui_doc.json
index ecda271..977494a 100644
--- a/DefoldDocs/doc/gui_doc.json
+++ b/DefoldDocs/doc/gui_doc.json
@@ -1,7 +1,7 @@
{
"info": {
"group": "SYSTEM",
- "description": "GUI core hooks, functions, messages, properties and constants for\ncreation and manipulation of GUI nodes. The \"gui\" namespace is\naccessible only from gui scripts.",
+ "description": "GUI API documentation",
"namespace": "gui",
"brief": "GUI API documentation",
"file": "",
@@ -9,35 +9,6 @@
"name": "GUI"
},
"elements": [
- {
- "replaces": "",
- "description": "This message is broadcast to every GUI component when a layout change has been initiated\non device.",
- "parameters": [
- {
- "doc": "the id of the layout the engine is changing to",
- "name": "id",
- "types": [
- "hash"
- ]
- },
- {
- "doc": "the id of the layout the engine is changing from",
- "name": "previous_id",
- "types": [
- "hash"
- ]
- }
- ],
- "returnvalues": [],
- "notes": [],
- "brief": "reports a layout change",
- "examples": "function on_message(self, message_id, message, sender)\n if message_id == hash("layout_changed") and message.id == hash("Landscape") then\n -- switching layout to "Landscape"...\n ...\n end\nend\n
",
- "members": [],
- "error": "",
- "tparams": [],
- "type": "MESSAGE",
- "name": "layout_changed"
- },
{
"replaces": "",
"description": "The material used when rendering the gui. The type of the property is hash.",
@@ -145,7 +116,7 @@
},
{
"replaces": "",
- "description": "Retrieve the index of the specified node.\nThe index defines the order in which a node appear in a GUI scene.\nHigher index means the node is drawn on top of lower indexed nodes.",
+ "description": "Retrieve the index of the specified node among its siblings.\nThe index defines the order in which a node appear in a GUI scene.\nHigher index means the node is drawn on top of lower indexed nodes.",
"parameters": [
{
"doc": "the node to retrieve the id from",
@@ -166,7 +137,7 @@
],
"notes": [],
"brief": "gets the index of the specified node",
- "examples": "Compare the index order of two nodes:\nlocal node1 = gui.get_node("my_node_1")\nlocal node2 = gui.get_node("my_node_2")\n\nif gui.get_index(node1) < gui.get_index(node2) then\n -- node1 is drawn below node2\nelse\n -- node2 is drawn below node1\nend\n
",
+ "examples": "Compare the index order of two sibling nodes:\nlocal node1 = gui.get_node("my_node_1")\nlocal node2 = gui.get_node("my_node_2")\n\nif gui.get_index(node1) < gui.get_index(node2) then\n -- node1 is drawn below node2\nelse\n -- node2 is drawn below node1\nend\n
",
"members": [],
"error": "",
"tparams": [],
@@ -2710,6 +2681,13 @@
"types": [
"node"
]
+ },
+ {
+ "doc": "check hierarchy recursively",
+ "name": "recursive",
+ "types": [
+ "boolean"
+ ]
}
],
"returnvalues": [
@@ -5102,6 +5080,35 @@
"tparams": [],
"type": "FUNCTION",
"name": "on_reload"
+ },
+ {
+ "replaces": "",
+ "description": "This message is broadcast to every GUI component when a layout change has been initiated\non device.",
+ "parameters": [
+ {
+ "doc": "the id of the layout the engine is changing to",
+ "name": "id",
+ "types": [
+ "hash"
+ ]
+ },
+ {
+ "doc": "the id of the layout the engine is changing from",
+ "name": "previous_id",
+ "types": [
+ "hash"
+ ]
+ }
+ ],
+ "returnvalues": [],
+ "notes": [],
+ "brief": "reports a layout change",
+ "examples": "function on_message(self, message_id, message, sender)\n if message_id == hash("layout_changed") and message.id == hash("Landscape") then\n -- switching layout to "Landscape"...\n ...\n end\nend\n
",
+ "members": [],
+ "error": "",
+ "tparams": [],
+ "type": "MESSAGE",
+ "name": "layout_changed"
}
]
}
\ No newline at end of file