MCPcopy Create free account
hub / github.com/arrayfire/forge / screenQuadVBO

Function screenQuadVBO

src/backend/opengl/common.cpp:284–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284GLuint screenQuadVBO(const int pWindowId)
285{
286 //FIXME: VBOs can be shared, but for simplicity
287 // right now just created one VBO each window,
288 // ignoring shared contexts
289 static std::map<int, GLuint> svboMap;
290
291 if (svboMap.find(pWindowId)==svboMap.end()) {
292 static const float vertices[8] = {
293 -1.0f,-1.0f,
294 1.0f,-1.0f,
295 1.0f, 1.0f,
296 -1.0f, 1.0f
297 };
298 svboMap[pWindowId] = createBuffer(GL_ARRAY_BUFFER, 8, vertices, GL_STATIC_DRAW);
299 }
300
301 return svboMap[pWindowId];
302}
303
304GLuint screenQuadVAO(const int pWindowId)
305{

Callers 2

screenQuadVAOFunction · 0.85
bindResourcesMethod · 0.85

Calls 1

createBufferFunction · 0.85

Tested by

no test coverage detected