-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_scene_export_8hpp_source.html
144 lines (142 loc) · 13.7 KB
/
_scene_export_8hpp_source.html
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Rendu: src/tools/objtoscene/SceneExport.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">Rendu
</div>
<div id="projectbrief">A lightweight rendering engine for experimentations</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<span id="MSearchSelect" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()"> </span>
<input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_1563a38af0d3a5e4a6330d6d45e9792a.html">tools</a></li><li class="navelem"><a class="el" href="dir_4a82d9eb29cbb9ba3788d7b3f076b54b.html">objtoscene</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">SceneExport.hpp</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span> </div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="preprocessor">#include "CompositeObj.hpp"</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include "system/System.hpp"</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include "Common.hpp"</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> </div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespace_scene_export.html">SceneExport</a> {</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"><a class="line" href="struct_scene_export_1_1_material.html"> 15</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_scene_export_1_1_material.html">Material</a> {</div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"><a class="line" href="struct_scene_export_1_1_material.html#a98aa6434007f8372ed14dfa7f01a7a30"> 16</a></span> std::string <a class="code hl_variable" href="struct_scene_export_1_1_material.html#a98aa6434007f8372ed14dfa7f01a7a30">colorName</a>; </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="struct_scene_export_1_1_material.html#a272cd3ab100152857d505787e571d686"> 17</a></span> std::string <a class="code hl_variable" href="struct_scene_export_1_1_material.html#a272cd3ab100152857d505787e571d686">normalName</a>; </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"><a class="line" href="struct_scene_export_1_1_material.html#a46abdfa3bef4a50bce8e579b39bd75cb"> 18</a></span> std::string <a class="code hl_variable" href="struct_scene_export_1_1_material.html#a46abdfa3bef4a50bce8e579b39bd75cb">roughMetAoName</a>; </div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="struct_scene_export_1_1_material.html#a3d5f7692c1f0c5ce58bfb968a19a2522"> 19</a></span> std::string <a class="code hl_variable" href="struct_scene_export_1_1_material.html#a3d5f7692c1f0c5ce58bfb968a19a2522">depthName</a>; </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="struct_scene_export_1_1_material.html#aed15de2895dcdc6026958d75eb49ec87"> 20</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="struct_scene_export_1_1_material.html#aed15de2895dcdc6026958d75eb49ec87">hasAlpha</a> = <span class="keyword">false</span>; </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span>};</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="keywordtype">int</span> <a class="code hl_function" href="namespace_scene_export.html#a3177226721b7d5604f7dd4f04f17488c">saveColor</a>(<span class="keyword">const</span> std::string & outputPath, <span class="keyword">const</span> glm::vec3 & color);</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><a class="code hl_struct" href="struct_scene_export_1_1_material.html">Material</a> <a class="code hl_function" href="namespace_scene_export.html#a3bd84f2f089545634360ca4d6dbf5a4e">saveMaterial</a>(<span class="keyword">const</span> std::string & baseName, <span class="keyword">const</span> <a class="code hl_struct" href="struct_composite_obj_1_1_material.html">CompositeObj::Material</a> & material, <span class="keyword">const</span> std::string & outputDirPath);</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span><span class="keywordtype">int</span> <a class="code hl_function" href="namespace_scene_export.html#aa29360494375bf5210accdf395eb0e5a">saveDescription</a>(<span class="keyword">const</span> std::vector<CompositeObj::Object> & objects, <span class="keyword">const</span> std::unordered_map<std::string, Material> & materials, <span class="keyword">const</span> std::string & outputPath);</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span>}</div>
<div class="ttc" id="anamespace_scene_export_html"><div class="ttname"><a href="namespace_scene_export.html">SceneExport</a></div><div class="ttdoc">Helpers to export a Rendu scene.</div><div class="ttdef"><b>Definition:</b> SceneExport.cpp:4</div></div>
<div class="ttc" id="anamespace_scene_export_html_a3177226721b7d5604f7dd4f04f17488c"><div class="ttname"><a href="namespace_scene_export.html#a3177226721b7d5604f7dd4f04f17488c">SceneExport::saveColor</a></div><div class="ttdeci">int saveColor(const std::string &outputPath, const glm::vec3 &color)</div><div class="ttdef"><b>Definition:</b> SceneExport.cpp:8</div></div>
<div class="ttc" id="anamespace_scene_export_html_a3bd84f2f089545634360ca4d6dbf5a4e"><div class="ttname"><a href="namespace_scene_export.html#a3bd84f2f089545634360ca4d6dbf5a4e">SceneExport::saveMaterial</a></div><div class="ttdeci">Material saveMaterial(const std::string &baseName, const CompositeObj::Material &material, const std::string &outputDirPath)</div><div class="ttdef"><b>Definition:</b> SceneExport.cpp:18</div></div>
<div class="ttc" id="anamespace_scene_export_html_aa29360494375bf5210accdf395eb0e5a"><div class="ttname"><a href="namespace_scene_export.html#aa29360494375bf5210accdf395eb0e5a">SceneExport::saveDescription</a></div><div class="ttdeci">int saveDescription(const std::vector< CompositeObj::Object > &objects, const std::unordered_map< std::string, Material > &materials, const std::string &outputPath)</div><div class="ttdef"><b>Definition:</b> SceneExport.cpp:195</div></div>
<div class="ttc" id="astruct_composite_obj_1_1_material_html"><div class="ttname"><a href="struct_composite_obj_1_1_material.html">CompositeObj::Material</a></div><div class="ttdoc">OBJ material descriptor.</div><div class="ttdef"><b>Definition:</b> CompositeObj.hpp:16</div></div>
<div class="ttc" id="astruct_scene_export_1_1_material_html"><div class="ttname"><a href="struct_scene_export_1_1_material.html">SceneExport::Material</a></div><div class="ttdoc">Contain exported texture infos for a given material.</div><div class="ttdef"><b>Definition:</b> SceneExport.hpp:15</div></div>
<div class="ttc" id="astruct_scene_export_1_1_material_html_a272cd3ab100152857d505787e571d686"><div class="ttname"><a href="struct_scene_export_1_1_material.html#a272cd3ab100152857d505787e571d686">SceneExport::Material::normalName</a></div><div class="ttdeci">std::string normalName</div><div class="ttdoc">Normal map name.</div><div class="ttdef"><b>Definition:</b> SceneExport.hpp:17</div></div>
<div class="ttc" id="astruct_scene_export_1_1_material_html_a3d5f7692c1f0c5ce58bfb968a19a2522"><div class="ttname"><a href="struct_scene_export_1_1_material.html#a3d5f7692c1f0c5ce58bfb968a19a2522">SceneExport::Material::depthName</a></div><div class="ttdeci">std::string depthName</div><div class="ttdoc">Optional depth map.</div><div class="ttdef"><b>Definition:</b> SceneExport.hpp:19</div></div>
<div class="ttc" id="astruct_scene_export_1_1_material_html_a46abdfa3bef4a50bce8e579b39bd75cb"><div class="ttname"><a href="struct_scene_export_1_1_material.html#a46abdfa3bef4a50bce8e579b39bd75cb">SceneExport::Material::roughMetAoName</a></div><div class="ttdeci">std::string roughMetAoName</div><div class="ttdoc">Roughness-metalness-ambient occlusion texture name.</div><div class="ttdef"><b>Definition:</b> SceneExport.hpp:18</div></div>
<div class="ttc" id="astruct_scene_export_1_1_material_html_a98aa6434007f8372ed14dfa7f01a7a30"><div class="ttname"><a href="struct_scene_export_1_1_material.html#a98aa6434007f8372ed14dfa7f01a7a30">SceneExport::Material::colorName</a></div><div class="ttdeci">std::string colorName</div><div class="ttdoc">Color texture name.</div><div class="ttdef"><b>Definition:</b> SceneExport.hpp:16</div></div>
<div class="ttc" id="astruct_scene_export_1_1_material_html_aed15de2895dcdc6026958d75eb49ec87"><div class="ttname"><a href="struct_scene_export_1_1_material.html#aed15de2895dcdc6026958d75eb49ec87">SceneExport::Material::hasAlpha</a></div><div class="ttdeci">bool hasAlpha</div><div class="ttdoc">Alpha mask.</div><div class="ttdef"><b>Definition:</b> SceneExport.hpp:20</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="http://www.doxygen.org/index.html">Doxygen</a> 1.9.5
- Theme by <a href="http://simonrodriguez.fr">Simon Rodriguez</a></small></address><br>
</body>
</html>