Changeset 1317 for trunk/pysoy/src/bodies
- Timestamp:
- 07/15/08 04:39:26 (5 months ago)
- Files:
-
- 1 modified
-
trunk/pysoy/src/bodies/Camera.pym (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pysoy/src/bodies/Camera.pym
r1274 r1317 38 38 cdef int _i 39 39 self._fovy = 45.0 40 self._znear = 1.0 41 self._zfar = 100.0 40 42 self.mass = 0 41 43 self._wire = wireframe … … 112 114 # 113 115 114 cdef void _project(self ) :116 cdef void _project(self, gl.GLdouble _aspect) : 115 117 cdef gl.GLfloat _mtx[16] 116 118 # … … 136 138 # 137 139 # Now we apply an inverse matrix to translate to the Scene's origin 140 gl.glMatrixMode(gl.GL_MODELVIEW) 141 gl.glLoadIdentity() 138 142 _mtx[0] = self._rotation[0] 139 143 _mtx[1] = self._rotation[1] … … 154 158 gl.glLoadMatrixf(_mtx) 155 159 gl.glTranslatef(-self._position[0], -self._position[1], -self._position[2]) 156 self._scene._render( )160 self._scene._render(self._fovy, _aspect, self._znear, self._zfar) 157 161 # 158 162 # Framerate calc
