-/* gltext, Copyright (c) 2001-2008 Jamie Zawinski <jwz@jwz.org>
+/* gltext, Copyright (c) 2001-2012 Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
#include "xlockmore.h"
#include "colors.h"
#include "tube.h"
+#include "sphere.h"
#include "rotator.h"
#include "gltrackball.h"
#include "textclient.h"
# if defined(_AIX)
sprintf(tp->text, "%s\n%s %s.%s",
uts.nodename, uts.sysname, uts.version, uts.release);
+# elif defined(USE_IPHONE)
+ /* "My iPhone\n iPhone4,1\n Darwin 11.0.0" */
+ sprintf(tp->text, "%s\n%s\n%s %s",
+ uts.nodename, uts.machine, uts.sysname, uts.release);
# elif defined(__APPLE__) /* MacOS X + XDarwin */
{
const char *file =
# else
int smooth = False;
# endif
+
if (j != stroke->num_coords)
*polysP += tube (lx, ly, 0,
coord->x, coord->y, 0,
tube_width,
tube_width * 0.15,
- TUBE_FACES, smooth, True, wire);
+ TUBE_FACES, smooth, False, wire);
lx = coord->x;
ly = coord->y;
+
+ /* Put a sphere at the endpoint of every line segment. Wasteful
+ on curves like "0" but necessary on corners like "4". */
+ if (! wire)
+ {
+ glPushMatrix();
+ glTranslatef (lx, ly, 0);
+ glScalef (tube_width, tube_width, tube_width);
+ *polysP += unit_sphere (TUBE_FACES, TUBE_FACES, wire);
+ glPopMatrix();
+ }
}
}
return (int) (ch->right + tube_width);
glPushMatrix ();
glScalef(1.1, 1.1, 1.1);
+ glRotatef(current_device_rotation(), 0, 0, 1);
{
double x, y, z;
(z - 0.5) * 8);
gltrackball_rotate (tp->trackball);
- glRotatef(current_device_rotation(), 0, 0, 1);
if (face_front_p)
{