NSOpenGLView visual glitches when enlarging containing NSWindow
NSOpenGLView visual glitches when enlarging containing NSWindow
- Subject: NSOpenGLView visual glitches when enlarging containing NSWindow
- From: email@hidden
- Date: Tue, 21 Jan 2003 14:46:37 -0500
I've modified the OpenGL VBL example to allow resizing of the NSWindow
contraining the NSOpenGLView.
However, when enlarging the application window, the area of the screen
exposed by the enlarging window will contain garbage. The size of this
garbage area will depend on how quickly the mouse is moved and released,
with faster mouse motion resulting in a larger area containg garbage, along
the bottom and right boundaries of the NSWindow.
It appears as if the clipping rectangle for the NSOpenGLView contained by
the NSWindow is not recalculated in lockstep with the enlarging window. Once
the mouse is released, the garbage area remains fixed.
Note that the recalculated logical dimensions of the GL view are correct and
that any objects drawn within the GL view are correctly resized. However,
rather than clipping against the actual NSWindow boundary, they are clipped
against a smaller rectangle. The rest of the area between the smaller
clipping rectangle and the actual window border is filled with garbage.
Any ideas on how to get an NSOpenGLView to track changes in a containing
NSWindow would be appreciated.
Thanks,
James
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.