Skip to main content
GameDev.net gamedev.net
🔒 Locked

opengl doubt

Started by y2jsave Mar 10, 2008 at 8:19 AM 2 replies 700+ views
Original Post
y2jsave
y2jsave
i have a question (working in dev c++) my opengl has no minimise option (which appears on every window) how to bring that need help thanks my code goes here WNDCLASS wc; HWND hWnd; HGLRC hRC; MSG msg; BOOL bQuit = FALSE; HMENU menu; float theta = 0.0f; // register window class wc.style = CS_OWNDC; wc.lpfnWndProc = WindowProcedure; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = LoadIcon( NULL, IDI_APPLICATION ); wc.hCursor = LoadCursor( NULL, IDC_ARROW ); wc.hbrBackground = (HBRUSH)GetStockObject( BLACK_BRUSH ); wc.lpszMenuName = NULL; wc.lpszClassName = "GLSample"; RegisterClass( &wc ); // create main window hWnd = CreateWindow( "GLSample", "OpenGL Sample", WS_CAPTION | WS_POPUPWINDOW | WS_VISIBLE, 0, 0,WIDTH , HEIGHT, NULL, NULL, hInstance, NULL); // enable OpenGL for the window EnableOpenGL( hWnd, &hDC, &hRC ); ShowWindow(hWnd, nFunsterStil); please help thanks
y2jsave
y2jsave
thanks for the link
problem solved but a new one arised

i was doing mouse clicks handling ... and some drawing on my opengl window

whole thing was destroyed when i maximised or restored my window
how to correct it
Lode
Lode
It destroys the texture buffers and so on in the video card, you need to upload all textures and everything again to the video card as is done when loading

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.