INFO: When to Select and Realize OpenGL Palettes

ID: Q151489


The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API), used with:
    • Microsoft Windows NT, versions 3.51, 4.0
    • Microsoft Windows 95
  • Microsoft Windows 2000


SUMMARY

An OpenGL application must select and realize its palette before setting the current rendering context with wglMakeCurrent.


MORE INFORMATION

An OpenGL application typically makes its rendering context current one time only when the application is created, or repeatedly just prior to rendering, as in WM_PAINT for example.

In the first case, the palette must be created, selected, and realized prior to the initial wglMakeCurrent.

In the second case, the palette should be selected and realized before every call to wglMakeCurrent.

Additional query words: render colors hrc RGBA

Keywords : kbNTOS351 kbNTOS400 kbWinOS2000 kbSDKWin32 kbWinOS95 kbDSupport
Version : WINDOWS:; winnt:3.51,4.0
Platform : WINDOWS winnt
Issue type : kbinfo


Last Reviewed: December 20, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.