Easy3D 2.5.3
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.). More...
 
std::string directory ()
 Returns the resource directory (containing color maps, shaders, textures, fonts, etc.)
 

Variables

const std::vector< vec3bunny_vertices
 
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

const EASY3D_UTIL_EXPORT std::vector< unsigned int > bunny_indices

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, and Tutorial_301_Drawables.

◆ bunny_vertices

const EASY3D_UTIL_EXPORT std::vector< vec3 > bunny_vertices

The vertices of a bunny model.

See also
bunny_indices
Examples
Tutorial_203_Viewer_wxWidgets, and Tutorial_301_Drawables.