[ Previous | Next | Table Of Contents

CHAPTER 4 Visual Configurations

In order to create an OpenGL rendering context to use for rendering, you must specify a Visual Configuration for pglCreateContext(). Visual Configurations can be queried using pglQueryConfigs(). A helper function is available which will "choose" a Visual Configuration which suits your minimum requirements. To use pglChooseConfig(), you must pass in a list of things that you need in your Visual Configuration.

You should choose the minimum Visual Configuration (i.e. the one with the least amount of buffers) that your OpenGL rendering requires. If you won't be using the accumulation buffers, do not "choose" a Visual Configuration that includes accumulation buffers.

There are visuals available based on which screen depth you are currently running at. In 256 color mode, only 8 bit visuals are supported. If you change your mode to 64k colors, then only 16 bit visuals will be supported. RGB visuals are available at every depth, Color Index visuals are only available in 8 bit mode. 


[ Previous | Next | Table Of Contents ]