コード例 #1
0
int main(int argc, char **argv)
{
	int windowsize_width = WINDOW_WIDTH,
		windowsize_height = WINDOW_HEIGHT,
		windowposition_width = 0,
		windowposition_height = 0;

	glutInit(&argc,argv);
	glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);
	glutInitWindowSize(windowsize_width, windowsize_height);
	glutInitWindowPosition(windowposition_width, windowposition_height);
	glutCreateWindow("Soundwave Reborn...");

	PrintHello();
	keyboard_controller->PrintBasicHelp();
	Init();
	glutDisplayFunc(DisplayWindow);
	glutIdleFunc(IdleWindow);
	glutReshapeFunc(ReshapeWindow);
	glutKeyboardFunc(KeyListener);
	glutSpecialFunc(SpecialKeyListener);
	glutMouseFunc(MouseListener);
	glutPassiveMotionFunc(MotionListener);

	glutMainLoop();
	return 0;
}  // main
コード例 #2
0
ファイル: main.c プロジェクト: wayne2000/myProg
int main()
{
	PrintHello();
	PrintFromalib();
	PrintFromalib2();
//	PrintFromsolib();

	return 0;
}
コード例 #3
0
ファイル: usbrflct.cpp プロジェクト: kuailexs/symbiandump-os1
int main(int argc, char* argv[])
	{
	PrintHello();

	if (ProcessCmdLine(argc, argv) != 0)
		return -1;

	OpenUsbDevice();

	if (dwRC == USBIO_ERR_SUCCESS)
		{
		GetDeviceDescriptor();
		}
	if (dwRC == USBIO_ERR_SUCCESS)
		{
		GetConfigurationDescriptor();
		}
	if (dwRC == USBIO_ERR_SUCCESS)
		{
		GetStringDescriptor();
		}
	if (dwRC == USBIO_ERR_SUCCESS)
		{
		SetConfiguration();
		}
	if (dwRC == USBIO_ERR_SUCCESS)
		{
		// In order to give the USB device-side program (t_usb)
		// enough time after getting configured to carry out
		// some device tests, we wait here for a short while
		// before proceeding:
		Delay(2000);
		GetConfigurationInfo();
		}
	if (dwRC == USBIO_ERR_SUCCESS)
		{
		OpenPipes();
		}
	if (dwRC == USBIO_ERR_SUCCESS)
		{
		ExchangeVersions();
		}
	if (dwRC == USBIO_ERR_SUCCESS)
		{
		DoTransfers();
		}
	if (dwRC == USBIO_ERR_SUCCESS)
		{
		ClosePipes();
		}

	CloseUsbDevice();

	return 0;
	}
コード例 #4
0
ファイル: main.c プロジェクト: sjiagc/test
int
main()
{
    PrintHello();
    return 0;
}