MCPcopy Create free account
hub / github.com/SFML/SFML / bind

Method bind

src/SFML/Graphics/VertexBuffer.cpp:290–298  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

288
289////////////////////////////////////////////////////////////
290void VertexBuffer::bind(const VertexBuffer* vertexBuffer)
291{
292 if (!isAvailable())
293 return;
294
295 const TransientContextLock lock;
296
297 glCheck(GLEXT_glBindBuffer(GLEXT_GL_ARRAY_BUFFER, vertexBuffer ? vertexBuffer->m_buffer : 0));
298}
299
300
301////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 1

isAvailableFunction · 0.50

Tested by

no test coverage detected