forked from BRL-CAD/brlcad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptical.h
96 lines (78 loc) · 2.85 KB
/
optical.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/* O P T I C A L . H
* BRL-CAD
*
* Copyright (c) 2004-2021 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this file; see the file named COPYING for more
* information.
*/
/** @addtogroup liboptical */
/** @{ */
/** @file optical.h
*
* @brief
* Header file for the BRL-CAD Optical Library, LIBOPTICAL.
*
*/
#ifndef OPTICAL_H
#define OPTICAL_H
#include "common.h"
#include "bu/vls.h"
__BEGIN_DECLS
#include "optical/defines.h"
#include "optical/debug.h"
#include "optical/shadework.h"
#include "optical/shadefuncs.h"
/**
* this function sets the provided mfuncs head pointer to the list of
* available shaders. the provided mfuncs head pointer should point
* to MF_NULL prior to getting passed to optical_shader_init() so that
* the same shader list may be returned repeatably.
*/
OPTICAL_EXPORT extern void optical_shader_init(struct mfuncs **headp);
/* stub functions useful for debugging */
/* defined in sh_text.c */
OPTICAL_EXPORT extern int mlib_zero(struct application *, const struct partition *, struct shadework *, void *);
OPTICAL_EXPORT extern int mlib_one(struct region *, struct bu_vls *, void **, const struct mfuncs *, struct rt_i *);
OPTICAL_EXPORT extern void mlib_void(struct region *, void *);
/* defined in refract.c */
OPTICAL_EXPORT extern int
rr_render(struct application *app, const struct partition *pp, struct shadework *swp);
/* defined in shade.c */
OPTICAL_EXPORT extern void
shade_inputs(struct application *app, const struct partition *pp, struct shadework *swp, int want);
/* defined in wray.c */
OPTICAL_EXPORT extern void
wray(struct partition *pp, struct application *app, FILE *fp, const vect_t inormal);
OPTICAL_EXPORT extern void
wraypts(vect_t in, vect_t inorm, vect_t out, int id, struct application *app, FILE *fp);
OPTICAL_EXPORT extern void
wraypaint(vect_t start, vect_t norm, int paint, struct application *app, FILE *fp);
/* defined in shade.c */
OPTICAL_EXPORT extern int
viewshade(struct application *app, const struct partition *pp, struct shadework *swp);
/* defined in vers.c */
OPTICAL_EXPORT extern const char *optical_version(void);
__END_DECLS
#endif /* OPTICAL_H */
/** @} */
/*
* Local Variables:
* mode: C
* tab-width: 8
* indent-tabs-mode: t
* c-file-style: "stroustrup"
* End:
* ex: shiftwidth=4 tabstop=8
*/