~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to intern/decimation/test/decimate_glut_test/intern/main.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2007-05-17 11:47:59 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070517114759-yp4ybrnhp2u7pk66
Tags: 2.44-1
* New upstream release.
* Drop debian/patches/01_64bits_stupidity, not needed anymore: as of this
  version blender is 64 bits safe again. Adjust README.Debian accordingly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 * $Id: main.cpp,v 1.4 2003/05/01 19:52:02 sirdude Exp $
 
2
 * $Id: main.cpp,v 1.5 2007/04/04 13:18:27 campbellbarton Exp $
3
3
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
4
4
 *
5
5
 * This program is free software; you can redistribute it and/or
254
254
  /* Setup the view of the cube. */
255
255
  glMatrixMode(GL_PROJECTION);
256
256
 
257
 
        // centre of the box + 3* depth of box
 
257
        // center of the box + 3* depth of box
258
258
 
259
 
  MT_Vector3 centre = (min + max) * 0.5;
 
259
  MT_Vector3 center = (min + max) * 0.5;
260
260
  MT_Vector3 diag = max - min;
261
261
 
262
262
        float depth = diag.length();
272
272
 
273
273
 
274
274
  gluLookAt(
275
 
        centre.x(), centre.y(), centre.z() + distance*depth,  /* eye is at (0,0,5) */
276
 
    centre.x(), centre.y(), centre.z(),      /* center is at (0,0,0) */
 
275
        center.x(), center.y(), center.z() + distance*depth,  /* eye is at (0,0,5) */
 
276
    center.x(), center.y(), center.z(),      /* center is at (0,0,0) */
277
277
    0.0, 1.0, 0.);      /* up is in positive Y direction */
278
278
 
279
279
  glPushMatrix();