Example #1
0
int WINAPI WinMain(HINSTANCE hinst, HINSTANCE, LPSTR, int)
{
	//PrimitiveRestart pr = PrimitiveRestart();
	//pr.Start("OGLPractice");
	//Instanced instance = Instanced();
	//instance.Start("Instanced");
	//Gouraud gouraud = Gouraud();
	//gouraud.Start("Gouraud");
	//LoadTexture loadTexture = LoadTexture();
	//loadTexture.Start("LoadTexture");
	CubeMap cubeMap = CubeMap();
	cubeMap.Start("CubeMap");
	
	/*
	WNDCLASSW wc;
	memset(&wc, 0, sizeof(wc));
	wc.style = CS_CLASSDC;
	wc.lpfnWndProc = WindowProc;
	wc.cbWndExtra = sizeof(struct OGL *);
	wc.hInstance = GetModuleHandleW(NULL);
	wc.lpszClassName = L"ORT";
	RegisterClassW(&wc);

	// adjust the window size and show at InitDevice time
	hwnd = CreateWindowW(wc.lpszClassName, L"OGLPractice", WS_OVERLAPPEDWINDOW, 0, 0, 0, 0, 0, 0, hinst, 0);
	if (!hwnd) return false;

	SetWindowLongPtr(hwnd, 0, NULL);

	hdc = GetDC(hwnd);

	initDevice();

	initSomthings2();
	Run(MainLoop);
	*/
	
	return (0);
}