Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
ExtrusionMeshCache Class Reference
+ Inheritance diagram for ExtrusionMeshCache:
+ Collaboration diagram for ExtrusionMeshCache:

Public Member Functions

 ExtrusionMeshCache ()
 
virtual ~ExtrusionMeshCache ()
 
scene::IMesh * create (core::dimension2d< u32 > dim)
 
scene::IMesh * createCube ()
 

Private Attributes

std::map< int, scene::IMesh * > m_extrusion_meshes
 
scene::IMesh * m_cube
 

Constructor & Destructor Documentation

◆ ExtrusionMeshCache()

ExtrusionMeshCache::ExtrusionMeshCache ( )
inline

References createCubeMesh(), createExtrusionMesh(), m_cube, m_extrusion_meshes, MAX_EXTRUSION_MESH_RESOLUTION, and MIN_EXTRUSION_MESH_RESOLUTION.

+ Here is the call graph for this function:

◆ ~ExtrusionMeshCache()

virtual ExtrusionMeshCache::~ExtrusionMeshCache ( )
inlinevirtual

References m_cube, and m_extrusion_meshes.

Member Function Documentation

◆ create()

scene::IMesh * ExtrusionMeshCache::create ( core::dimension2d< u32 >  dim)
inline

References createExtrusionMesh(), is_power_of_two(), m_extrusion_meshes, MAX_EXTRUSION_MESH_RESOLUTION, MYMAX, and sanity_check.

Referenced by getExtrudedMesh(), and WieldMeshSceneNode::setExtruded().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createCube()

scene::IMesh * ExtrusionMeshCache::createCube ( )
inline

References m_cube.

Referenced by WieldMeshSceneNode::WieldMeshSceneNode(), WieldMeshSceneNode::changeToMesh(), getItemMesh(), and WieldMeshSceneNode::setCube().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_cube

scene::IMesh* ExtrusionMeshCache::m_cube
private

◆ m_extrusion_meshes

std::map<int, scene::IMesh*> ExtrusionMeshCache::m_extrusion_meshes
private

The documentation for this class was generated from the following file: