Пример #1
0
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
	RenderWindow app;
	if(!app.Create(FALSE, "EDin's OpenGL - Texture2D"))
		return EXIT_FAILURE;
	return app.Run();
}
Пример #2
0
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
	RenderWindow app;
	if(!app.Create(FALSE,"Recursive Circle"))
		return EXIT_FAILURE;
	return app.Run();
}
Пример #3
0
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
	RenderWindow app;
	if(!app.Create(FALSE,"Fractal Graphics - Cantor Set"))
		return EXIT_FAILURE;
	return app.Run();
}
Пример #4
0
static VALUE RenderWindow_initialize(int argc, VALUE *argv, VALUE vSelf) {
	// Get C++ object pointer from vSelf
	RenderWindow *pSelf;
	Data_Get_Struct(vSelf, RenderWindow, pSelf);
	if(argc >= 2 && argc <= 4 &&
			IS(argv[0], g_cVideoMode) &&
			ISSTR(argv[1]) &&
			(argc < 3 || true) &&
			(argc < 4 || ISNUM(argv[3]))) {
		pSelf->Create(
			*(VideoMode *)DATA_PTR(argv[0]),
			STR2CSTR(argv[1]),
			argc < 3 ? (Style::Resize | Style::Close) : NUM2INT(argv[2]),
			argc < 4 ? 0 : NUM2INT(argv[3]));
	} else
		rb_raise(rb_eTypeError, "wrong argument type(s)");
	return vSelf;
}
Пример #5
0
noyau::noyau()
{
    cout<<"Eveil du Noyau"<<endl;
    fenetrePrincipal.Create(VideoMode(800, 600, 32), "Omega 0.1");
}