Home | History | Annotate | Download | only in renderer

Lines Matching refs:cam

255             Camera cam = (Camera) super.clone();
256 cam.viewportChanged = true;
257 cam.planeState = 0;
259 cam.worldPlane = new Plane[MAX_WORLD_PLANES];
261 cam.worldPlane[i] = worldPlane[i].clone();
264 cam.coeffLeft = new float[2];
265 cam.coeffRight = new float[2];
266 cam.coeffBottom = new float[2];
267 cam.coeffTop = new float[2];
269 cam.location = location.clone();
270 cam.rotation = rotation.clone();
273 cam.projectionMatrixOverride = projectionMatrixOverride.clone();
276 cam.viewMatrix = viewMatrix.clone();
277 cam.projectionMatrix = projectionMatrix.clone();
278 cam.viewProjectionMatrix = viewProjectionMatrix.clone();
279 cam.guiBounding = (BoundingBox) guiBounding.clone();
281 cam.update();
283 return cam;
292 * @param cam
295 public void copyFrom(Camera cam) {
296 location.set(cam.location);
297 rotation.set(cam.rotation);
299 frustumNear = cam.frustumNear;
300 frustumFar = cam.frustumFar;
301 frustumLeft = cam.frustumLeft;
302 frustumRight = cam.frustumRight;
303 frustumTop = cam.frustumTop;
304 frustumBottom = cam.frustumBottom;
306 coeffLeft[0] = cam.coeffLeft[0];
307 coeffLeft[1] = cam.coeffLeft[1];
308 coeffRight[0] = cam.coeffRight[0];
309 coeffRight[1] = cam.coeffRight[1];
310 coeffBottom[0] = cam.coeffBottom[0];
311 coeffBottom[1] = cam.coeffBottom[1];
312 coeffTop[0] = cam.coeffTop[0];
313 coeffTop[1] = cam.coeffTop[1];
315 viewPortLeft = cam.viewPortLeft;
316 viewPortRight = cam.viewPortRight;
317 viewPortTop = cam.viewPortTop;
318 viewPortBottom = cam.viewPortBottom;
320 this.width = cam.width;
321 this.height = cam.height;
323 this.planeState = cam.planeState;
324 this.viewportChanged = cam.viewportChanged;
326 worldPlane[i].setNormal(cam.worldPlane[i].getNormal());
327 worldPlane[i].setConstant(cam.worldPlane[i].getConstant());
330 this.parallelProjection = cam.parallelProjection;
331 if(cam.projectionMatrixOverride != null) {
333 this.projectionMatrixOverride = cam.projectionMatrixOverride.clone();
335 this.projectionMatrixOverride.set(cam.projectionMatrixOverride);
340 this.viewMatrix.set(cam.viewMatrix);
341 this.projectionMatrix.set(cam.projectionMatrix);
342 this.viewProjectionMatrix.set(cam.viewProjectionMatrix);
344 this.guiBounding.setXExtent(cam.guiBounding.getXExtent());
345 this.guiBounding.setYExtent(cam.guiBounding.getYExtent());
346 this.guiBounding.setZExtent(cam.guiBounding.getZExtent());
347 this.guiBounding.setCenter(cam.guiBounding.getCenter());
348 this.guiBounding.setCheckPlane(cam.guiBounding.getCheckPlane());
350 this.name = cam.name;
674 * cam.setLeft(rotation.getRotationColumn(0));<br>
675 * cam.setUp(rotation.getRotationColumn(1));<br>
676 * cam.setDirection(rotation.getRotationColumn(2));<br>