BRL-CAD
dm-Null.h
Go to the documentation of this file.
1 /* D M - N U L L . H
2  * BRL-CAD
3  *
4  * Copyright (c) 1993-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 /** @addtogroup libdm */
21 /** @{ */
22 /** @file dm-Null.h
23  *
24  */
25 #ifndef DM_NULL_H
26 #define DM_NULL_H
27 
28 #include "common.h"
29 
30 #include "dm.h"
31 
33 
34 DM_EXPORT extern dm dm_null;
35 
36 
37 DM_EXPORT extern int
38 null_close(dm *dmp);
39 
40 
41 DM_EXPORT extern int
42 null_drawBegin(dm *dmp);
43 
44 
45 DM_EXPORT extern int
46 null_drawEnd(dm *dmp);
47 
48 
49 DM_EXPORT extern int
50 null_normal(dm *dmp);
51 
52 
53 DM_EXPORT extern int
54 null_loadMatrix(dm *dmp, fastf_t *mat, int which_eye);
55 
56 
57 DM_EXPORT extern int
58 null_loadPMatrix(dm *dmp, fastf_t *mat);
59 
60 
61 DM_EXPORT extern int
62 null_drawString2D(dm *dmp, const char *str, fastf_t x, fastf_t y, int size, int use_aspect);
63 
64 
65 DM_EXPORT extern int
66 null_drawLine2D(dm *dmp, fastf_t x_1, fastf_t y_1, fastf_t x_2, fastf_t y_2);
67 
68 
69 DM_EXPORT extern int
70 null_drawLine3D(dm *dmp, point_t pt1, point_t pt2);
71 
72 
73 DM_EXPORT extern int
74 null_drawLines3D(dm *dmp, int npoints, point_t *points, int sflag);
75 
76 
77 DM_EXPORT extern int
79 
80 
81 DM_EXPORT extern int
82 null_drawPoint3D(dm *dmp, point_t point);
83 
84 
85 DM_EXPORT extern int
86 null_drawPoints3D(dm *dmp, int npoints, point_t *points);
87 
88 
89 DM_EXPORT extern int
90 null_drawVList(dm *dmp, struct bn_vlist *vp);
91 
92 
93 DM_EXPORT extern int
94 null_drawVListHiddenLine(dm *dmp, struct bn_vlist *vp);
95 
96 
97 DM_EXPORT extern int
98 null_draw(dm *dmp, struct bn_vlist *(*callback_function)(void *), void **data);
99 
100 
101 DM_EXPORT extern int
102 null_setFGColor(dm *dmp, unsigned char r, unsigned char g, unsigned char b, int strict, fastf_t transparency);
103 
104 
105 DM_EXPORT extern int
106 null_setBGColor(dm *dmp, unsigned char r, unsigned char g, unsigned char b);
107 
108 
109 DM_EXPORT extern int
110 null_setLineAttr(dm *dmp, int width, int style);
111 
112 
113 DM_EXPORT extern int
114 null_configureWin(dm *dmp, int force);
115 
116 
117 DM_EXPORT extern int
118 null_setWinBounds(dm *dmp, fastf_t *w);
119 
120 
121 DM_EXPORT extern int
122 null_setLight(dm *dmp, int light_on);
123 
124 
125 DM_EXPORT extern int
126 null_setTransparency(dm *dmp, int transparency);
127 
128 
129 DM_EXPORT extern int
130 null_setDepthMask(dm *dmp, int mask);
131 
132 
133 DM_EXPORT extern int
134 null_setZBuffer(dm *dmp, int zbuffer_on);
135 
136 
137 DM_EXPORT extern int
138 null_debug(dm *dmp, int lvl);
139 
140 
141 DM_EXPORT extern int
142 null_beginDList(dm *dmp, unsigned int list);
143 
144 
145 DM_EXPORT extern int
146 null_endDList(dm *dmp);
147 
148 
149 DM_EXPORT extern void
150 null_drawDList(unsigned int list);
151 
152 
153 DM_EXPORT extern int
154 null_freeDLists(dm *dmp, unsigned int list, int range);
155 
156 
157 DM_EXPORT extern int
158 null_genDLists(dm *dmp, size_t range);
159 
160 
161 DM_EXPORT extern int
162 null_getDisplayImage(dm *dmp, unsigned char **image);
163 
164 
165 DM_EXPORT extern int
166 null_draw(dm *dmp, struct bn_vlist *(*callback_function)(void *), void **data);
167 
168 
169 DM_EXPORT extern int
170 null_fg(dm *dmp, unsigned char r, unsigned char g, unsigned char b, int strict, fastf_t transparency);
171 
172 
173 DM_EXPORT extern int
174 null_bg(dm *dmp, unsigned char r, unsigned char g, unsigned char b);
175 
176 
177 DM_EXPORT extern void
178 null_reshape(dm *dmp, int width, int height);
179 
180 
181 DM_EXPORT extern int
182 null_makeCurrent(dm *dmp);
183 
184 
185 DM_EXPORT extern void
186 null_processEvents(dm *dmp);
187 
188 
189 DM_EXPORT extern int
190 null_openFb(dm *dmp);
191 
193 
194 #endif /* DM_NULL_H */
195 
196 /** @} */
197 /*
198  * Local Variables:
199  * mode: C
200  * tab-width: 8
201  * indent-tabs-mode: t
202  * c-file-style: "stroustrup"
203  * End:
204  * ex: shiftwidth=4 tabstop=8
205  */
int null_setDepthMask(dm *dmp, int mask)
Definition: dm-Null.c:199
int null_drawString2D(dm *dmp, const char *str, fastf_t x, fastf_t y, int size, int use_aspect)
Definition: dm-Null.c:80
int null_debug(dm *dmp, int lvl)
Definition: dm-Null.c:213
int null_drawVList(dm *dmp, struct bn_vlist *vp)
Definition: dm-Null.c:129
int null_draw(dm *dmp, struct bn_vlist *(*callback_function)(void *), void **data)
Definition: dm-Null.c:143
int null_setLineAttr(dm *dmp, int width, int style)
Definition: dm-Null.c:164
int null_genDLists(dm *dmp, size_t range)
Definition: dm-Null.c:252
Header file for the BRL-CAD common definitions.
int null_loadPMatrix(dm *dmp, fastf_t *mat)
Definition: dm-Null.c:73
int null_bg(dm *dmp, unsigned char r, unsigned char g, unsigned char b)
int null_setFGColor(dm *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(dm *dmp, unsigned int list, int range)
Definition: dm-Null.c:245
int null_openFb(dm *dmp)
Definition: dm-Null.c:279
int null_drawPoint2D(dm *dmp, fastf_t x, fastf_t y)
Definition: dm-Null.c:108
COMPLEX data[64]
Definition: fftest.c:34
int null_drawLine3D(dm *dmp, point_t pt1, point_t pt2)
Definition: dm-Null.c:94
#define __BEGIN_DECLS
Definition: common.h:73
int null_configureWin(dm *dmp, int force)
Definition: dm-Null.c:171
int null_makeCurrent(dm *dmp)
Definition: dm-Null.c:272
int null_close(dm *dmp)
Definition: dm-Null.c:38
int null_drawEnd(dm *dmp)
Definition: dm-Null.c:52
Coord * point
Definition: chull3d.cpp:52
int null_fg(dm *dmp, unsigned char r, unsigned char g, unsigned char b, int strict, fastf_t transparency)
int null_beginDList(dm *dmp, unsigned int list)
Definition: dm-Null.c:225
void null_reshape(dm *dmp, int width, int height)
Definition: dm-Null.c:266
int null_setWinBounds(dm *dmp, fastf_t *w)
Definition: dm-Null.c:178
int null_drawVListHiddenLine(dm *dmp, struct bn_vlist *vp)
Definition: dm-Null.c:136
Definition: vlist.h:71
int null_loadMatrix(dm *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(dm *dmp, int npoints, point_t *points, int sflag)
Definition: dm-Null.c:101
int null_setTransparency(dm *dmp, int transparency)
Definition: dm-Null.c:192
int null_drawPoint3D(dm *dmp, point_t point)
Definition: dm-Null.c:115
#define __END_DECLS
Definition: common.h:74
int null_setZBuffer(dm *dmp, int zbuffer_on)
Definition: dm-Null.c:206
int null_getDisplayImage(dm *dmp, unsigned char **image)
Definition: dm-Null.c:259
int null_drawBegin(dm *dmp)
Definition: dm-Null.c:45
int null_drawLine2D(dm *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(dm *dmp, int npoints, point_t *points)
Definition: dm-Null.c:122
dm dm_null
Definition: dm-Null.c:285
int null_normal(dm *dmp)
Definition: dm-Null.c:59
int null_endDList(dm *dmp)
Definition: dm-Null.c:232
int null_setBGColor(dm *dmp, unsigned char r, unsigned char g, unsigned char b)
Definition: dm-Null.c:157
double fastf_t
Definition: defines.h:300
void null_processEvents(dm *dmp)
int null_setLight(dm *dmp, int light_on)
Definition: dm-Null.c:185