Changeset 20926
- Timestamp:
- 11/18/07 04:02:22 (11 months ago)
- Files:
-
- juggler/branches/2.2/modules/vrjuggler/ChangeLog (modified) (1 diff)
- juggler/branches/2.2/modules/vrjuggler/vrj/Draw/OGL/GlViewCocoa.mm (modified) (2 diffs)
- juggler/branches/2.2/modules/vrjuggler/vrj/Draw/OGL/GlWindowCocoa.h (modified) (1 diff)
- juggler/branches/2.2/modules/vrjuggler/vrj/Draw/OGL/GlWindowCocoa.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/branches/2.2/modules/vrjuggler/ChangeLog
r20836 r20926 1 1 DATE AUTHOR CHANGE 2 2 ----------- ----------- ------------------------------------------------------- 3 Nov-18-2007 patrick Cocoa OpenGL windows update their input area size 4 correctly. 3 5 Sep-19-2007 patrick Added draw thread CPU affinity capabilities through the 4 6 new environment variable VJ_DRAW_THREAD_AFFINITY. This juggler/branches/2.2/modules/vrjuggler/vrj/Draw/OGL/GlViewCocoa.mm
r20904 r20926 133 133 [self clearTrackingRect]; 134 134 // NSRect bounds = [self bounds]; 135 // mVrjWindow->updateOriginSize(bounds.origin.x, bounds.origin.y, 136 // bounds.size.width, bounds.size.height); 137 // mVrjWindow->setDirtyViewport(true); 135 // mVrjWindow->updateBounds(bounds.origin.x, bounds.origin.y, 136 // bounds.size.width, bounds.size.height); 138 137 } 139 138 */ … … 503 502 504 503 NSRect bounds = [self bounds]; 505 mVrjWindow->update OriginSize(bounds.origin.x, bounds.origin.y,506 bounds.size.width, bounds.size.height);504 mVrjWindow->updateBounds(bounds.origin.x, bounds.origin.y, 505 bounds.size.width, bounds.size.height); 507 506 // mVrjWindow->releaseRenderLock(); 508 mVrjWindow->setDirtyViewport(true);509 507 } 510 508 juggler/branches/2.2/modules/vrjuggler/vrj/Draw/OGL/GlWindowCocoa.h
r19884 r20926 83 83 84 84 /** 85 * Updates the bounds of this window to be the given values. 86 * 87 * @see gadget::InputAreaCocoa::updateOriginAndSize() 88 * @see vrj::GlWindow::updateOriginSize() 89 * 90 * @since 2.2.1 91 */ 92 void updateBounds(const float x, const float y, const float width, 93 const float height); 94 95 /** 85 96 * Informs this object that the NSWindow object that we created previously 86 97 * has been closed by an external entity and hence deallocated. By invoking juggler/branches/2.2/modules/vrjuggler/vrj/Draw/OGL/GlWindowCocoa.mm
r20921 r20926 104 104 // Inform our input area of the change in our bounds. 105 105 NSRect b = [[aNotification object] frame]; 106 mWindow->update OriginSize(b.origin.x, b.origin.y, b.size.width,107 b.size.height);106 mWindow->updateBounds(b.origin.x, b.origin.y, b.size.width, 107 b.size.height); 108 108 } 109 109 @end … … 401 401 } 402 402 403 void GlWindowCocoa::updateBounds(const float x, const float y, 404 const float width, const float height) 405 { 406 updateOriginAndSize(x, y, width, height); // Input area update 407 updateOriginSize(x, y, width, height); // Graphics window update 408 setDirtyViewport(true); // OpenGL viewport state 409 } 410 403 411 void GlWindowCocoa::setWindowOpen(const bool isOpen) 404 412 {
