PDA

View Full Version : OpenGL & PowerPlant



12-31-2001, 01:58 AM
Is there any implementation of a PowerPlant pane that would be an OpenGL (AGL) drawable ?
The only implementation I found was not compatible with OSX.

zoldar256
01-01-2002, 04:54 PM
Just use a standard view. Then set the Drawable to the views value of GetMacPort(). That's it. Nothing tricky

Damon
01-06-2002, 10:53 AM
Originally posted by zoldar256:
Just use a standard view. Then set the Drawable to the views value of GetMacPort(). That's it. Nothing tricky

My code at http://www.cokenias.org/opengl/ will get you 90% of the way there. It shows how to set up an OpenGL context given a GrafPtr and a rectangle. Feel free to steal it.

tod_baudais
01-07-2002, 04:58 AM
If you tried OpenGL Pane on the metrowerks site, your right - it doesn't work.

I did manage to build my own implementation that works fine under X, but i havn't tested it under 9. Email me if you want more info : tod_baudais@mac.com