| 282 | } |
| 283 | |
| 284 | GLuint 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 | |
| 304 | GLuint screenQuadVAO(const int pWindowId) |
| 305 | { |
no test coverage detected