Exemple #1
0
int main(void)
{
	printf("OpenGL Learning\n");
	printf("    Coded by eXerigumo Clanjor\n");
	printf("    Under GPLv3, ABSOLUTELY NO WARRANTY!!!\n");
	printf("Keys:\n");
	printf("    t       Enable/Disable text\n");
	printf("    w       Rotate along x-axis\n");
	printf("    s       Rotate along x-axis\n");
	printf("    a       Rotate along y-axis\n");
	printf("    d       Rotate along y-axis\n");
	printf("    q       Rotate along z-axis\n");
	printf("    e       Rotate along z-axis\n");
	printf("    r       Go forward\n");
	printf("    f       Go backward\n");
	printf("    ESC     Exit\n");
	fflush(stdout);

	demo_main(DEMO_TITLE,		// title
				DEMO_WIN_SIZE,	// w, h
				100,			// view_w
				100,			// view_h
				100,			// view_z
				30);			// fps

	return 0;
}
Exemple #2
0
int main( void )
{
	/* Initialise the trace recorder and create the label used to post user
	events to the trace recording on each tick interrupt. */
	vTraceInitTraceData();
	xTickTraceUserEvent = xTraceOpenLabel( "tick" );

	/* Start the trace recording - the recording is written to a file if
	configASSERT() is called. */
	//printf( "\r\nTrace started.  Hit a key to dump trace file to disk.\r\n" );
	uiTraceStart();

	/* The mainCREATE_SIMPLE_BLINKY_DEMO_ONLY setting is described at the top
	of this file. */
	#if ( mainCREATE_SIMPLE_BLINKY_DEMO_ONLY == 1 )
	{
		demo_main();
	}
	#else
	{
		main_full();
	}
	#endif

	return 0;
}
Exemple #3
0
int main(void)
{
	demo_main(DEMO_TITLE,		// title
				DEMO_WIN_SIZE,	// w, h
				/** TODO:
				 * Following view_w and view_h look strange,
				 * don't they? I don't know why these values
				 * work so fine.
				 */
				480,			// view_w
				480,			// view_h
				100,			// view_z
				30);			// fps
}
Exemple #4
0
/******* main *******/
int main(void)
{
	printf("A Clanjor Production (No. 004)\n");
	printf("    Coded by eXerigumo Clanjor\n");
	printf("    Under GPLv3, ABSOLUTELY NO WARRANTY!!!\n");
	printf("Keys:\n");
	printf("    ESC     Exit\n");
	fflush(stdout);

	demo_main(DEMO_TITLE,		// title
			  DEMO_WIN_SIZE,	// w, h
			  100,				// view_w
			  100,				// view_h
			  100,				// view_z
			  30);				// fps

	return 0;
}
Exemple #5
0
int main(void)
{
	printf("OpenGL Learning\n");
	printf("    Coded by eXerigumo Clanjor\n");
	printf("    Under GPLv3, ABSOLUTELY NO WARRANTY!!!\n");
	printf("Keys:\n");
	printf("    +       Higher resolution\n");
	printf("    -       Lower resolution\n");
	printf("    ESC     Exit\n");
	fflush(stdout);

	demo_main(DEMO_TITLE,		// title
				DEMO_WIN_SIZE,	// w, h
				100,			// view_w
				100,			// view_h
				100,			// view_z
				30);			// fps

	return 0;
}
void DemoLabel::LinkClicked(view::Link* source, int event_flags)
{
    PrintStatus(L"Link clicked");

    demo_main()->DisplayBalloon();
}