本文整理汇总了C++中HeapString::Append方法的典型用法代码示例。如果您正苦于以下问题:C++ HeapString::Append方法的具体用法?C++ HeapString::Append怎么用?C++ HeapString::Append使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HeapString
的用法示例。
在下文中一共展示了HeapString::Append方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Print
void CustomDrawMeshRenderBatch::Print(HeapString& ioStr, uint level)
{
ioStr.AppendFormat("{:x}", this);
ioStr.Append('\t', level);
ioStr.AppendFormat("{}:{}\t", mNode->Id(), mNode->Name());
ioStr.AppendLine();
}
示例2: Print
void EffectRenderGroup::Print(HeapString& ioStr, uint level)
{
ioStr.Append('\t', level);
ioStr.AppendLine(mEffect->Name().c_str());
for (auto materialRenderList : mGroups)
{
materialRenderList->Print(ioStr, level + 1);
}
}
示例3: Print
void SceneRenderGroup::Print(HeapString& ioStr, uint level)
{
ioStr.AppendLine();
ioStr.Append('\t', level);
for (auto group : mGroups)
{
group->Print(ioStr, level + 1);
}
Log::Info(ioStr);
}
示例4: ToString
HeapString FileIdRef::ToString(const PublishTarget& tag /*= PublishTarget::MatchAll*/) const
{
if (Order==0&& tag == PublishTarget::MatchAll)
{
return Name;
}
HeapString str;
intp index=Name.LastIndexOf('.');
str.Append(Name.c_str(), index);
if (tag.Version!=PublishVersions::All)
{
str += '-';
str+=tag.Version.ToString();
}
if (tag.Device!=PublishDevices::All)
{
str += '-';
str += tag.Device.ToString();
}
if (tag.Language !=PublishLanguages::All)
{
str += '-';
str += tag.Language.ToString();
}
if (Order!=0)
{
str.Append('-');
str += StringParser::ToString(Order);
}
str.Append(Name.c_str() + index);
return str;
}
示例5: Print
void BaseBufferRenderBatch::Print(HeapString& ioStr, uint level)
{
ioStr.AppendFormat("{:x}", this);
ioStr.Append('\t', level);
switch (mDrawMode)
{
case GraphicsDrawMode::Points:
ioStr.AppendLine("Points");
break;
case GraphicsDrawMode::Lines:
ioStr.AppendLine("Lines");
break;
case GraphicsDrawMode::LineLoop:
ioStr.AppendLine("LineLoop");
break;
case GraphicsDrawMode::LineStrip:
ioStr.AppendLine("LineStrip");
break;
case GraphicsDrawMode::Triangles:
ioStr.AppendLine("Triangles");
break;
case GraphicsDrawMode::TriangleStrip:
ioStr.AppendLine("TriangleStrip");
break;
case GraphicsDrawMode::TriangleFan:
ioStr.AppendLine("TriangleFan");
break;
default:
break;
}
for (auto node : mNodes)
{
ioStr.AppendFormat("{}:{}\t", node->Id(), node->Name().c_str());
}
ioStr.AppendLine();
}