![]() Pfd.dwFlags = PFD_DOUBLEBUFFER | PFD_SUPPORT_OPENGL | PFD_DRAW_TO_WINDOW Pfd.nSize = sizeof(PIXELFORMATDESCRIPTOR) Memset(&pfd, 0, sizeof(PIXELFORMATDESCRIPTOR)) ![]() ![]() ![]() HWnd = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW,ĬW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL) HInst = hInstance // Store instance handle in our global variable I did this in a Win32 app to make sure it works (it does, drawing a triangle in the lower part of the window): BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) I'm trying to get shaders to work in an MFC app with an OpenGL 4 core profile.
0 Comments
Leave a Reply. |