MCPcopy Create free account
hub / github.com/cginternals/globjects / binding

Method binding

source/globjects/source/VertexArray.cpp:84–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84VertexAttributeBinding * VertexArray::binding(const GLuint bindingIndex)
85{
86 const auto it = m_bindings.find(bindingIndex);
87
88 if (it == m_bindings.end())
89 {
90 const auto insertedIt = m_bindings.emplace(bindingIndex, new VertexAttributeBinding(this, bindingIndex));
91
92 return insertedIt.first->second;
93 }
94
95 return it->second;
96}
97
98const VertexAttributeBinding* VertexArray::binding(const GLuint bindingIndex) const
99{

Callers 11

initializeMethod · 0.80
initializeGLMethod · 0.80
initializeMethod · 0.80
initializeFunction · 0.80
initializeMethod · 0.80
initializeMethod · 0.80
initializeMethod · 0.80
initializeFunction · 0.80
drawFunction · 0.80
IcosahedronMethod · 0.80
initializeFunction · 0.80

Calls 1

endMethod · 0.45

Tested by

no test coverage detected