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 |
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 |
94 |
- (void) dealloc |
- (void) dealloc |
95 |
{ |
{ |
96 |
RELEASE(_cam); |
RELEASE(_cam); |
|
RELEASE(_frustum); |
|
97 |
[super dealloc]; |
[super dealloc]; |
98 |
} |
} |
99 |
|
|
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 |
} |
} |
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) |