本文整理汇总了C++中StringList::StringAt方法的典型用法代码示例。如果您正苦于以下问题:C++ StringList::StringAt方法的具体用法?C++ StringList::StringAt怎么用?C++ StringList::StringAt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StringList
的用法示例。
在下文中一共展示了StringList::StringAt方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: LoadSheetIfNeeded
// ensure the given spritesheet is loaded
static void Sprites::LoadSheetIfNeeded(int sheetno)
{
if (!spritesheet[sheetno])
{
char pbm_name[MAXPATHLEN];
#if 1
char *s = sheetfiles.StringAt(sheetno);
if (!strncmp(s, "..", 2)) {
sprintf(pbm_name, "%s", s + 2);
}
else {
sprintf(pbm_name, "%s/%s", data_dir, s);
}
#else
sprintf(pbm_name, "%s/%s", data_dir, sheetfiles.StringAt(sheetno));
#endif
spritesheet[sheetno] = new NXSurface;
spritesheet[sheetno]->LoadImage(pbm_name, true);
// fix the blue dash in the middle of the starpoof effect on that one frame,
// I'm pretty sure this is a glitch.
if (!settings->emulate_bugs)
{
if (sheetno == 3) // Caret.pbm
spritesheet[sheetno]->FillRect(40, 58, 41, 58, 0, 0, 0);
}
}
}
示例2: LoadSheetIfNeeded
// ensure the given spritesheet is loaded
static void Sprites::LoadSheetIfNeeded(int sheetno)
{
if (!spritesheet[sheetno])
{
char pbm_name[1024];
retro_create_path_string(pbm_name, sizeof(pbm_name), data_dir, sheetfiles.StringAt(sheetno));
NX_LOG("LoadSheetIfNeeded: %s\n", pbm_name);
#ifdef _WIN32
for (unsigned i = 0; i < sizeof(pbm_name); i++)
{
if (pbm_name[i] == '/')
pbm_name[i] = '\\';
}
#endif
spritesheet[sheetno] = new NXSurface;
spritesheet[sheetno]->LoadImage(pbm_name, true);
// fix the blue dash in the middle of the starpoof effect on that one frame,
// I'm pretty sure this is a glitch.
if (!settings->emulate_bugs)
{
if (sheetno == 3) // Caret.pbm
spritesheet[sheetno]->FillRect(40, 58, 41, 58, 0, 0, 0);
}
}
}