MCPcopy Create free account
hub / github.com/comaps/comaps / SetAttribute

Method SetAttribute

libs/drape/mesh_object.cpp:188–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188void MeshObject::SetAttribute(std::string const & attributeName, uint32_t bufferInd, uint32_t offset,
189 uint32_t componentsCount, glConst type)
190{
191 CHECK_LESS(bufferInd, m_buffers.size(), ());
192 CHECK(m_buffers[bufferInd], ());
193 m_buffers[bufferInd]->m_attributes.emplace_back(attributeName, offset, componentsCount, type);
194
195 Reset();
196}
197
198void MeshObject::Reset()
199{

Callers 3

RenderMethod · 0.45
Arrow3dMethod · 0.45
CreateMeshFunction · 0.45

Calls 2

sizeMethod · 0.45
emplace_backMethod · 0.45

Tested by

no test coverage detected