Extenting stub functions from API into KRContext
This commit is contained in:
@@ -690,3 +690,58 @@ KRContext::activateStreamerContext()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
KrResult KRContext::findNodeByName(const KrFindNodeByNameInfo* pFindNodeByNameInfo)
|
||||
{
|
||||
return KR_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
KrResult KRContext::findAdjacentNodes(const KrFindAdjacentNodesInfo* pFindAdjacentNodesInfo)
|
||||
{
|
||||
return KR_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
KrResult KRContext::setNodeLocalTransform(const KrSetNodeLocalTransformInfo* pSetNodeLocalTransform)
|
||||
{
|
||||
return KR_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
KrResult KRContext::setNodeWorldTransform(const KrSetNodeWorldTransformInfo* pSetNodeWorldTransform)
|
||||
{
|
||||
return KR_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
KrResult KRContext::deleteNode(const KrDeleteNodeInfo* pDeleteNodeInfo)
|
||||
{
|
||||
return KR_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
KrResult KRContext::deleteNodeChildren(const KrDeleteNodeChildrenInfo* pDeleteNodeChildrenInfo)
|
||||
{
|
||||
return KR_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
KrResult KRContext::appendBeforeNode(const KrAppendBeforeNodeInfo* pAppendBeforeNodeInfo)
|
||||
{
|
||||
return KR_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
KrResult KRContext::appendAfterNode(const KrAppendAfterNodeInfo* pAppendAfterNodeInfo)
|
||||
{
|
||||
return KR_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
KrResult KRContext::appendFirstChildNode(const KrAppendFirstChildNodeInfo* pAppendFirstChildNodeInfo)
|
||||
{
|
||||
return KR_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
KrResult KRContext::appendLastChildNode(const KrAppendLastChildNodeInfo* pAppendLastChildNodeInfo)
|
||||
{
|
||||
return KR_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
KrResult KRContext::updateNode(const KrUpdateNodeInfo* pUpdateNodeInfo)
|
||||
{
|
||||
return KR_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
@@ -48,6 +48,18 @@ public:
|
||||
KrResult saveResource(const KrSaveResourceInfo* saveResourceInfo);
|
||||
|
||||
KrResult createScene(const KrCreateSceneInfo* createSceneInfo);
|
||||
KrResult findNodeByName(const KrFindNodeByNameInfo* pFindNodeByNameInfo);
|
||||
KrResult findAdjacentNodes(const KrFindAdjacentNodesInfo* pFindAdjacentNodesInfo);
|
||||
KrResult setNodeLocalTransform(const KrSetNodeLocalTransformInfo* pSetNodeLocalTransform);
|
||||
KrResult setNodeWorldTransform(const KrSetNodeWorldTransformInfo* pSetNodeWorldTransform);
|
||||
KrResult deleteNode(const KrDeleteNodeInfo* pDeleteNodeInfo);
|
||||
KrResult deleteNodeChildren(const KrDeleteNodeChildrenInfo* pDeleteNodeChildrenInfo);
|
||||
KrResult appendBeforeNode(const KrAppendBeforeNodeInfo* pAppendBeforeNodeInfo);
|
||||
KrResult appendAfterNode(const KrAppendAfterNodeInfo* pAppendAfterNodeInfo);
|
||||
KrResult appendFirstChildNode(const KrAppendFirstChildNodeInfo* pAppendFirstChildNodeInfo);
|
||||
KrResult appendLastChildNode(const KrAppendLastChildNodeInfo* pAppendLastChildNodeInfo);
|
||||
KrResult updateNode(const KrUpdateNodeInfo* pUpdateNodeInfo);
|
||||
|
||||
|
||||
KRResource* loadResource(const std::string &file_name, KRDataBlock *data);
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ KrResult KrFindNodeByName(const KrFindNodeByNameInfo* pFindNodeByNameInfo)
|
||||
if (!sContext) {
|
||||
return KR_ERROR_NOT_INITIALIZED;
|
||||
}
|
||||
return KR_ERROR_NOT_IMPLEMENTED;
|
||||
return sContext->findNodeByName(pFindNodeByNameInfo);
|
||||
}
|
||||
|
||||
KrResult KrFindAdjacentNodes(const KrFindAdjacentNodesInfo* pFindAdjacentNodesInfo)
|
||||
@@ -116,7 +116,7 @@ KrResult KrFindAdjacentNodes(const KrFindAdjacentNodesInfo* pFindAdjacentNodesIn
|
||||
if (!sContext) {
|
||||
return KR_ERROR_NOT_INITIALIZED;
|
||||
}
|
||||
return KR_ERROR_NOT_IMPLEMENTED;
|
||||
return sContext->findAdjacentNodes(pFindAdjacentNodesInfo);
|
||||
}
|
||||
|
||||
KrResult KrSetNodeLocalTransform(const KrSetNodeLocalTransformInfo* pSetNodeLocalTransform)
|
||||
@@ -124,7 +124,7 @@ KrResult KrSetNodeLocalTransform(const KrSetNodeLocalTransformInfo* pSetNodeLoca
|
||||
if (!sContext) {
|
||||
return KR_ERROR_NOT_INITIALIZED;
|
||||
}
|
||||
return KR_ERROR_NOT_IMPLEMENTED;
|
||||
return sContext->setNodeLocalTransform(pSetNodeLocalTransform);
|
||||
}
|
||||
|
||||
KrResult KrSetNodeWorldTransform(const KrSetNodeWorldTransformInfo* pSetNodeWorldTransform)
|
||||
@@ -132,7 +132,7 @@ KrResult KrSetNodeWorldTransform(const KrSetNodeWorldTransformInfo* pSetNodeWorl
|
||||
if (!sContext) {
|
||||
return KR_ERROR_NOT_INITIALIZED;
|
||||
}
|
||||
return KR_ERROR_NOT_IMPLEMENTED;
|
||||
return sContext->setNodeWorldTransform(pSetNodeWorldTransform);
|
||||
}
|
||||
|
||||
KrResult KrDeleteNode(const KrDeleteNodeInfo* pDeleteNodeInfo)
|
||||
@@ -140,7 +140,7 @@ KrResult KrDeleteNode(const KrDeleteNodeInfo* pDeleteNodeInfo)
|
||||
if (!sContext) {
|
||||
return KR_ERROR_NOT_INITIALIZED;
|
||||
}
|
||||
return KR_ERROR_NOT_IMPLEMENTED;
|
||||
return sContext->deleteNode(pDeleteNodeInfo);
|
||||
}
|
||||
|
||||
KrResult KrDeleteNodeChildren(const KrDeleteNodeChildrenInfo* pDeleteNodeChildrenInfo)
|
||||
@@ -148,7 +148,7 @@ KrResult KrDeleteNodeChildren(const KrDeleteNodeChildrenInfo* pDeleteNodeChildre
|
||||
if (!sContext) {
|
||||
return KR_ERROR_NOT_INITIALIZED;
|
||||
}
|
||||
return KR_ERROR_NOT_IMPLEMENTED;
|
||||
return sContext->deleteNodeChildren(pDeleteNodeChildrenInfo);
|
||||
}
|
||||
|
||||
KrResult KrAppendBeforeNode(const KrAppendBeforeNodeInfo* pAppendBeforeNodeInfo)
|
||||
@@ -156,7 +156,7 @@ KrResult KrAppendBeforeNode(const KrAppendBeforeNodeInfo* pAppendBeforeNodeInfo)
|
||||
if (!sContext) {
|
||||
return KR_ERROR_NOT_INITIALIZED;
|
||||
}
|
||||
return KR_ERROR_NOT_IMPLEMENTED;
|
||||
return sContext->appendBeforeNode(pAppendBeforeNodeInfo);
|
||||
}
|
||||
|
||||
KrResult KrAppendAfterNode(const KrAppendAfterNodeInfo* pAppendAfterNodeInfo)
|
||||
@@ -164,7 +164,7 @@ KrResult KrAppendAfterNode(const KrAppendAfterNodeInfo* pAppendAfterNodeInfo)
|
||||
if (!sContext) {
|
||||
return KR_ERROR_NOT_INITIALIZED;
|
||||
}
|
||||
return KR_ERROR_NOT_IMPLEMENTED;
|
||||
return sContext->appendAfterNode(pAppendAfterNodeInfo);
|
||||
}
|
||||
|
||||
KrResult KrAppendFirstChildNode(const KrAppendFirstChildNodeInfo* pAppendFirstChildNodeInfo)
|
||||
@@ -172,7 +172,7 @@ KrResult KrAppendFirstChildNode(const KrAppendFirstChildNodeInfo* pAppendFirstCh
|
||||
if (!sContext) {
|
||||
return KR_ERROR_NOT_INITIALIZED;
|
||||
}
|
||||
return KR_ERROR_NOT_IMPLEMENTED;
|
||||
return sContext->appendFirstChildNode(pAppendFirstChildNodeInfo);
|
||||
}
|
||||
|
||||
KrResult KrAppendLastChildNode(const KrAppendLastChildNodeInfo* pAppendLastChildNodeInfo)
|
||||
@@ -180,7 +180,7 @@ KrResult KrAppendLastChildNode(const KrAppendLastChildNodeInfo* pAppendLastChild
|
||||
if (!sContext) {
|
||||
return KR_ERROR_NOT_INITIALIZED;
|
||||
}
|
||||
return KR_ERROR_NOT_IMPLEMENTED;
|
||||
return sContext->appendLastChildNode(pAppendLastChildNodeInfo);
|
||||
}
|
||||
|
||||
KrResult KrUpdateNode(const KrUpdateNodeInfo* pUpdateNodeInfo)
|
||||
@@ -188,7 +188,7 @@ KrResult KrUpdateNode(const KrUpdateNodeInfo* pUpdateNodeInfo)
|
||||
if (!sContext) {
|
||||
return KR_ERROR_NOT_INITIALIZED;
|
||||
}
|
||||
return KR_ERROR_NOT_IMPLEMENTED;
|
||||
return sContext->updateNode(pUpdateNodeInfo);
|
||||
}
|
||||
|
||||
KrResult KrInitNodeInfo(KrNodeInfo* pNodeInfo, KrStructureType nodeType)
|
||||
@@ -244,4 +244,4 @@ KrResult KrInitNodeInfo(KrNodeInfo* pNodeInfo, KrStructureType nodeType)
|
||||
return KR_ERROR_INCORRECT_TYPE;
|
||||
}
|
||||
return KR_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user