user1281071
user1281071

Reputation: 895

glutCreateWindow on multi gpu system

I use GLUT to create window (glutCreateWindow()). It seems like glut creates window allways in monitor which is in Windows set as MAIN. In my system are two GPUs.

Is it possible to set which monitor, resp. which GPU use to create window?

Upvotes: 1

Views: 377

Answers (2)

None McNone
None McNone

Reputation: 21

On a Mac, you can use CGLSetVirtualScreen(CGLCurrentContext(),x); where x is 0, 1 or 2 (usually GPU 1, GPU 2 and Apple Software). But, you may have to add a flag to your applications' Info.plist file to enable multi-GPU support for this to work. See http://developer.apple.com/library/mac/#qa/qa1734/_index.html#//apple_ref/doc/uid/DTS40010791

Upvotes: 2

genpfault
genpfault

Reputation: 52083

Not with a stock GLUT implementation.

Upvotes: 1

Related Questions