Easy3D 2.5.3
resource.h
1/********************************************************************
2 * Copyright (C) 2015 Liangliang Nan <liangliang.nan@gmail.com>
3 * https://3d.bk.tudelft.nl/liangliang/
4 *
5 * This file is part of Easy3D. If it is useful in your research/work,
6 * I would be grateful if you show your appreciation by citing it:
7 * ------------------------------------------------------------------
8 * Liangliang Nan.
9 * Easy3D: a lightweight, easy-to-use, and efficient C++ library
10 * for processing and rendering 3D data.
11 * Journal of Open Source Software, 6(64), 3255, 2021.
12 * ------------------------------------------------------------------
13 *
14 * Easy3D is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License Version 3
16 * as published by the Free Software Foundation.
17 *
18 * Easy3D is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with this program. If not, see <http://www.gnu.org/licenses/>.
25 ********************************************************************/
26
27#ifndef EASY3D_UTIL_RESOURCE_H
28#define EASY3D_UTIL_RESOURCE_H
29
30#include <easy3d/core/types.h>
31#include <easy3d/util/export.h>
32
33
34namespace easy3d {
35
36
39 namespace resource {
40
45 void initialize(const std::string& resource_dir = Easy3D_RESOURCE_DIR);
46
48 std::string directory();
49
50
53 extern const EASY3D_UTIL_EXPORT std::vector<vec3> bunny_vertices;
56 extern const EASY3D_UTIL_EXPORT std::vector<unsigned int> bunny_indices;
57
58 } // namespace resource
59
60} // namespace easy3d
61
62
63#endif // EASY3D_UTIL_RESOURCE_H
void initialize(const std::string &res_dir)
Initializes the resource directory (that contains color maps, shaders, textures, fonts,...
Definition: resource.cpp:40
const std::vector< vec3 > bunny_vertices
Definition: resource.cpp:84
const std::vector< unsigned int > bunny_indices
Definition: resource.cpp:541
std::string directory()
Returns the resource directory (containing color maps, shaders, textures, fonts, etc....
Definition: resource.cpp:45
Definition: collider.cpp:182