MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / UpdateMinElement

Function UpdateMinElement

src/lua/LuaGLPointers.cpp:135–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133//============================================================================//
134
135static void UpdateMinElement(int maxElem) {
136 if (maxElements.empty()) {
137 minElements = 0;
138 return;
139 }
140 if (minElements > maxElem) {
141 minElements = maxElem;
142 return;
143 }
144 minElements = 1234567890;
145 std::map<GLenum, int>::const_iterator it;
146 for (it = maxElements.begin(); it != maxElements.end(); ++it) {
147 if (minElements > it->second) {
148 minElements = it->second;
149 }
150 }
151}
152
153
154//============================================================================//

Callers 1

ParsePointerFunction · 0.85

Calls 3

emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected