MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / HandleMaterialEvent

Method HandleMaterialEvent

Source/Graphics/terrain.cpp:986–990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

984}
985
986void Terrain::HandleMaterialEvent(const std::string &the_event, const vec3 &event_pos, int *tri) {
987 MaterialRef material_ref = GetMaterialAtPoint(event_pos, tri);
988 Material &material = (*material_ref);
989 material.HandleEvent(the_event, event_pos);
990}
991
992void Terrain::SetDetailObjectLayers(const std::vector<DetailObjectLayer> &_detail_object_layers) {
993 if (detail_object_layers == _detail_object_layers || minimal) {

Callers

nothing calls this directly

Calls 1

HandleEventMethod · 0.45

Tested by

no test coverage detected