Easy3D 2.6.1
Loading...
Searching...
No Matches
easy3d::resource Namespace Reference

Resources used in Easy3D. More...

Functions

void initialize (const std::string &resource_dir=Easy3D_RESOURCE_DIR)
 Initializes the resource directory (that contains color maps, shaders, textures, fonts, etc.).
 
std::string directory ()
 Returns the resource directory (containing color maps, shaders, textures, fonts, etc.)
 

Variables

EASY3D_UTIL_EXPORT const std::vector< vec3bunny_vertices
 
EASY3D_UTIL_EXPORT const std::vector< unsigned int > bunny_indices
 

Detailed Description

Resources used in Easy3D.

Function Documentation

◆ initialize()

void initialize ( const std::string & resource_dir = Easy3D_RESOURCE_DIR)

Initializes the resource directory (that contains color maps, shaders, textures, fonts, etc.).

Easy3D_RESOURCE_DIR is the default value, which is the directory coming with the Easy3D distribution. In most cases you should use the default resource directory (unless you want to use different resources).

Variable Documentation

◆ bunny_indices

EASY3D_UTIL_EXPORT const std::vector<unsigned int> bunny_indices
extern

The triangle faces of a bunny model. Each consecutive 3 values denote the vertex indices of a triangle.

See also
bunny_vertices
Examples
Tutorial_203_Viewer_wxWidgets/main.cpp.

◆ bunny_vertices

EASY3D_UTIL_EXPORT const std::vector<vec3> bunny_vertices
extern

The vertices of a bunny model.

See also
bunny_indices
Examples
Tutorial_203_Viewer_wxWidgets/main.cpp.