Lines Matching refs:m_gl
1174 : m_gl(gl) in Program()
1193 m_gl.deleteShader(m_vertex_shader_status.shader_id); in Program()
1200 m_gl.deleteShader(m_fragment_shader_status.shader_id); in Program()
1211 m_gl.deleteShader(m_vertex_shader_status.shader_id); in ~Program()
1218 m_gl.deleteShader(m_fragment_shader_status.shader_id); in ~Program()
1225 m_gl.deleteProgram(m_program_status.program_id); in ~Program()
1278 shader.shader_id = m_gl.createShader(shader_type); in compileShader()
1280 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glCreateShader() call failed."); in compileShader()
1283 m_gl.shaderSource(shader.shader_id, 1, shader_code, NULL); in compileShader()
1285 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glShaderSource() call failed."); in compileShader()
1287 m_gl.compileShader(shader.shader_id); in compileShader()
1289 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glCompileShader() call failed."); in compileShader()
1292 m_gl.getShaderiv(shader.shader_id, GL_COMPILE_STATUS, &shader.shader_compilation_status); in compileShader()
1294 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glGetShaderiv() call failed."); in compileShader()
1301 m_gl.getShaderiv(shader.shader_id, GL_INFO_LOG_LENGTH, &log_size); in compileShader()
1303 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glGetShaderiv() call failed."); in compileShader()
1313 m_gl.getShaderInfoLog(shader.shader_id, log_size, DE_NULL, log); in compileShader()
1319 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glGetShaderInfoLog() call failed."); in compileShader()
1328 m_gl.deleteShader(shader.shader_id); in compileShader()
1357 program.program_id = m_gl.createProgram(); in linkShaders()
1359 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glCreateShader() call failed."); in linkShaders()
1369 m_gl.transformFeedbackVaryings(program.program_id, 1, &varying, GL_INTERLEAVED_ATTRIBS); in linkShaders()
1371 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glTransformFeedbackVaryings() call failed."); in linkShaders()
1375 m_gl.attachShader(program.program_id, vertex_shader.shader_id); in linkShaders()
1377 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glAttachShader() call failed."); in linkShaders()
1379 m_gl.attachShader(program.program_id, fragment_shader.shader_id); in linkShaders()
1381 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glAttachShader() call failed."); in linkShaders()
1383 m_gl.linkProgram(program.program_id); in linkShaders()
1385 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glLinkProgram() call failed."); in linkShaders()
1388 m_gl.getProgramiv(program.program_id, GL_LINK_STATUS, &program.program_linkage_status); in linkShaders()
1390 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glGetProgramiv() call failed."); in linkShaders()
1397 m_gl.getProgramiv(program.program_id, GL_INFO_LOG_LENGTH, &log_size); in linkShaders()
1399 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glGetProgramiv() call failed."); in linkShaders()
1409 m_gl.getProgramInfoLog(program.program_id, log_size, DE_NULL, log); in linkShaders()
1415 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glGetProgramInfoLog() call failed."); in linkShaders()
1421 m_gl.detachShader(program.program_id, vertex_shader.shader_id); in linkShaders()
1423 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glDetachShader() call failed."); in linkShaders()
1425 m_gl.detachShader(program.program_id, fragment_shader.shader_id); in linkShaders()
1427 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glDetachShader() call failed."); in linkShaders()
1431 m_gl.deleteProgram(program.program_id); in linkShaders()
1441 m_gl.deleteProgram(program.program_id); in linkShaders()
1454 m_gl.useProgram(ProgramStatus().program_id); in UseProgram()
1455 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glUseProgram call failed."); in UseProgram()
1466 : m_gl(gl), m_size_x(size_x), m_size_y(size_y), m_framebuffer_id(0), m_renderbuffer_id(0) in Framebuffer()
1468 m_gl.genFramebuffers(1, &m_framebuffer_id); in Framebuffer()
1469 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glGenFramebuffers call failed."); in Framebuffer()
1471 m_gl.genRenderbuffers(1, &m_renderbuffer_id); in Framebuffer()
1472 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glGenRenderbuffers call failed."); in Framebuffer()
1474 m_gl.bindFramebuffer(GL_FRAMEBUFFER, m_framebuffer_id); in Framebuffer()
1475 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glBindFramebuffer call failed."); in Framebuffer()
1477 m_gl.bindRenderbuffer(GL_RENDERBUFFER, m_renderbuffer_id); in Framebuffer()
1478 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glBindRenderbuffer call failed."); in Framebuffer()
1480 m_gl.renderbufferStorage(GL_RENDERBUFFER, GL_R32F, m_size_x, m_size_y); in Framebuffer()
1481 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glRenderbufferStorage call failed."); in Framebuffer()
1483 …m_gl.framebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, m_renderbuffer… in Framebuffer()
1484 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glFramebufferRenderbuffer call failed."); in Framebuffer()
1488 m_gl.deleteFramebuffers(1, &m_framebuffer_id); in Framebuffer()
1491 m_gl.deleteRenderbuffers(1, &m_renderbuffer_id); in Framebuffer()
1493 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glDeleteRenderbuffers call failed."); in Framebuffer()
1494 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glDeleteFramebuffers call failed."); in Framebuffer()
1503 m_gl.deleteFramebuffers(1, &m_framebuffer_id); in ~Framebuffer()
1505 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glDeleteFramebuffers call failed."); in ~Framebuffer()
1510 m_gl.deleteRenderbuffers(1, &m_renderbuffer_id); in ~Framebuffer()
1512 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glDeleteRenderbuffers call failed."); in ~Framebuffer()
1533 m_gl.bindFramebuffer(GL_FRAMEBUFFER, m_framebuffer_id); in bind()
1534 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glBindFramebuffer call failed."); in bind()
1536 m_gl.viewport(0, 0, m_size_x, m_size_y); in bind()
1537 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glViewport call failed."); in bind()
1550 m_gl.readPixels(0, 0, m_size_x, m_size_y, GL_RED, GL_FLOAT, pixels.data()); in readPixels()
1551 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glReadPixels call failed."); in readPixels()
1562 m_gl.clearColor(0.f, 0.f, 0.f, 1.f); in clear()
1563 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glClearColor call failed."); in clear()
1565 m_gl.clear(GL_COLOR_BUFFER_BIT); in clear()
1566 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glClear call failed."); in clear()
1579 : m_gl(gl), m_vertex_array_object_id(0), m_primitive_type(primitive_type) in VertexArrayObject()
1581 m_gl.genVertexArrays(1, &m_vertex_array_object_id); in VertexArrayObject()
1582 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glGenVertexArrays call failed."); in VertexArrayObject()
1584 m_gl.bindVertexArray(m_vertex_array_object_id); in VertexArrayObject()
1585 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glBindVertexArray call failed."); in VertexArrayObject()
1593 m_gl.deleteVertexArrays(1, &m_vertex_array_object_id); in ~VertexArrayObject()
1594 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glDeleteVertexArrays call failed."); in ~VertexArrayObject()
1603 m_gl.bindVertexArray(m_vertex_array_object_id); in bind()
1604 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glBindVertexArray call failed."); in bind()
1615 m_gl.drawArrays(m_primitive_type, first, count); in draw()
1616 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glDrawArrays() call failed."); in draw()
1630 m_gl.enable(GL_RASTERIZER_DISCARD); in drawWithTransformFeedback()
1631 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glEnable call failed."); in drawWithTransformFeedback()
1634 m_gl.beginTransformFeedback(GL_POINTS); in drawWithTransformFeedback()
1635 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glBeginTransformFeedback call failed."); in drawWithTransformFeedback()
1639 m_gl.endTransformFeedback(); in drawWithTransformFeedback()
1640 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glEndTransformFeedback call failed."); in drawWithTransformFeedback()
1644 m_gl.disable(GL_RASTERIZER_DISCARD); in drawWithTransformFeedback()
1645 GLU_EXPECT_NO_ERROR(m_gl.getError(), "glDisbale call failed."); in drawWithTransformFeedback()