| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I think I've found a solution here, I just want to check that I am barking
up the right tree.
I am attemptying to scroll an NSOpenGLView (subclass of), the total area of
which is greater than 2048x2048. My first solution (as explained here) was
to change the viewport as I scrolled, however this limited me to 2048x2048,
so I have thought up a slightly different solution.
First I create an NSScrollView which contains a dummy NSView (which does no
rendering at all), I then put an OpenGL view over the top of the scroll view
(so that only the scroll bars show). In the OpenGL view I translate before
drawing (using glTranslate (xPan, yPan, 0.0)) and according to how much my
view is zoomed and translated I change the frame rect of the dummy NSView
behind the openGL view.
Is this a sensible approach, or is there a simpler solution?
| References: | |
| >scrolling an openGL view (with an NSScrollView) (From: "Tom Davie" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.