Minetest  5.4.0
ItemMesh Struct Reference

#include <wieldmesh.h>

+ Collaboration diagram for ItemMesh:

Public Member Functions

 ItemMesh ()=default
 

Public Attributes

scene::IMesh * mesh = nullptr
 
std::vector< ItemPartColorbuffer_colors
 
bool needs_shading = true
 

Constructor & Destructor Documentation

◆ ItemMesh()

ItemMesh::ItemMesh ( )
default

Member Data Documentation

◆ buffer_colors

std::vector<ItemPartColor> ItemMesh::buffer_colors

Stores the color of each mesh buffer.

Referenced by drawItemStack(), and getItemMesh().

◆ mesh

scene::IMesh* ItemMesh::mesh = nullptr

Referenced by drawItemStack(), and getItemMesh().

◆ needs_shading

bool ItemMesh::needs_shading = true

If false, all faces of the item should have the same brightness. Disables shading based on normal vectors.

Referenced by drawItemStack(), and getItemMesh().


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