Part of the Khronos Group

OpenGL API-based Code - Detail Listing

OpenGL Win32 Sample code

SGI

/resources/code/samples/win32_tutorial/

Windows 95/NT specific programs intended to be a tutorial for those getting started with OpenGL and Win32 including mouse events, pixel zoom, Window DIB, and more.

On windows XP (i don’t know if it was different in 95/NT 4.. probably not)

ReleaseDC(hDC, hWnd);

should be:

ReleaseDC(hWnd, hDC);

because the api is:
WINUSERAPI
int
WINAPI
ReleaseDC(
  __in_opt HWND hWnd,
  __in HDC hDC);

Posted by (JavaScript must be enabled to view this email address)  on  03/05  at  02:49 AM

Page 1 of 1 pages

To post comments you must be a registered user.
Login | Register

Next entry: An Interactive Introduction To OpenGL Programming - Siggraph 2001 Course

Previous entry: More sophisticated OpenGL Samples

This page has been viewed 483548 times •

Column Header
Column Footer

temperature-friend