Lines Matching refs:m_gl
410 const glw::Functions* m_gl;
417 : m_gl (&context.getRenderContext().getFunctions())
435 m_gl->genVertexArrays(1, &m_vaoHandle);
436 m_gl->bindVertexArray(m_vaoHandle);
438 m_gl->genBuffers(1, &m_vboHandle);
439 m_gl->bindBuffer(GL_ARRAY_BUFFER, m_vboHandle);
441 m_gl->bufferData(GL_ARRAY_BUFFER, (glw::GLsizei)(m_data.size() * sizeof(glw::GLfloat)), &m_data[0], GL_STATIC_DRAW);
443 m_gl->enableVertexAttribArray(0);
444 m_gl->vertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 5 * (glw::GLsizei)sizeof(GL_FLOAT), (glw::GLvoid *)0);
445 m_gl->enableVertexAttribArray(1);
446 m_gl->vertexAttribPointer(1, 2, GL_FLOAT, GL_FALSE, 5 * (glw::GLsizei)sizeof(GL_FLOAT), (glw::GLvoid *)(3 * sizeof(GL_FLOAT)));
448 m_gl->bindVertexArray(0);
449 m_gl->bindBuffer(GL_ARRAY_BUFFER, 0);
450 GLU_EXPECT_NO_ERROR(m_gl->getError(), "gl error during vertex data setup");
455 m_gl->deleteBuffers(1, &m_vboHandle);
456 m_gl->deleteVertexArrays(1, &m_vaoHandle);
461 m_gl->bindVertexArray(m_vaoHandle);
466 m_gl->bindVertexArray(0);
482 const glw::Functions* m_gl;
493 : m_gl (&context.getRenderContext().getFunctions())
508 m_gl->genTextures(1, &m_handle);
510 m_gl->bindTexture(GL_TEXTURE_2D, m_handle);
511 m_gl->texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_MIRRORED_REPEAT);
512 m_gl->texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_MIRRORED_REPEAT);
513 m_gl->texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
514 m_gl->texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
516 m_gl->texImage2D(GL_TEXTURE_2D, 0, m_internalFormat, m_width, m_height, 0, transferFormat, transferType, m_imageData.getAccess().getDataPtr());
518 m_gl->bindTexture(GL_TEXTURE_2D, 0);
523 m_gl->deleteTextures(1, &m_handle);
539 m_gl->activeTexture(GL_TEXTURE0 + m_textureUnit);
540 m_gl->bindTexture(GL_TEXTURE_2D, m_handle);
545 m_gl->bindTexture(GL_TEXTURE_2D, 0);
567 const glw::Functions* m_gl;
578 : m_gl (&context.getRenderContext().getFunctions())
587 m_gl->bindFramebuffer(m_targetType, **m_referenceSource);
589 m_gl->framebufferTexture2D(m_targetType, m_colorAttachment, GL_TEXTURE_2D, textureAttachmentHandle, 0);
591 TCU_CHECK(m_gl->checkFramebufferStatus(m_targetType) == GL_FRAMEBUFFER_COMPLETE);
596 m_gl->drawBuffers(DE_LENGTH_OF_ARRAY(textureAttachments), textureAttachments);
597 GLU_EXPECT_NO_ERROR(m_gl->getError(), "glDrawBuffer()");
602 m_gl->readBuffer(m_colorAttachment);
603 GLU_EXPECT_NO_ERROR(m_gl->getError(), "glReadBuffer()");
606 m_gl->bindFramebuffer(m_targetType, 0);
637 m_gl->bindFramebuffer(m_targetType, **m_referenceSource);
646 m_gl->bindFramebuffer(m_targetType, 0);
665 const glw::Functions* m_gl;
672 : m_gl (&context.getRenderContext().getFunctions())
751 m_gl->useProgram(this->getHandle());
756 m_gl->useProgram(0);