Copyright (c) Mark J. Kilgard, 1994, 1997.
(c) Copyright 1993, Silicon Graphics, Inc.
ALL RIGHTS RESERVED
Permission to use, copy, modify, and distribute this software for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both the copyright notice and this permission notice appear in supporting documentation, and that the name of Silicon Graphics, Inc. not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission.
THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT, SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION, LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
US Government Users Restricted Rights
Use, duplication, or disclosure by the Government is subject to restrictions set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or in similar or successor clauses in the FAR or the DOD or NASA FAR Supplement. Unpublished-- rights reserved under the copyright laws of the United States. Contractor/manufacturer is Silicon Graphics, Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
OpenGL(TM) is a trademark of Silicon Graphics, Inc.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private static final BitmapFontRec[] | |
| private static final int[][] | |
| private static final float[][] | |
| private static float[][] | |
| private float[][] | |
| private final GLUgl2 | |
| private static final float[][] | |
| private static final int[][] | |
| private static final float[][] | |
| private static final int[][] | |
| private GLUquadric | |
| private static final double[][] | |
| private static final double[][] | |
| private static final int[][] | |
| public static final int | |
| public static final int | |
| private static final StrokeFontRec[] | |
| private static final float | |
| private static final float[][] | |
| private static final float[][] | |
| private static final int[][] | |
| private static final float[] | |
| private static final int[][] | |
| private static final float | |
| private static final float |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | beginBitmap(final GL2 gl, final int[] swapbytes, final int[] lsbfirst, final int[] rowlength, final int[] skiprows, final int[] skippixels, final int[] alignment)
|
| private static void | |
| private static void | |
| private static void | |
| private void | |
| private static void | |
| private void | |
| private static void | drawtriangle(final GL2 gl, final int i, final float[][] data, final int[][] ndx, final int shadeType)
|
| private static void | |
| private static void | evaluateTeapotMesh(final GL2 gl, final int grid, final int type, final int partNum, final boolean repairSingularities)
|
| private static BitmapFontRec | |
| private static StrokeFontRec | |
| public void | |
| public int | |
| public void | |
| public int | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | glutSolidRhombicDodecahedron()
This function draws a solid-shaded dodecahedron whose facets are rhombic and whose vertices are at unit radius. |
| public void | |
| public void | glutSolidTeapot(final double
the factor by which to scale the teapot scale)Renders the teapot as a solid shape of the specified size. |
| public void | glutSolidTeapot(final double
the factor by which to scale the teapot scale, final boolean whether to create the teapot in exactly the same way as in the C
implementation of GLUT cStyle)Renders the teapot as a solid shape of the specified size. |
| public void | |
| public void | glutSolidTorus(final double innerRadius, final double outerRadius, final int nsides, final int rings)
|
| public void | |
| public int | |
| public float | |
| public void | |
| public int | |
| public float | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | glutWireRhombicDodecahedron()
This function draws a wireframe dodecahedron whose facets are rhombic and whose vertices are at unit radius. |
| public void | |
| public void | glutWireTeapot(final double
the factor by which to scale the teapot scale)Renders the teapot as a wireframe shape of the specified size. |
| public void | glutWireTeapot(final double
the factor by which to scale the teapot scale, final boolean whether to create the teapot in exactly the same way as in the C
implementation of GLUT cStyle)Renders the teapot as a wireframe shape of the specified size. |
| public void | |
| public void | glutWireTorus(final double innerRadius, final double outerRadius, final int nsides, final int rings)
|
| private static void | |
| private void | |
| private static void | |
| private static void | |
| private void | |
| private void | |
| private static void | |
| private static void | |
| private static void | |
| private static final void |
| BITMAP_8_BY_13 | back to summary |
|---|---|
| public static final int BITMAP_8_BY_13 | |
| BITMAP_9_BY_15 | back to summary |
|---|---|
| public static final int BITMAP_9_BY_15 | |
| BITMAP_HELVETICA_10 | back to summary |
|---|---|
| public static final int BITMAP_HELVETICA_10 | |
| BITMAP_HELVETICA_12 | back to summary |
|---|---|
| public static final int BITMAP_HELVETICA_12 | |
| BITMAP_HELVETICA_18 | back to summary |
|---|---|
| public static final int BITMAP_HELVETICA_18 | |
| BITMAP_TIMES_ROMAN_10 | back to summary |
|---|---|
| public static final int BITMAP_TIMES_ROMAN_10 | |
| BITMAP_TIMES_ROMAN_24 | back to summary |
|---|---|
| public static final int BITMAP_TIMES_ROMAN_24 | |
| bitmapFonts | back to summary |
|---|---|
| private static final BitmapFontRec[] bitmapFonts | |
| boxFaces | back to summary |
|---|---|
| private static final int[][] boxFaces | |
| boxNormals | back to summary |
|---|---|
| private static final float[][] boxNormals | |
| boxVertices | back to summary |
|---|---|
| private static float[][] boxVertices | |
| dodec | back to summary |
|---|---|
| private float[][] dodec | |
| glu | back to summary |
|---|---|
| private final GLUgl2 glu | |
| idata | back to summary |
|---|---|
| private static final float[][] idata | |
| index | back to summary |
|---|---|
| private static final int[][] index | |
| odata | back to summary |
|---|---|
| private static final float[][] odata | |
| ondex | back to summary |
|---|---|
| private static final int[][] ondex | |
| quadObj | back to summary |
|---|---|
| private GLUquadric quadObj | |
| rdod_n | back to summary |
|---|---|
| private static final double[][] rdod_n | |
| rdod_r | back to summary |
|---|---|
| private static final double[][] rdod_r | |
| rdod_v | back to summary |
|---|---|
| private static final int[][] rdod_v | |
| STROKE_MONO_ROMAN | back to summary |
|---|---|
| public static final int STROKE_MONO_ROMAN | |
| STROKE_ROMAN | back to summary |
|---|---|
| public static final int STROKE_ROMAN | |
| strokeFonts | back to summary |
|---|---|
| private static final StrokeFontRec[] strokeFonts | |
| T | back to summary |
|---|---|
| private static final float T | |
| tdata | back to summary |
|---|---|
| private static final float[][] tdata | |
| teapotCPData | back to summary |
|---|---|
| private static final float[][] teapotCPData | |
| teapotPatchData | back to summary |
|---|---|
| private static final int[][] teapotPatchData | |
| teapotTex | back to summary |
|---|---|
| private static final float[] teapotTex | |
| tndex | back to summary |
|---|---|
| private static final int[][] tndex | |
| X | back to summary |
|---|---|
| private static final float X | |
| Z | back to summary |
|---|---|
| private static final float Z | |
| GLUT | back to summary |
|---|---|
| public GLUT() | |
| beginBitmap | back to summary |
|---|---|
| private static void beginBitmap(final GL2 gl, final int[] swapbytes, final int[] lsbfirst, final int[] rowlength, final int[] skiprows, final int[] skippixels, final int[] alignment) | |
| bitmapCharacterImpl | back to summary |
|---|---|
| private static void bitmapCharacterImpl(final GL2 gl, final int font, final char cin) | |
| crossprod | back to summary |
|---|---|
| private static void crossprod(final float[] v1, final float[] v2, final float[] prod) | |
| diff3 | back to summary |
|---|---|
| private static void diff3(final float[] a, final float[] b, final float[] c) | |
| dodecahedron | back to summary |
|---|---|
| private void dodecahedron(final GL2 gl, final int type) | |
| doughnut | back to summary |
|---|---|
| private static void doughnut(final GL2 gl, final double r, final double R, final int nsides, final int rings) | |
| drawBox | back to summary |
|---|---|
| private void drawBox(final GL2 gl, final float size, final int type) | |
| drawtriangle | back to summary |
|---|---|
| private static void drawtriangle(final GL2 gl, final int i, final float[][] data, final int[][] ndx, final int shadeType) | |
| endBitmap | back to summary |
|---|---|
| private static void endBitmap(final GL2 gl, final int[] swapbytes, final int[] lsbfirst, final int[] rowlength, final int[] skiprows, final int[] skippixels, final int[] alignment) | |
| evaluateTeapotMesh | back to summary |
|---|---|
| private static void evaluateTeapotMesh(final GL2 gl, final int grid, final int type, final int partNum, final boolean repairSingularities) | |
| getBitmapFont | back to summary |
|---|---|
| private static BitmapFontRec getBitmapFont(final int font) | |
| getStrokeFont | back to summary |
|---|---|
| private static StrokeFontRec getStrokeFont(final int font) | |
| glutBitmapCharacter | back to summary |
|---|---|
| public void glutBitmapCharacter(final int font, final char character) | |
| glutBitmapLength | back to summary |
|---|---|
| public int glutBitmapLength(final int font, final String string) | |
| glutBitmapString | back to summary |
|---|---|
| public void glutBitmapString(final int font, final String string) | |
| glutBitmapWidth | back to summary |
|---|---|
| public int glutBitmapWidth(final int font, final char character) | |
| glutSolidCone | back to summary |
|---|---|
| public void glutSolidCone(final double base, final double height, final int slices, final int stacks) | |
| glutSolidCube | back to summary |
|---|---|
| public void glutSolidCube(final float size) | |
| glutSolidCylinder | back to summary |
|---|---|
| public void glutSolidCylinder(final double radius, final double height, final int slices, final int stacks) | |
| glutSolidDodecahedron | back to summary |
|---|---|
| public void glutSolidDodecahedron() | |
| glutSolidIcosahedron | back to summary |
|---|---|
| public void glutSolidIcosahedron() | |
| glutSolidOctahedron | back to summary |
|---|---|
| public void glutSolidOctahedron() | |
| glutSolidRhombicDodecahedron | back to summary |
|---|---|
| public void glutSolidRhombicDodecahedron() This function draws a solid-shaded dodecahedron whose facets are rhombic and whose vertices are at unit radius. No facet lies normal to any coordinate axes. The polyhedron is centered at the origin. | |
| glutSolidSphere | back to summary |
|---|---|
| public void glutSolidSphere(final double radius, final int slices, final int stacks) | |
| glutSolidTeapot | back to summary |
|---|---|
| public void glutSolidTeapot(final double scale) Renders the teapot as a solid shape of the specified size. The teapot is created in a way that replicates the C GLUT implementation.
| |
| glutSolidTeapot | back to summary |
|---|---|
| public void glutSolidTeapot(final double scale, final boolean cStyle) Renders the teapot as a solid shape of the specified size. The teapot can either be created in a way that is backward-compatible with the standard C glut library (i.e. broken), or in a more pleasing way (i.e. with surfaces whose front-faces point outwards and standing on the z=0 plane, instead of the y=-1 plane). Both surface normals and texture coordinates for the teapot are generated. The teapot is generated with OpenGL evaluators.
| |
| glutSolidTetrahedron | back to summary |
|---|---|
| public void glutSolidTetrahedron() | |
| glutSolidTorus | back to summary |
|---|---|
| public void glutSolidTorus(final double innerRadius, final double outerRadius, final int nsides, final int rings) | |
| glutStrokeCharacter | back to summary |
|---|---|
| public void glutStrokeCharacter(final int font, final char character) | |
| glutStrokeLength | back to summary |
|---|---|
| public int glutStrokeLength(final int font, final String string) | |
| glutStrokeLengthf | back to summary |
|---|---|
| public float glutStrokeLengthf(final int font, final String string) | |
| glutStrokeString | back to summary |
|---|---|
| public void glutStrokeString(final int font, final String string) | |
| glutStrokeWidth | back to summary |
|---|---|
| public int glutStrokeWidth(final int font, final char character) | |
| glutStrokeWidthf | back to summary |
|---|---|
| public float glutStrokeWidthf(final int font, final char character) | |
| glutWireCone | back to summary |
|---|---|
| public void glutWireCone(final double base, final double height, final int slices, final int stacks) | |
| glutWireCube | back to summary |
|---|---|
| public void glutWireCube(final float size) | |
| glutWireCylinder | back to summary |
|---|---|
| public void glutWireCylinder(final double radius, final double height, final int slices, final int stacks) | |
| glutWireDodecahedron | back to summary |
|---|---|
| public void glutWireDodecahedron() | |
| glutWireIcosahedron | back to summary |
|---|---|
| public void glutWireIcosahedron() | |
| glutWireOctahedron | back to summary |
|---|---|
| public void glutWireOctahedron() | |
| glutWireRhombicDodecahedron | back to summary |
|---|---|
| public void glutWireRhombicDodecahedron() This function draws a wireframe dodecahedron whose facets are rhombic and whose vertices are at unit radius. No facet lies normal to any coordinate axes. The polyhedron is centered at the origin. | |
| glutWireSphere | back to summary |
|---|---|
| public void glutWireSphere(final double radius, final int slices, final int stacks) | |
| glutWireTeapot | back to summary |
|---|---|
| public void glutWireTeapot(final double scale) Renders the teapot as a wireframe shape of the specified size. The teapot is created in a way that replicates the C GLUT implementation.
| |
| glutWireTeapot | back to summary |
|---|---|
| public void glutWireTeapot(final double scale, final boolean cStyle) Renders the teapot as a wireframe shape of the specified size. The teapot can either be created in a way that is backward-compatible with the standard C glut library (i.e. broken), or in a more pleasing way (i.e. with surfaces whose front-faces point outwards and standing on the z=0 plane, instead of the y=-1 plane). Both surface normals and texture coordinates for the teapot are generated. The teapot is generated with OpenGL evaluators.
| |
| glutWireTetrahedron | back to summary |
|---|---|
| public void glutWireTetrahedron() | |
| glutWireTorus | back to summary |
|---|---|
| public void glutWireTorus(final double innerRadius, final double outerRadius, final int nsides, final int rings) | |
| icosahedron | back to summary |
|---|---|
| private static void icosahedron(final GL2 gl, final int shadeType) | |
| initDodecahedron | back to summary |
|---|---|
| private void initDodecahedron() | |
| normalize | back to summary |
|---|---|
| private static void normalize(final float[] v) | |
| octahedron | back to summary |
|---|---|
| private static void octahedron(final GL2 gl, final int shadeType) | |
| pentagon | back to summary |
|---|---|
| private void pentagon(final GL2 gl, final int a, final int b, final int c, final int d, final int e, final int shadeType) | |
| quadObjInit | back to summary |
|---|---|
| private void quadObjInit(final GLUgl2 glu) | |
| recorditem | back to summary |
|---|---|
| private static void recorditem(final GL2 gl, final float[] n1, final float[] n2, final float[] n3, final int shadeType) | |
| subdivide | back to summary |
|---|---|
| private static void subdivide(final GL2 gl, final float[] v0, final float[] v1, final float[] v2, final int shadeType) | |
| teapot | back to summary |
|---|---|
| private static void teapot(final GL2 gl, final int grid, final double scale, final int type, final boolean backCompatible) | |
| tetrahedron | back to summary |
|---|---|
| private static final void tetrahedron(final GL2 gl, final int shadeType) | |