33 int mi = munged_states.
find(
id);
35 if (
auto munged_state = munged_states.
get_data(mi).lock()) {
43 munged_states.
store(
id, result);
CPT(RenderState) StateMunger
Given an input state, returns the munged state.
const Value & get_data(size_t n) const
Returns the data in the nth entry of the table.
int store(const Key &key, const Value &data)
Records the indicated key/data pair in the map.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void remove_element(size_t n)
Removes the nth entry from the table.
This represents a unique collection of RenderAttrib objects that correspond to a particular renderabl...
TypeHandle is the identifier used to differentiate C++ class types.
GraphicsStateGuardianBase * get_gsg() const
Returns a pointer to the GSG that created this munger.
int find(const Key &key) const
Searches for the indicated key in the table.