Cocoa Document OpenGL App Question

Moderator
Posts: 102
Joined: 2003.07
Post: #1
ok, I have a Document based program that has two NSOpenGLView subclasses in it one big and one small, they are defined as outlets in the NSDocument subclass, neither one of them has any notion of the other... and I need to send some height map data from one to the other but I can't figure out a way to do it short of making the map's data global, if anybody has any suggestions on what to do I'd like to hear them Grin

Thanks

-CarbonX
Quote this message in a reply
DoG
Moderator
Posts: 869
Joined: 2003.01
Post: #2
Since they oughta know of the document, just go through the document itself, or store the heightmap data in the document (or window controller, if they share it).
Quote this message in a reply
Moderator
Posts: 102
Joined: 2003.07
Post: #3
The problem has been fixed, I connected them via the NIB and corrected an error in my call to glTexture2D(); thanks anyways Grin

-CarbonX
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Opengl/Cocoa text rendering tesil 15 17,774 Mar 20, 2012 11:16 AM
Last Post: OneSadCookie
  OpenGL Text Rendering (in Cocoa) daveh84 5 7,988 Feb 19, 2009 12:44 PM
Last Post: TomorrowPlusX
  OpenGL & Cocoa - Improving frame rate daveh84 4 5,614 Feb 2, 2009 06:53 AM
Last Post: backslash
  bad depth sorting in Cocoa OpenGL aldermoore 2 4,703 Dec 30, 2008 03:07 PM
Last Post: ThemsAllTook
  Cocoa Animation Question DesertPenguin 10 7,162 Feb 12, 2008 02:58 PM
Last Post: OneSadCookie