~ubuntu-branches/ubuntu/dapper/xscreensaver/dapper-updates

« back to all changes in this revision

Viewing changes to hacks/glx/extrusion-helix2.c

  • Committer: Bazaar Package Importer
  • Author(s): Ralf Hildebrandt
  • Date: 2005-04-09 00:06:43 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20050409000643-z0abtifbt9s20pcc
Tags: 4.21-3
Patch by Joachim Breitner to check more frequently if DPMS kicked in (closes: #303374, #286664).

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#endif
20
20
 
21
21
#include <GL/gl.h>
22
 
#include <GL/glut.h>
 
22
/*#include <GL/glut.h>*/
23
23
#ifdef HAVE_GLE3
24
24
#include <GL/gle.h>
25
25
#else
26
26
#include <GL/tube.h>
27
27
#endif
28
28
 
29
 
/*  most recent mouse postion */
 
29
/* controls shape of object */
30
30
extern float lastx;
31
31
extern float lasty;
32
 
extern float rot_x;
33
 
extern float rot_y;
34
 
extern float rot_z;
35
32
 
36
33
void InitStuff_helix2 (void) 
37
34
{
45
42
 
46
43
   /* set up some matrices so that the object spins with the mouse */
47
44
   glPushMatrix ();
48
 
   glTranslatef (0.0, 0.0, -80.0);
49
 
   glRotatef(rot_x, 1, 0, 0);
50
 
   glRotatef(rot_y, 0, 1, 0);
51
 
   glRotatef(rot_z, 0, 0, 1);
52
 
/*     glRotatef (220.0, 0.0, 1.0, 0.0); */
53
 
/*     glRotatef (65.0, 1.0, 0.0, 0.0); */
 
45
/* glTranslatef (0.0, 0.0, -80.0);   */
 
46
/* glRotatef (220.0, 0.0, 1.0, 0.0); */
 
47
/* glRotatef (65.0, 1.0, 0.0, 0.0);  */
54
48
 
55
49
   /* Phew. FINALLY, Draw the helix  -- */
56
50
   gleSetJoinStyle (TUBE_NORM_EDGE | TUBE_JN_ANGLE | TUBE_JN_CAP);