From 066d495c81969e8e627c26e1a8c4f031b97fef20 Mon Sep 17 00:00:00 2001 From: dcnieho Date: Fri, 5 Apr 2013 08:48:33 +0000 Subject: [PATCH] fixed docs for glut*Torus, per suggestion of Chris Marshall. much more understandable now indeed. Also changed GLdouble params of geometry functions to normal doubles to match code in trunk git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1595 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/web-src/docs/api.php | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/freeglut/web-src/docs/api.php b/freeglut/web-src/docs/api.php index 1a0cfcb..77736aa 100644 --- a/freeglut/web-src/docs/api.php +++ b/freeglut/web-src/docs/api.php @@ -1971,8 +1971,8 @@ draw a wireframe and solid sphere respectively.

Definition

-void glutWireSphere (GLdouble dRadius, GLint slices, GLint stacks);
-void glutSolidSphere(GLdouble dRadius, GLint slices, GLint stacks);

+void glutWireSphere (double dRadius, GLint slices, GLint stacks);
+void glutSolidSphere(double dRadius, GLint slices, GLint stacks);

Arguments

dRadius  The desired radius of the sphere

@@ -2007,17 +2007,16 @@ a wireframe and solid torus (donut shape) respectively.

Definition

-void glutWireTorus (GLdouble dInnerRadius, GLdouble dOuterRadius, GLint +void glutWireTorus (double dInnerRadius, double dOuterRadius, GLint nSides, GLint nRings);
-void glutSolidTorus(GLdouble dInnerRadius, GLdouble dOuterRadius, GLint +void glutSolidTorus(double dInnerRadius, double dOuterRadius, GLint nSides, GLint nRings);

Arguments

-

dInnerRadius  The desired inner radius of the torus, -from the origin to the circle defining the centers of the outer circles

+

dInnerRadius  The radius of the tube.

-

dOuterRadius  The desired outer radius of the torus, -from the center of the outer circle to the actual surface of the torus

+

dOuterRadius  The distance from the center of the +Torus to the center of the tube.

nSides        The desired number of segments in a single outer circle of the torus

@@ -2046,9 +2045,9 @@ a wireframe and solid cone respectively.

Definition

-void glutWireCylinder (GLdouble base, GLdouble height, GLint slices, GLint +void glutWireCylinder (double base, double height, GLint slices, GLint stacks);
-void glutSolidCylinder(GLdouble base, GLdouble height, GLint slices, GLint +void glutSolidCylinder(double base, double height, GLint slices, GLint stacks);

Arguments

@@ -2073,9 +2072,9 @@ a wireframe and solid cone respectively.

Definition

-void glutWireCone (GLdouble base, GLdouble height, GLint slices, GLint +void glutWireCone (double base, double height, GLint slices, GLint stacks);
-void glutSolidCone(GLdouble base, GLdouble height, GLint slices, GLint +void glutSolidCone(double base, double height, GLint slices, GLint stacks);

Arguments

@@ -2111,8 +2110,8 @@ wireframe and solid cube respectively.

Definition

-void glutWireCube (GLdouble dSize);
-void glutSolidCube(GLdouble dSize);

+void glutWireCube (double dSize);
+void glutSolidCube(double dSize);

Arguments

dSize  The desired length of an edge of the cube

@@ -2275,8 +2274,8 @@ draw a wireframe and solid teapot respectively.

Definition

-void glutWireTeapot (GLdouble dSize);
-void glutSolidTeapot(GLdouble dSize);

+void glutWireTeapot (double dSize);
+void glutSolidTeapot(double dSize);

Arguments

dSize  The desired size of the teapot