• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ TestApp类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中TestApp的典型用法代码示例。如果您正苦于以下问题:C++ TestApp类的具体用法?C++ TestApp怎么用?C++ TestApp使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了TestApp类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: main

int main( int argc, char* argv[] )
{
 	TestApp* pcTest = new TestApp();
	pcTest->Run();

	return( 0 );
}
开发者ID:PyroOS,项目名称:Pyro,代码行数:7,代码来源:DemoApp.cpp


示例2: main

int main(int argc, char **argv)
{
  TestApp app;

  srand((unsigned int)time(NULL));

  if(argc > 1)
  {
    app.set_num_verts(atoi(argv[1]));
  }

  float x = remap_range(0.3f, 0.0f, 1.0f, -10.0f, 10.0f);
  cout<<"remap: "<<x<<endl;

  //app.init();
  //app.run();

  Matrix4x4 mat(3.0f, 7.0f, 2.0f, 5.0f,
                1.0f, 8.0f, 4.0f, 2.0f,
                2.0f, 1.0f, 9.0f, 3.0f,
                5.0f, 4.0f, 7.0f, 1.0f);
  Matrix4x4 inv = mat;
  inv.invert();

  Matrix4x4 ident = mat * inv;

  return 0;
}
开发者ID:chadmiral,项目名称:commonlib,代码行数:28,代码来源:test.cpp


示例3: main

int main() {
    TestApp app;

    app.init();
    app.run();

    return 0;
}
开发者ID:karimnaaji,项目名称:sem-viewer,代码行数:8,代码来源:main.cpp


示例4: _tWinMain

INT WINAPI _tWinMain(HINSTANCE hInst, HINSTANCE, LPTSTR, INT)
{
	TestApp app;

	app.Setup(hInst);

   return app.Run();
}
开发者ID:laiapabel,项目名称:SGA47-BoardRPG,代码行数:8,代码来源:winmain.cpp


示例5: main

	static int main(const std::vector<std::string> &args)
	{
		SetupCore setup_core;

		// Start the Application
		TestApp app;
		int retval = app.main(args);
		return retval;
	}
开发者ID:punkkeks,项目名称:ClanLib,代码行数:9,代码来源:test.cpp


示例6: main

	static int main(const std::vector<std::string> &args)
	{
		SetupCore setup_core;
		SetupDisplay setup_display;
		SetupD3D setup_d3d;

		TestApp app;
		return app.main(args);
	}
开发者ID:lonelylife,项目名称:ClanLib,代码行数:9,代码来源:test.cpp


示例7: main

// main function
int main()
{
  setlocale(LC_ALL, "");

  TestApp *app = TestApp::Instance();
  app->Run();

  return 0;
}
开发者ID:transacid,项目名称:CenterIM5,代码行数:10,代码来源:treeview_test.cpp


示例8: WinMain

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
	TestApp* tApp = new TestApp(hInstance);

	if(!tApp->Init())
		return 1;

	return tApp->Run();
}
开发者ID:szpada,项目名称:mo3d,代码行数:9,代码来源:Winmain.cpp


示例9: main

int main()
{
	TestApp app;

	app.init();
	app.play();
	app.term();

	return 0;
}
开发者ID:gushrodah,项目名称:Graphics-Engine,代码行数:10,代码来源:main.cpp


示例10: main

	static int main(const std::vector<CL_String> &args)
	{
		CL_SetupCore setup_core;
		CL_SetupDisplay setup_display;
		CL_SetupGL setup_gl;

		// Start the Application
		TestApp app;
		int retval = app.main(args);
		return retval;
	}
开发者ID:PaulFSherwood,项目名称:cplusplus,代码行数:11,代码来源:test.cpp


示例11: _tWinMain

int APIENTRY _tWinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPTSTR    lpCmdLine,
                     int       nCmdShow)
{
	TestApp app;
	app.Initialize();
	app.Run();
	app.Finalize();
	
	return 0;
}
开发者ID:anoopadvaitha,项目名称:lincodelib,代码行数:12,代码来源:RenderDemo.cpp


示例12: main

// main
int
main(int argc, char **argv)
{
	// find app file and get signature from resources
	char path[B_PATH_NAME_LENGTH];
	status_t error = get_app_path(path);
	char signature[B_MIME_TYPE_LENGTH];
	if (error == B_OK) {
		// init app file
		BFile file;
		error = file.SetTo(path, B_READ_ONLY);
		// get signature
		BString signatureString;
		if (error == B_OK) {
			if (file.ReadAttrString("signature", &signatureString) == B_OK
				&& signatureString.Length() > 0) {
				strcpy(signature, signatureString.String());
			} else
				strcpy(signature, kDefaultTestAppSignature);
		} else
			printf("ERROR: Couldn't init app file: %s\n", strerror(error));
	} else
		printf("ERROR: Couldn't get app ref: %s\n", strerror(error));
	// create the app
	TestApp *app = NULL;
	if (error == B_OK) {
		app = new TestApp(signature);
//		unitTesterMessenger = BMessenger(kUnitTesterSignature);
		error = init_unit_tester_messenger();
		if (error != B_OK)
			printf("ERROR: Couldn't init messenger: %s\n", strerror(error));
		// send started message
		BMessage message(MSG_STARTED);
		message.AddString("path", path);
		unitTesterMessenger.SendMessage(&message);
		// send main() args message
		BMessage argsMessage(MSG_MAIN_ARGS);
		argsMessage.AddInt32("argc", argc);
		for (int i = 0; i < argc; i++)
			argsMessage.AddString("argv", argv[i]);
		unitTesterMessenger.SendMessage(&argsMessage);
		// run the app
		app->Run();
		delete app;
		// send terminated message
		unitTesterMessenger.SendMessage(MSG_TERMINATED);
	}
	return 0;
}
开发者ID:SummerSnail2014,项目名称:haiku,代码行数:50,代码来源:RosterBroadcastTestApp1.cpp


示例13: main

	static int main(const std::vector<std::string> &args)
	{
		SetupCore setup_core;
		SetupDisplay setup_display;

#ifdef USE_D3D
		SetupD3D setup_d3d;
#else
		SetupGL setup_gl;
#endif

		// Start the Application
		TestApp app;
		int retval = app.main(args);
		return retval;
	}
开发者ID:punkkeks,项目名称:ClanLib,代码行数:16,代码来源:test.cpp


示例14: main

int
main(int argc, char **argv)
{
  using namespace StarEngine;

  TestApp *app;
  int ret = -1;

  try {
    app = new TestApp();
    ret = app->run();
  } catch(Exception *e) {
    e->show();
  }

  return ret;
}
开发者ID:BackupTheBerlios,项目名称:sfox-svn,代码行数:17,代码来源:main.cpp


示例15: SetUp

	virtual void SetUp() {
		char appname[] = "ClockTest.o";
		int argc = 1;
		char *argv[1] = { appname };
		app = new TestApp();
		wxApp::SetInstance(app);
		wxEntryStart(argc, argv);
		app->OnInit();
	}
开发者ID:AlessioFerri,项目名称:TimeApp,代码行数:9,代码来源:GuiTest.cpp


示例16: main

int main() {
    TestApp app;
    int i;
    bool q = false;

    while(q == false) {
        scanf("%d", &i);
        switch(i) {
            case 1://ユビプレイ
                app.play();
                break;
            case 2://ユビポーズ
                app.pause();
                break;
            case 3://ユビストップ
                app.stop();
                break;
            case 4://ユビシンク
                app.sync();
                break;
            case 5://ユビサーチ
                app.search();
                break;
            case 9:
                q = true;
                break;
            default:
                break;
        }
    }
    return 0;
}
开发者ID:3xx1,项目名称:ubiquitel,代码行数:32,代码来源:UbMTest.cpp


示例17: Run

 void Test::Run()
 {
     m_result = true;
     try
     {
         TestApp* app = new TestApp;
         Punk::Config cfg;
         cfg.gpu_config.view_width = 800;
         cfg.gpu_config.view_height = 600;
         app->Init(cfg);
         System::Mouse::Instance()->LockInWindow(false);
         app->Run();
         delete app;
     }
     catch(System::PunkException& e)
     {
         out_error() << e.ToString() << std::endl;
         m_result = false;
     }
     catch(...)
     {
         m_result = false;
     }
 }
开发者ID:Mikalai,项目名称:punk_project_a,代码行数:24,代码来源:test18.cpp


示例18: main

// main function
int main()
{
  setlocale(LC_ALL, "");

  // initialize CppConsUI
  int consui_res = CppConsUI::initializeConsUI();
  if (consui_res) {
    fprintf(stderr, "CppConsUI initialization failed.\n");
    return consui_res;
  }

  TestApp *app = new TestApp;
  app->run();
  delete app;

  // finalize CppConsUI
  consui_res = CppConsUI::finalizeConsUI();
  if (consui_res) {
    fprintf(stderr, "CppConsUI deinitialization failed.\n");
    return consui_res;
  }

  return 0;
}
开发者ID:jonyamo,项目名称:centerim5,代码行数:25,代码来源:colorpicker.cpp


示例19: main

int main(int argc,char**argv)
#endif
{
	// FIXME: in the future we will call a static method on TouchScreenDevice
	// in order to get an ITouchScreen (singleton pattern) as opposed to directly
	// creating it here.. 

	ITouchScreen *screen = TouchScreenDevice::getTouchScreen();
	TestApp app;


	char* configFileName = "config.xml";
	if(!screen->loadConfig(configFileName))
	{
		screen->pushFilter("cvcapture", "capture1");
		screen->pushFilter("mono", "mono2");
		screen->pushFilter("smooth", "smooth3");
		screen->pushFilter("backgroundremove", "background4");

		screen->pushFilter("brightnesscontrast", "bc5");
		screen->pushFilter("rectify", "rectify6");
		//I can't figure out a better way to pass in the string than to create
		//a var first because the prototype is using a reference. Just passing
		//a cstring fails on gcc  
		std::string rectify6 = "rectify6";
		screen->setParameter(rectify6, "level", "25");
		std::string capture1 = "capture1";
		screen->setParameter(capture1, "source", "cam");
		//screen->setParameter("capture1", "source", "../tests/simple-2point.avi");
		//screen->setParameter("capture1", "source", "../tests/hard-5point.avi");
		std::string bc5 = "bc5";
		screen->setParameter(bc5, "brightness", "0.1");
		screen->setParameter(bc5, "contrast", "0.4");

		screen->saveConfig(configFileName);
	}

	screen->registerListener((ITouchListener *)&app);

	// Note: Begin processing should only be called after the screen is set up
	screen->beginProcessing();

	bool ok=true;
	do
	{
		screen->getEvents();
		app.draw();
		//printf("*");
		int keypressed = (cvWaitKey(10) & 255);

        if(keypressed  == 27 ) break;

        if( keypressed == 98)				// b = recapture background
		{
			std::string background4 = "background4";
			screen->setParameter(background4, "capture", "");
		}
	} while( 1 );

	screen->saveConfig(configFileName);
	TouchScreenDevice::destroy();
	return 0;
}
开发者ID:AmitVashisht,项目名称:touchlib,代码行数:63,代码来源:sampleapp.cpp


示例20: main

int main(int argc, char** argv)
{
	TestApp program;
	program.main();
}
开发者ID:MeiHouwang,项目名称:ClanLib,代码行数:5,代码来源:test.cpp



注:本文中的TestApp类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ TestApplication类代码示例发布时间:2022-05-31
下一篇:
C++ TestActiveDOMObject类代码示例发布时间:2022-05-31
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap