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

Method resizePixelBuffers

src/backend/opengl/sdl/window.cpp:346–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346void Widget::resizePixelBuffers()
347{
348 if (mFramePBO!=0)
349 glDeleteBuffers(1, &mFramePBO);
350
351 uint w = mWidth;
352 uint h = mHeight;
353
354 glGenBuffers(1, &mFramePBO);
355 glBindBuffer(GL_PIXEL_PACK_BUFFER, mFramePBO);
356 glBufferData(GL_PIXEL_PACK_BUFFER, w*h*4*sizeof(uchar), 0, GL_DYNAMIC_READ);
357 glBindBuffer(GL_PIXEL_PACK_BUFFER, 0);
358}
359
360const glm::mat4 Widget::getViewMatrix(const CellIndex& pIndex)
361{

Callers 1

window_implMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected