Cliff Biffle avatar Cliff Biffle committed 615e63c

Renamed KVDepthView's spaceModel property to renderer.

Comments (0)

Files changed (2)

   NSColor *deviceWhite;  
 }
 
-@property(retain) KVRenderer *spaceModel;
+@property(retain) KVRenderer *renderer;
 
 @property(assign) BOOL frozen;
 @property(assign, nonatomic) BOOL anaglyph;
 @synthesize updateQueued;
 
 @synthesize textured;
-@synthesize spaceModel;
+@synthesize renderer;
 
 @synthesize colorTransform;
 - (void) setColorTransform: (projective_transform_t)newTransform {
     .scale = { 0.92F, 0.92F },
   };
   
-  self.spaceModel = [[[KVRenderer alloc] init] autorelease];
+  self.renderer = [[[KVRenderer alloc] init] autorelease];
   self.polygonMode = KVFilledPolygonMode;
 }
 
   glClearColor(0.3f, 0, 0.5f, 0);
   
   [self resetCamera];
-  [spaceModel initGL];
+  [renderer initGL];
 }
 
 - (void) resetCamera {
   }
   
   // Draw right eye or center.
-  [spaceModel drawInCurrentOpenGLContextWithOptions: options];
+  [renderer drawInCurrentOpenGLContextWithOptions: options];
   
   if (self.anaglyph) {
     // Draw left eye.
     [self updateProjectionWithOffset: -INTEROCULAR_DISTANCE / 2];
     [self updateModelViewWithOffset: -INTEROCULAR_DISTANCE / 2];
     glColorMask(GL_TRUE, GL_FALSE, GL_FALSE, GL_TRUE);
-    [spaceModel drawInCurrentOpenGLContextWithOptions: options];
+    [renderer drawInCurrentOpenGLContextWithOptions: options];
     
     glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
   }
 
 - (void) setLatestDepthSamples: (NSData *)data {
   if (!self.frozen) {
-    [spaceModel setDepthSamples: data];
+    [renderer setDepthSamples: data];
     [self setNeedsDisplay: YES];
   }
 }
 
 - (void) setLatestColorSamples: (NSData *)data {
   if (!self.frozen) {
-    [spaceModel setColorSamples: data];
+    [renderer setColorSamples: data];
     [self setNeedsDisplay: YES];
   }
 }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.