本文整理汇总了C++中Layer::AddLayer方法的典型用法代码示例。如果您正苦于以下问题:C++ Layer::AddLayer方法的具体用法?C++ Layer::AddLayer怎么用?C++ Layer::AddLayer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Layer
的用法示例。
在下文中一共展示了Layer::AddLayer方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetObjectPointer
RESULT
LayerManager::AddToLayer( IN HLayer hLayer, IN HLayer hChildLayer )
{
RESULT rval = S_OK;
Layer* pLayer = GetObjectPointer( hLayer );
Layer* pChildLayer = GetObjectPointer( hChildLayer );
if (!pLayer)
{
RETAILMSG(ZONE_ERROR, "ERROR: LayerManager::AddToLayer( 0x%x, 0x%x ): invalid destination Layer", (UINT32)hLayer, (UINT32)hChildLayer);
rval = E_INVALID_ARG;
goto Exit;
}
if (!pChildLayer)
{
RETAILMSG(ZONE_ERROR, "ERROR: LayerManager::AddToLayer( 0x%x, 0x%x ): invalid child Layer", (UINT32)hLayer, (UINT32)hChildLayer);
rval = E_INVALID_ARG;
goto Exit;
}
CHR(pChildLayer->SetParentLayer( hLayer ));
CHR(pLayer->AddLayer( hChildLayer ));
Exit:
return rval;
}