CGDirectDisplay and OpenGL?

Member
Posts: 201
Joined: 2002.06
Post: #1
What is this I see in the CGDirectDisplay about CGGetDisplaysWithOpenGLDisplayMask(
CGOpenGLDisplayMask mask, CGDisplayCount maxDisplays, CGDirectDisplayID * dspys, CGDisplayCount * dspyCnt)?

What is an OpenGLDisplayMask. Sorry if that seems obvious, but I'm new to OpenGL.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
It lets you match OpenGL pixel formats to the displays they support. By default, your pixel format will match all the displays, so you can safely ignore it.

Basically, it's only useful in a situation where the user has two monitors driven by different cards with vastly different graphics capabilities -- eg. one card has stencil buffer support and the other doesn't.
Quote this message in a reply
Member
Posts: 201
Joined: 2002.06
Post: #3
Oh okay. Thanks.
Quote this message in a reply
Post Reply