本文整理汇总了C++中FontManager::GetDefaultFont方法的典型用法代码示例。如果您正苦于以下问题:C++ FontManager::GetDefaultFont方法的具体用法?C++ FontManager::GetDefaultFont怎么用?C++ FontManager::GetDefaultFont使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FontManager
的用法示例。
在下文中一共展示了FontManager::GetDefaultFont方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int argc, char * argv[])
{
unsigned int width = 1024;
unsigned int height = 768;
bool fullscreen = false;
BCIInterface * bciinterface = new BCIInterface(width, height);
FontManager fm;
FPSCounter fps_c(fm.GetDefaultFont());
UDPReceiver * receiver = new UDPReceiver(2222);
TrainingInterpreter * interpreter = new TrainingInterpreter(width, height);
bciinterface->SetCommandReceiver(receiver);
bciinterface->SetCommandInterpreter(interpreter);
bciinterface->AddObject(new SSVEPStimulus(6, 60, (float)width/2, 100, 200,200, 255, 0, 0, 255));
bciinterface->AddObject(new SSVEPStimulus(8, 60, (float)width-100, (float)height/2, 200, 200, 255, 0, 0, 255));
bciinterface->AddObject(new SSVEPStimulus(10, 60, (float)width/2, (float)height-100, 200, 200, 255, 0, 0, 255));
bciinterface->AddObject(new SSVEPStimulus(9, 60, 100, (float)height/2,200, 200, 255, 0, 0, 255));
bciinterface->AddObject(new SSVEPStimulus(14, 60, (float)width/2, (float)height/2, 200, 200, 255, 0, 0, 255));
bciinterface->AddNonOwnedObject(&fps_c);
int cmd = -1;
bciinterface->DisplayLoop(fullscreen);
delete bciinterface;
delete interpreter;
delete receiver;
return 0;
}