Remove CVS keywords.
[mesa.git] / src / glu / mini / nurbs.c
1
2 /*
3 * Mesa 3-D graphics library
4 * Version: 3.3
5 * Copyright (C) 1995-2000 Brian Paul
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
16 *
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the Free
19 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 */
21
22
23 /*
24 * NURBS implementation written by Bogdan Sikorski (bogdan@cira.it)
25 * See README2 for more info.
26 */
27
28
29 #ifdef PC_HEADER
30 #include "all.h"
31 #else
32 #include <stdio.h>
33 #include <stdlib.h>
34 #include "gluP.h"
35 #include "nurbs.h"
36 #endif
37
38
39 void
40 call_user_error(GLUnurbsObj * nobj, GLenum error)
41 {
42 nobj->error = error;
43 if (nobj->error_callback != NULL) {
44 (*(nobj->error_callback)) (error);
45 }
46 else {
47 printf("NURBS error %d %s\n", error, (char *) gluErrorString(error));
48 }
49 }
50
51
52
53 GLUnurbsObj *GLAPIENTRY
54 gluNewNurbsRenderer(void)
55 {
56 GLUnurbsObj *n;
57 GLfloat tmp_viewport[4];
58 GLint i, j;
59
60 n = (GLUnurbsObj *) malloc(sizeof(GLUnurbsObj));
61 return n;
62 }
63
64
65
66 void GLAPIENTRY
67 gluDeleteNurbsRenderer(GLUnurbsObj * nobj)
68 {
69 if (nobj) {
70 free(nobj);
71 }
72 }
73
74
75
76 void GLAPIENTRY
77 gluLoadSamplingMatrices(GLUnurbsObj * nobj,
78 const GLfloat modelMatrix[16],
79 const GLfloat projMatrix[16], const GLint viewport[4])
80 {
81 }
82
83
84 void GLAPIENTRY
85 gluNurbsProperty(GLUnurbsObj * nobj, GLenum property, GLfloat value)
86 {
87 }
88
89
90 void GLAPIENTRY
91 gluGetNurbsProperty(GLUnurbsObj * nobj, GLenum property, GLfloat * value)
92 {
93 }
94
95
96
97 void GLAPIENTRY
98 gluBeginCurve(GLUnurbsObj * nobj)
99 {
100 }
101
102
103 void GLAPIENTRY
104 gluEndCurve(GLUnurbsObj * nobj)
105 {
106 }
107
108
109 void GLAPIENTRY
110 gluNurbsCurve(GLUnurbsObj * nobj, GLint nknots, GLfloat * knot,
111 GLint stride, GLfloat * ctlarray, GLint order, GLenum type)
112 {
113 }
114
115
116 void GLAPIENTRY
117 gluBeginSurface(GLUnurbsObj * nobj)
118 {
119 }
120
121
122 void GLAPIENTRY
123 gluEndSurface(GLUnurbsObj * nobj)
124 {
125 }
126
127
128 void GLAPIENTRY
129 gluNurbsSurface(GLUnurbsObj * nobj,
130 GLint sknot_count, GLfloat * sknot,
131 GLint tknot_count, GLfloat * tknot,
132 GLint s_stride, GLint t_stride,
133 GLfloat * ctrlarray, GLint sorder, GLint torder, GLenum type)
134 {
135 }
136
137
138 void GLAPIENTRY
139 gluNurbsCallback(GLUnurbsObj * nobj, GLenum which, void (GLCALLBACK * fn) ())
140 {
141 }
142
143 void GLAPIENTRY
144 gluBeginTrim(GLUnurbsObj * nobj)
145 {
146 }
147
148 void GLAPIENTRY
149 gluPwlCurve(GLUnurbsObj * nobj, GLint count, GLfloat * array, GLint stride,
150 GLenum type)
151 {
152 }
153
154 void GLAPIENTRY
155 gluEndTrim(GLUnurbsObj * nobj)
156 {
157 }