/[hegemonie]/hegemonie/ModelViewer/ModelView.m
ViewVC logotype

Diff of /hegemonie/ModelViewer/ModelView.m

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by ano, Fri Aug 1 20:18:51 2003 UTC revision 1.10 by ano, Tue Aug 5 09:57:27 2003 UTC
# Line 59  float translateZ; Line 59  float translateZ;
59        _init = NO;        _init = NO;
60        _initModel = NO;        _initModel = NO;
61        _cam = [Camera alloc];        _cam = [Camera alloc];
       _frustum = [Frustum alloc];  
       // _control = [[ModelController alloc] init];    
62            
63       [_cam  initWithFovy: 60       [_cam  initWithFovy: 60
64               aspect: 1.0               aspect: 1.0
# Line 80  float translateZ; Line 78  float translateZ;
78  //          (GLdouble)[_cam up].y,  //          (GLdouble)[_cam up].y,
79  //          (GLdouble)[_cam up].z);  //          (GLdouble)[_cam up].z);
80    
 //       [_frustum initWithCurrentGlState];  
81                
82  //       [_cam  initWithFovy: 360  //       [_cam  initWithFovy: 360
83  //           aspect: 1.0  //           aspect: 1.0
# Line 97  float translateZ; Line 94  float translateZ;
94  - (void) dealloc  - (void) dealloc
95  {  {
96    RELEASE(_cam);    RELEASE(_cam);
   RELEASE(_frustum);  
97    [super dealloc];    [super dealloc];
98  }  }
99    
# Line 123  float translateZ; Line 119  float translateZ;
119              (GLdouble)[_cam up].x,              (GLdouble)[_cam up].x,
120              (GLdouble)[_cam up].y,              (GLdouble)[_cam up].y,
121              (GLdouble)[_cam up].z);              (GLdouble)[_cam up].z);
   [_frustum initWithCurrentGlState];  
   
122        
123    return YES;    return YES;
124  }  }
# Line 176  float translateZ; Line 170  float translateZ;
170              (GLdouble)[_cam up].x,              (GLdouble)[_cam up].x,
171              (GLdouble)[_cam up].y,              (GLdouble)[_cam up].y,
172              (GLdouble)[_cam up].z);              (GLdouble)[_cam up].z);
   [_frustum initWithCurrentGlState];  
173    glRotatef(-90,1.0,0.0,0.0);    glRotatef(-90,1.0,0.0,0.0);
174        
175   if (_affiche)   if (_affiche)

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26