BRL-CAD
util.h
Go to the documentation of this file.
1/* U T I L . H
2 * BRL-CAD
3 *
4 * Copyright (c) 1993-2023 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/util.h
23 *
24 */
25
26#include "common.h"
27
28#include "vmath.h"
29
30#include "dm/defines.h"
31
32#ifndef DM_UTIL_H
33#define DM_UTIL_H
34
35__BEGIN_DECLS
36
37DM_EXPORT unsigned long long dm_hash(struct dm *dmp);
38
39DM_EXPORT void dm_generic_hook(const struct bu_structparse *sdp, const char *name, void *base, const char *value, void *data);
40
41DM_EXPORT int dm_validXType(const char *dpy_string, const char *name);
42
43DM_EXPORT int draw_Line3D(struct dm *dmp, point_t pt1, point_t pt2);
44
45DM_EXPORT void flip_display_image_vertically(unsigned char *image, size_t width, size_t height, int alpha);
46
47DM_EXPORT extern int _fb_disk_enable;
48
49DM_EXPORT int fb_sim_view(struct fb *ifp, int xcenter, int ycenter, int xzoom, int yzoom);
50
51DM_EXPORT int fb_sim_getview(struct fb *ifp, int *xcenter, int *ycenter, int *xzoom, int *yzoom);
52
53DM_EXPORT int fb_sim_cursor(struct fb *ifp, int mode, int x, int y);
54
55DM_EXPORT int fb_sim_getcursor(struct fb *ifp, int *mode, int *x, int *y);
56
57DM_EXPORT int fb_sim_readrect(struct fb *ifp, int xmin, int ymin, int width, int height, unsigned char *pp);
58
59DM_EXPORT int fb_sim_bwreadrect(struct fb *ifp, int xmin, int ymin, int width, int height, unsigned char *pp);
60
61__END_DECLS
62
63#endif /* DM_UTIL_H */
64
65/** @} */
66/*
67 * Local Variables:
68 * mode: C
69 * tab-width: 8
70 * indent-tabs-mode: t
71 * c-file-style: "stroustrup"
72 * End:
73 * ex: shiftwidth=4 tabstop=8
74 */
Header file for the BRL-CAD common definitions.
void float float * y
Definition: tig.h:73
void int char * mode
Definition: tig.h:179
void float * x
Definition: tig.h:72
int fb_sim_getcursor(struct fb *ifp, int *mode, int *x, int *y)
int fb_sim_view(struct fb *ifp, int xcenter, int ycenter, int xzoom, int yzoom)
void flip_display_image_vertically(unsigned char *image, size_t width, size_t height, int alpha)
int fb_sim_bwreadrect(struct fb *ifp, int xmin, int ymin, int width, int height, unsigned char *pp)
int dm_validXType(const char *dpy_string, const char *name)
int draw_Line3D(struct dm *dmp, point_t pt1, point_t pt2)
int fb_sim_cursor(struct fb *ifp, int mode, int x, int y)
unsigned long long dm_hash(struct dm *dmp)
int fb_sim_readrect(struct fb *ifp, int xmin, int ymin, int width, int height, unsigned char *pp)
void dm_generic_hook(const struct bu_structparse *sdp, const char *name, void *base, const char *value, void *data)
int fb_sim_getview(struct fb *ifp, int *xcenter, int *ycenter, int *xzoom, int *yzoom)
int _fb_disk_enable
fastf_t point_t[ELEMENTS_PER_POINT]
3-tuple point
Definition: vmath.h:351
Definition: defines.h:57
Definition: defines.h:70
fundamental vector, matrix, quaternion math macros