JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
GLUtessellatorCallbackAdapter.java
Go to the documentation of this file.
1/*
2* Portions Copyright (C) 2003-2006 Sun Microsystems, Inc.
3* All rights reserved.
4*/
5
6/*
7** License Applicability. Except to the extent portions of this file are
8** made subject to an alternative license as permitted in the SGI Free
9** Software License B, Version 2.0 (the "License"), the contents of this
10** file are subject only to the provisions of the License. You may not use
11** this file except in compliance with the License. You may obtain a copy
12** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
13** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
14**
15** http://oss.sgi.com/projects/FreeB
16**
17** Note that, as provided in the License, the Software is distributed on an
18** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
19** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
20** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
21** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
22**
23** NOTE: The Original Code (as defined below) has been licensed to Sun
24** Microsystems, Inc. ("Sun") under the SGI Free Software License B
25** (Version 1.1), shown above ("SGI License"). Pursuant to Section
26** 3.2(3) of the SGI License, Sun is distributing the Covered Code to
27** you under an alternative license ("Alternative License"). This
28** Alternative License includes all of the provisions of the SGI License
29** except that Section 2.2 and 11 are omitted. Any differences between
30** the Alternative License and the SGI License are offered solely by Sun
31** and not by SGI.
32**
33** Original Code. The Original Code is: OpenGL Sample Implementation,
34** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
35** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
36** Copyright in any portions created by third parties is as indicated
37** elsewhere herein. All Rights Reserved.
38**
39** Additional Notice Provisions: The application programming interfaces
40** established by SGI in conjunction with the Original Code are The
41** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
42** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
43** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
44** Window System(R) (Version 1.3), released October 19, 1998. This software
45** was created using the OpenGL(R) version 1.2.1 Sample Implementation
46** published by SGI, but has not been independently verified as being
47** compliant with the OpenGL(R) version 1.2.1 Specification.
48**
49** Author: Eric Veach, July 1994
50** Java Port: Pepijn Van Eeckhoudt, July 2003
51** Java Port: Nathan Parker Burg, August 2003
52*/
53package com.jogamp.opengl.glu;
54
55/**
56 * The <b>GLUtessellatorCallbackAdapter</b> provides a default implementation of
57 * {@link GLUtessellatorCallback GLUtessellatorCallback}
58 * with empty callback methods. This class can be extended to provide user
59 * defined callback methods.
60 *
61 * @author Eric Veach, July 1994
62 * @author Java Port: Pepijn Van Eechhoudt, July 2003
63 * @author Java Port: Nathan Parker Burg, August 2003
64 */
65
67 @Override
68 public void begin(final int type) {}
69 @Override
70 public void edgeFlag(final boolean boundaryEdge) {}
71 @Override
72 public void vertex(final Object vertexData) {}
73 @Override
74 public void end() {}
75// public void mesh(jogamp.opengl.tessellator.GLUmesh mesh) {}
76 @Override
77 public void error(final int errnum) {}
78 @Override
79 public void combine(final double[] coords, final Object[] data,
80 final float[] weight, final Object[] outData) {}
81 @Override
82 public void beginData(final int type, final Object polygonData) {}
83 @Override
84 public void edgeFlagData(final boolean boundaryEdge,
85 final Object polygonData) {}
86 @Override
87 public void vertexData(final Object vertexData, final Object polygonData) {}
88 @Override
89 public void endData(final Object polygonData) {}
90 @Override
91 public void errorData(final int errnum, final Object polygonData) {}
92 @Override
93 public void combineData(final double[] coords, final Object[] data,
94 final float[] weight, final Object[] outData,
95 final Object polygonData) {}
96}
The GLUtessellatorCallbackAdapter provides a default implementation of GLUtessellatorCallback with em...
void errorData(final int errnum, final Object polygonData)
The same as the error callback method except that it takes an additional reference argument.
void beginData(final int type, final Object polygonData)
The same as the begin callback method except that it takes an additional reference argument.
void begin(final int type)
The begin callback method is invoked like glBegin to indicate the start of a (triangle) primitive.
void combine(final double[] coords, final Object[] data, final float[] weight, final Object[] outData)
The combine callback method is called to create a new vertex when the tessellation detects an interse...
void edgeFlag(final boolean boundaryEdge)
The edgeFlag callback method is similar to glEdgeFlag.
void vertexData(final Object vertexData, final Object polygonData)
The same as the vertex callback method except that it takes an additional reference argument.
void combineData(final double[] coords, final Object[] data, final float[] weight, final Object[] outData, final Object polygonData)
The same as the combine callback method except that it takes an additional reference argument.
void error(final int errnum)
The error callback method is called when an error is encountered.
void vertex(final Object vertexData)
The vertex callback method is invoked between the begin and end callback methods.
void end()
The end callback serves the same purpose as glEnd.
void endData(final Object polygonData)
The same as the end callback method except that it takes an additional reference argument.
void edgeFlagData(final boolean boundaryEdge, final Object polygonData)
The same as the edgeFlage callback method except that it takes an additional reference argument.
GLUtessellatorCallback interface provides methods that the user will override to define the callbacks...