JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.util.gl2.GLUT Class Reference

Subset of the routines provided by the GLUT interface. More...

Collaboration diagram for com.jogamp.opengl.util.gl2.GLUT:

Public Member Functions

void glutWireSphere (final double radius, final int slices, final int stacks)
 
void glutSolidSphere (final double radius, final int slices, final int stacks)
 
void glutWireCone (final double base, final double height, final int slices, final int stacks)
 
void glutSolidCone (final double base, final double height, final int slices, final int stacks)
 
void glutWireCylinder (final double radius, final double height, final int slices, final int stacks)
 
void glutSolidCylinder (final double radius, final double height, final int slices, final int stacks)
 
void glutWireCube (final float size)
 
void glutSolidCube (final float size)
 
void glutWireTorus (final double innerRadius, final double outerRadius, final int nsides, final int rings)
 
void glutSolidTorus (final double innerRadius, final double outerRadius, final int nsides, final int rings)
 
void glutWireDodecahedron ()
 
void glutSolidDodecahedron ()
 
void glutWireOctahedron ()
 
void glutSolidOctahedron ()
 
void glutWireIcosahedron ()
 
void glutSolidIcosahedron ()
 
void glutWireTetrahedron ()
 
void glutSolidTetrahedron ()
 
void glutSolidTeapot (final double scale)
 Renders the teapot as a solid shape of the specified size. More...
 
void glutSolidTeapot (final double scale, final boolean cStyle)
 Renders the teapot as a solid shape of the specified size. More...
 
void glutWireTeapot (final double scale)
 Renders the teapot as a wireframe shape of the specified size. More...
 
void glutWireTeapot (final double scale, final boolean cStyle)
 Renders the teapot as a wireframe shape of the specified size. More...
 
void glutBitmapCharacter (final int font, final char character)
 
void glutBitmapString (final int font, final String string)
 
int glutBitmapWidth (final int font, final char character)
 
void glutStrokeCharacter (final int font, final char character)
 
void glutStrokeString (final int font, final String string)
 
int glutStrokeWidth (final int font, final char character)
 
float glutStrokeWidthf (final int font, final char character)
 
int glutBitmapLength (final int font, final String string)
 
int glutStrokeLength (final int font, final String string)
 
float glutStrokeLengthf (final int font, final String string)
 
void glutWireRhombicDodecahedron ()
 This function draws a wireframe dodecahedron whose facets are rhombic and whose vertices are at unit radius. More...
 
void glutSolidRhombicDodecahedron ()
 This function draws a solid-shaded dodecahedron whose facets are rhombic and whose vertices are at unit radius. More...
 

Static Public Attributes

static final int STROKE_ROMAN = 0
 
static final int STROKE_MONO_ROMAN = 1
 
static final int BITMAP_9_BY_15 = 2
 
static final int BITMAP_8_BY_13 = 3
 
static final int BITMAP_TIMES_ROMAN_10 = 4
 
static final int BITMAP_TIMES_ROMAN_24 = 5
 
static final int BITMAP_HELVETICA_10 = 6
 
static final int BITMAP_HELVETICA_12 = 7
 
static final int BITMAP_HELVETICA_18 = 8
 

Detailed Description

Subset of the routines provided by the GLUT interface.

Note the signatures of many of the methods are necessarily different than the corresponding C version. A GLUT object must only be used from one particular thread at a time.

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.

Definition at line 96 of file GLUT.java.

Member Function Documentation

◆ glutBitmapCharacter()

void com.jogamp.opengl.util.gl2.GLUT.glutBitmapCharacter ( final int  font,
final char  character 
)

Definition at line 327 of file GLUT.java.

Here is the call graph for this function:

◆ glutBitmapLength()

int com.jogamp.opengl.util.gl2.GLUT.glutBitmapLength ( final int  font,
final String  string 
)

Definition at line 453 of file GLUT.java.

◆ glutBitmapString()

void com.jogamp.opengl.util.gl2.GLUT.glutBitmapString ( final int  font,
final String  string 
)

Definition at line 352 of file GLUT.java.

Here is the call graph for this function:

◆ glutBitmapWidth()

int com.jogamp.opengl.util.gl2.GLUT.glutBitmapWidth ( final int  font,
final char  character 
)

Definition at line 380 of file GLUT.java.

◆ glutSolidCone()

void com.jogamp.opengl.util.gl2.GLUT.glutSolidCone ( final double  base,
final double  height,
final int  slices,
final int  stacks 
)

Definition at line 144 of file GLUT.java.

Here is the call graph for this function:

◆ glutSolidCube()

void com.jogamp.opengl.util.gl2.GLUT.glutSolidCube ( final float  size)

Definition at line 213 of file GLUT.java.

Here is the call graph for this function:

◆ glutSolidCylinder()

void com.jogamp.opengl.util.gl2.GLUT.glutSolidCylinder ( final double  radius,
final double  height,
final int  slices,
final int  stacks 
)

Definition at line 165 of file GLUT.java.

Here is the call graph for this function:

◆ glutSolidDodecahedron()

void com.jogamp.opengl.util.gl2.GLUT.glutSolidDodecahedron ( )

Definition at line 235 of file GLUT.java.

Here is the call graph for this function:

◆ glutSolidIcosahedron()

void com.jogamp.opengl.util.gl2.GLUT.glutSolidIcosahedron ( )

Definition at line 251 of file GLUT.java.

Here is the call graph for this function:

◆ glutSolidOctahedron()

void com.jogamp.opengl.util.gl2.GLUT.glutSolidOctahedron ( )

Definition at line 243 of file GLUT.java.

Here is the call graph for this function:

◆ glutSolidRhombicDodecahedron()

void com.jogamp.opengl.util.gl2.GLUT.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.

Definition at line 514 of file GLUT.java.

Here is the call graph for this function:

◆ glutSolidSphere()

void com.jogamp.opengl.util.gl2.GLUT.glutSolidSphere ( final double  radius,
final int  slices,
final int  stacks 
)

Definition at line 123 of file GLUT.java.

Here is the call graph for this function:

◆ glutSolidTeapot() [1/2]

void com.jogamp.opengl.util.gl2.GLUT.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.

Parameters
scalethe factor by which to scale the teapot

Definition at line 270 of file GLUT.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ glutSolidTeapot() [2/2]

void com.jogamp.opengl.util.gl2.GLUT.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.

Parameters
scalethe factor by which to scale the teapot
cStylewhether to create the teapot in exactly the same way as in the C implementation of GLUT

Definition at line 289 of file GLUT.java.

Here is the call graph for this function:

◆ glutSolidTetrahedron()

void com.jogamp.opengl.util.gl2.GLUT.glutSolidTetrahedron ( )

Definition at line 259 of file GLUT.java.

Here is the call graph for this function:

◆ glutSolidTorus()

void com.jogamp.opengl.util.gl2.GLUT.glutSolidTorus ( final double  innerRadius,
final double  outerRadius,
final int  nsides,
final int  rings 
)

Definition at line 226 of file GLUT.java.

Here is the call graph for this function:

◆ glutStrokeCharacter()

void com.jogamp.opengl.util.gl2.GLUT.glutStrokeCharacter ( final int  font,
final char  character 
)

Definition at line 392 of file GLUT.java.

Here is the call graph for this function:

◆ glutStrokeLength()

int com.jogamp.opengl.util.gl2.GLUT.glutStrokeLength ( final int  font,
final String  string 
)

Definition at line 468 of file GLUT.java.

Here is the call graph for this function:

◆ glutStrokeLengthf()

float com.jogamp.opengl.util.gl2.GLUT.glutStrokeLengthf ( final int  font,
final String  string 
)

Definition at line 472 of file GLUT.java.

Here is the caller graph for this function:

◆ glutStrokeString()

void com.jogamp.opengl.util.gl2.GLUT.glutStrokeString ( final int  font,
final String  string 
)

Definition at line 413 of file GLUT.java.

Here is the call graph for this function:

◆ glutStrokeWidth()

int com.jogamp.opengl.util.gl2.GLUT.glutStrokeWidth ( final int  font,
final char  character 
)

Definition at line 437 of file GLUT.java.

Here is the call graph for this function:

◆ glutStrokeWidthf()

float com.jogamp.opengl.util.gl2.GLUT.glutStrokeWidthf ( final int  font,
final char  character 
)

Definition at line 441 of file GLUT.java.

Here is the caller graph for this function:

◆ glutWireCone()

void com.jogamp.opengl.util.gl2.GLUT.glutWireCone ( final double  base,
final double  height,
final int  slices,
final int  stacks 
)

Definition at line 133 of file GLUT.java.

Here is the call graph for this function:

◆ glutWireCube()

void com.jogamp.opengl.util.gl2.GLUT.glutWireCube ( final float  size)

Definition at line 209 of file GLUT.java.

Here is the call graph for this function:

◆ glutWireCylinder()

void com.jogamp.opengl.util.gl2.GLUT.glutWireCylinder ( final double  radius,
final double  height,
final int  slices,
final int  stacks 
)

Definition at line 155 of file GLUT.java.

Here is the call graph for this function:

◆ glutWireDodecahedron()

void com.jogamp.opengl.util.gl2.GLUT.glutWireDodecahedron ( )

Definition at line 231 of file GLUT.java.

Here is the call graph for this function:

◆ glutWireIcosahedron()

void com.jogamp.opengl.util.gl2.GLUT.glutWireIcosahedron ( )

Definition at line 247 of file GLUT.java.

Here is the call graph for this function:

◆ glutWireOctahedron()

void com.jogamp.opengl.util.gl2.GLUT.glutWireOctahedron ( )

Definition at line 239 of file GLUT.java.

Here is the call graph for this function:

◆ glutWireRhombicDodecahedron()

void com.jogamp.opengl.util.gl2.GLUT.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.

Definition at line 494 of file GLUT.java.

Here is the call graph for this function:

◆ glutWireSphere()

void com.jogamp.opengl.util.gl2.GLUT.glutWireSphere ( final double  radius,
final int  slices,
final int  stacks 
)

Definition at line 113 of file GLUT.java.

Here is the call graph for this function:

◆ glutWireTeapot() [1/2]

void com.jogamp.opengl.util.gl2.GLUT.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.

Parameters
scalethe factor by which to scale the teapot

Definition at line 300 of file GLUT.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ glutWireTeapot() [2/2]

void com.jogamp.opengl.util.gl2.GLUT.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.

Parameters
scalethe factor by which to scale the teapot
cStylewhether to create the teapot in exactly the same way as in the C implementation of GLUT

Definition at line 319 of file GLUT.java.

Here is the call graph for this function:

◆ glutWireTetrahedron()

void com.jogamp.opengl.util.gl2.GLUT.glutWireTetrahedron ( )

Definition at line 255 of file GLUT.java.

Here is the call graph for this function:

◆ glutWireTorus()

void com.jogamp.opengl.util.gl2.GLUT.glutWireTorus ( final double  innerRadius,
final double  outerRadius,
final int  nsides,
final int  rings 
)

Definition at line 217 of file GLUT.java.

Here is the call graph for this function:

Member Data Documentation

◆ BITMAP_8_BY_13

final int com.jogamp.opengl.util.gl2.GLUT.BITMAP_8_BY_13 = 3
static

Definition at line 100 of file GLUT.java.

◆ BITMAP_9_BY_15

final int com.jogamp.opengl.util.gl2.GLUT.BITMAP_9_BY_15 = 2
static

Definition at line 99 of file GLUT.java.

◆ BITMAP_HELVETICA_10

final int com.jogamp.opengl.util.gl2.GLUT.BITMAP_HELVETICA_10 = 6
static

Definition at line 103 of file GLUT.java.

◆ BITMAP_HELVETICA_12

final int com.jogamp.opengl.util.gl2.GLUT.BITMAP_HELVETICA_12 = 7
static

Definition at line 104 of file GLUT.java.

◆ BITMAP_HELVETICA_18

final int com.jogamp.opengl.util.gl2.GLUT.BITMAP_HELVETICA_18 = 8
static

Definition at line 105 of file GLUT.java.

◆ BITMAP_TIMES_ROMAN_10

final int com.jogamp.opengl.util.gl2.GLUT.BITMAP_TIMES_ROMAN_10 = 4
static

Definition at line 101 of file GLUT.java.

◆ BITMAP_TIMES_ROMAN_24

final int com.jogamp.opengl.util.gl2.GLUT.BITMAP_TIMES_ROMAN_24 = 5
static

Definition at line 102 of file GLUT.java.

◆ STROKE_MONO_ROMAN

final int com.jogamp.opengl.util.gl2.GLUT.STROKE_MONO_ROMAN = 1
static

Definition at line 98 of file GLUT.java.

◆ STROKE_ROMAN

final int com.jogamp.opengl.util.gl2.GLUT.STROKE_ROMAN = 0
static

Definition at line 97 of file GLUT.java.


The documentation for this class was generated from the following file: