BRL-CAD
dm-Null.c
Go to the documentation of this file.
1 /* D M - N U L L . C
2  * BRL-CAD
3  *
4  * Copyright (c) 2004-2014 United States Government as represented by
5  * the U.S. Army Research Laboratory.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public License
9  * version 2.1 as published by the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this file; see the file named COPYING for more
18  * information.
19  */
20 /** @file libdm/dm-Null.c
21  *
22  */
23 
24 #include "common.h"
25 
26 #ifdef HAVE_SYS_TIME_H
27 # include <sys/time.h>
28 #endif
29 
30 #include "tcl.h"
31 #include "vmath.h"
32 #include "dm.h"
33 #include "dm-Null.h"
34 #include "dm_private.h"
35 
36 
37 int
39 {
40  return 0;
41 }
42 
43 
44 int
46 {
47  return 0;
48 }
49 
50 
51 int
53 {
54  return 0;
55 }
56 
57 
58 int
60 {
61  return 0;
62 }
63 
64 
65 int
66 null_loadMatrix(struct dm_internal *UNUSED(dmp), fastf_t *UNUSED(mat), int UNUSED(which_eye))
67 {
68  return 0;
69 }
70 
71 
72 int
74 {
75  return 0;
76 }
77 
78 
79 int
80 null_drawString2D(struct dm_internal *UNUSED(dmp), const char *UNUSED(str), fastf_t UNUSED(x), fastf_t UNUSED(y), int UNUSED(size), int UNUSED(use_aspect))
81 {
82  return 0;
83 }
84 
85 
86 int
88 {
89  return 0;
90 }
91 
92 
93 int
94 null_drawLine3D(struct dm_internal *UNUSED(dmp), point_t UNUSED(pt1), point_t UNUSED(pt2))
95 {
96  return 0;
97 }
98 
99 
100 int
101 null_drawLines3D(struct dm_internal *UNUSED(dmp), int UNUSED(npoints), point_t *UNUSED(points), int UNUSED(sflag))
102 {
103  return 0;
104 }
105 
106 
107 int
109 {
110  return 0;
111 }
112 
113 
114 int
116 {
117  return 0;
118 }
119 
120 
121 int
122 null_drawPoints3D(struct dm_internal *UNUSED(dmp), int UNUSED(npoints), point_t *UNUSED(points))
123 {
124  return 0;
125 }
126 
127 
128 int
129 null_drawVList(struct dm_internal *UNUSED(dmp), struct bn_vlist *UNUSED(vp))
130 {
131  return 0;
132 }
133 
134 
135 int
137 {
138  return 0;
139 }
140 
141 
142 int
143 null_draw(struct dm_internal *dmp, struct bn_vlist *(*callback_function)(void *), void **data)
144 {
145  return dmp == NULL && callback_function == NULL && data == NULL;
146 }
147 
148 
149 int
150 null_setFGColor(struct dm_internal *UNUSED(dmp), unsigned char UNUSED(r), unsigned char UNUSED(g), unsigned char UNUSED(b), int UNUSED(strict), fastf_t UNUSED(transparency))
151 {
152  return 0;
153 }
154 
155 
156 int
157 null_setBGColor(struct dm_internal *UNUSED(dmp), unsigned char UNUSED(r), unsigned char UNUSED(g), unsigned char UNUSED(b))
158 {
159  return 0;
160 }
161 
162 
163 int
164 null_setLineAttr(struct dm_internal *UNUSED(dmp), int UNUSED(width), int UNUSED(style))
165 {
166  return 0;
167 }
168 
169 
170 int
171 null_configureWin(struct dm_internal *UNUSED(dmp), int UNUSED(force))
172 {
173  return 0;
174 }
175 
176 
177 int
179 {
180  return 0;
181 }
182 
183 
184 int
185 null_setLight(struct dm_internal *UNUSED(dmp), int UNUSED(light_on))
186 {
187  return 0;
188 }
189 
190 
191 int
192 null_setTransparency(struct dm_internal *UNUSED(dmp), int UNUSED(transparency))
193 {
194  return 0;
195 }
196 
197 
198 int
199 null_setDepthMask(struct dm_internal *UNUSED(dmp), int UNUSED(mask))
200 {
201  return 0;
202 }
203 
204 
205 int
206 null_setZBuffer(struct dm_internal *UNUSED(dmp), int UNUSED(zbuffer_on))
207 {
208  return 0;
209 }
210 
211 
212 int
213 null_debug(struct dm_internal *UNUSED(dmp), int UNUSED(lvl))
214 {
215  return 0;
216 }
217 
218 int
219 null_logfile(struct dm_internal *UNUSED(dmp), const char *UNUSED(filename))
220 {
221  return 0;
222 }
223 
224 int
225 null_beginDList(struct dm_internal *UNUSED(dmp), unsigned int UNUSED(list))
226 {
227  return 0;
228 }
229 
230 
231 int
233 {
234  return 0;
235 }
236 
237 
238 void
239 null_drawDList(unsigned int UNUSED(list))
240 {
241 }
242 
243 
244 int
245 null_freeDLists(struct dm_internal *UNUSED(dmp), unsigned int UNUSED(list), int UNUSED(range))
246 {
247  return 0;
248 }
249 
250 
251 int
252 null_genDLists(struct dm_internal *UNUSED(dmp), size_t UNUSED(range))
253 {
254  return 0;
255 }
256 
257 
258 int
259 null_getDisplayImage(struct dm_internal *UNUSED(dmp), unsigned char **UNUSED(image))
260 {
261  return 0;
262 }
263 
264 
265 void
266 null_reshape(struct dm_internal *UNUSED(dmp), int UNUSED(width), int UNUSED(height))
267 {
268 }
269 
270 
271 int
273 {
274  return 0;
275 }
276 
277 
278 int
280 {
281  return 0;
282 }
283 
284 
286  null_close,
288  null_drawEnd,
289  null_normal,
301  null_draw,
311  null_debug,
312  null_logfile,
318  NULL,
320  null_reshape,
322  null_openFb,
323  NULL,
324  NULL,
325  0,
326  0, /* no displaylist */
327  0, /* no stereo */
328  0.0, /* zoom-in limit */
329  1, /* bound flag */
330  "nu",
331  "Null Display",
332  DM_TYPE_NULL,
333  0,/* top */
334  0,/* width */
335  0,/* height */
336  0,/* bytes per pixel */
337  0,/* bits per channel */
338  0,
339  0,
340  0,
341  0,
342  {0, 0},
343  NULL,
344  NULL,
345  BU_VLS_INIT_ZERO, /* bu_vls path name*/
346  BU_VLS_INIT_ZERO, /* bu_vls full name drawing window */
347  BU_VLS_INIT_ZERO, /* bu_vls short name drawing window */
348  {0, 0, 0}, /* bg color */
349  {0, 0, 0}, /* fg color */
350  {0.0, 0.0, 0.0}, /* clipmin */
351  {0.0, 0.0, 0.0}, /* clipmax */
352  0, /* no debugging */
353  BU_VLS_INIT_ZERO, /* bu_vls logfile */
354  0, /* no perspective */
355  0, /* no lighting */
356  0, /* no transparency */
357  0, /* depth buffer is not writable */
358  0, /* no zbuffer */
359  0, /* no zclipping */
360  1, /* clear back buffer after drawing and swap */
361  0, /* not overriding the auto font size */
363  FB_NULL,
364  0 /* Tcl interpreter */
365 };
366 
367 
368 /*
369  * Local Variables:
370  * mode: C
371  * tab-width: 8
372  * indent-tabs-mode: t
373  * c-file-style: "stroustrup"
374  * End:
375  * ex: shiftwidth=4 tabstop=8
376  */
int null_setDepthMask(struct dm_internal *dmp, int mask)
Definition: dm-Null.c:199
char filename[MAXLENGTH]
Definition: human.c:105
int null_drawString2D(struct dm_internal *dmp, const char *str, fastf_t x, fastf_t y, int size, int use_aspect)
Definition: dm-Null.c:80
int null_debug(struct dm_internal *dmp, int lvl)
Definition: dm-Null.c:213
int null_drawVList(struct dm_internal *dmp, struct bn_vlist *vp)
Definition: dm-Null.c:129
int null_draw(struct dm_internal *dmp, struct bn_vlist *(*callback_function)(void *), void **data)
Definition: dm-Null.c:143
int null_setLineAttr(struct dm_internal *dmp, int width, int style)
Definition: dm-Null.c:164
int null_genDLists(struct dm_internal *dmp, size_t range)
Definition: dm-Null.c:252
Header file for the BRL-CAD common definitions.
int null_loadPMatrix(struct dm_internal *dmp, fastf_t *mat)
Definition: dm-Null.c:73
int null_setFGColor(struct dm_internal *dmp, unsigned char r, unsigned char g, unsigned char b, int strict, fastf_t transparency)
Definition: dm-Null.c:150
ustring width
int null_freeDLists(struct dm_internal *dmp, unsigned int list, int range)
Definition: dm-Null.c:245
int null_openFb(struct dm_internal *dmp)
Definition: dm-Null.c:279
int null_logfile(struct dm_internal *dmp, const char *filename)
Definition: dm-Null.c:219
int null_drawPoint2D(struct dm_internal *dmp, fastf_t x, fastf_t y)
Definition: dm-Null.c:108
COMPLEX data[64]
Definition: fftest.c:34
int null_drawLine3D(struct dm_internal *dmp, point_t pt1, point_t pt2)
Definition: dm-Null.c:94
#define FB_NULL
Definition: fb.h:95
int null_configureWin(struct dm_internal *dmp, int force)
Definition: dm-Null.c:171
int null_makeCurrent(struct dm_internal *dmp)
Definition: dm-Null.c:272
int null_close(struct dm_internal *dmp)
Definition: dm-Null.c:38
int null_drawEnd(struct dm_internal *dmp)
Definition: dm-Null.c:52
Coord * point
Definition: chull3d.cpp:52
#define UNUSED(parameter)
Definition: common.h:239
int null_beginDList(struct dm_internal *dmp, unsigned int list)
Definition: dm-Null.c:225
void null_reshape(struct dm_internal *dmp, int width, int height)
Definition: dm-Null.c:266
#define BU_STRUCTPARSE_NULL
Definition: parse.h:151
int null_setWinBounds(struct dm_internal *dmp, fastf_t *w)
Definition: dm-Null.c:178
int null_drawVListHiddenLine(struct dm_internal *dmp, struct bn_vlist *vp)
Definition: dm-Null.c:136
Definition: vlist.h:71
int null_loadMatrix(struct dm_internal *dmp, fastf_t *mat, int which_eye)
Definition: dm-Null.c:66
void null_drawDList(unsigned int list)
Definition: dm-Null.c:239
int null_drawLines3D(struct dm_internal *dmp, int npoints, point_t *points, int sflag)
Definition: dm-Null.c:101
int null_setTransparency(struct dm_internal *dmp, int transparency)
Definition: dm-Null.c:192
int null_drawPoint3D(struct dm_internal *dmp, point_t point)
Definition: dm-Null.c:115
int null_setZBuffer(struct dm_internal *dmp, int zbuffer_on)
Definition: dm-Null.c:206
int null_getDisplayImage(struct dm_internal *dmp, unsigned char **image)
Definition: dm-Null.c:259
int null_drawBegin(struct dm_internal *dmp)
Definition: dm-Null.c:45
int null_drawLine2D(struct dm_internal *dmp, fastf_t x_1, fastf_t y_1, fastf_t x_2, fastf_t y_2)
Definition: dm-Null.c:87
int null_drawPoints3D(struct dm_internal *dmp, int npoints, point_t *points)
Definition: dm-Null.c:122
#define BU_VLS_INIT_ZERO
Definition: vls.h:84
struct dm_internal dm_null
Definition: dm-Null.c:285
#define DM_TYPE_NULL
Definition: dm.h:92
int null_normal(struct dm_internal *dmp)
Definition: dm-Null.c:59
int null_endDList(struct dm_internal *dmp)
Definition: dm-Null.c:232
int null_setBGColor(struct dm_internal *dmp, unsigned char r, unsigned char g, unsigned char b)
Definition: dm-Null.c:157
double fastf_t
Definition: defines.h:300
int null_setLight(struct dm_internal *dmp, int light_on)
Definition: dm-Null.c:185