Home | History | Annotate | Download | only in glshared

Lines Matching full:m_ctx

470 	, m_ctx				(context)
486 m_ctx.genBuffers(1, &m_glBuffer);
487 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glGenBuffers()");
495 m_ctx.deleteBuffers(1, &m_glBuffer);
496 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDeleteBuffers()");
516 m_ctx.bindBuffer(targetToGL(target), m_glBuffer);
517 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glBindBuffer()");
519 m_ctx.bufferData(targetToGL(target), size, ptr, usageToGL(usage));
520 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glBufferData()");
540 m_ctx.bindBuffer(targetToGL(target), m_glBuffer);
541 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glBindBuffer()");
543 m_ctx.bufferSubData(targetToGL(target), offset, size, ptr);
544 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glBufferSubData()");
571 m_ctx.bindBuffer(targetToGL(target), m_glBuffer);
579 m_ctx.bindBuffer(targetToGL(m_target), m_glBuffer);
580 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glBindBuffer()");
589 m_ctx.vertexAttribPointer(loc, m_componentCount, inputTypeToGL(m_inputType), m_normalize, m_stride, (GLvoid*)((GLintptr)m_offset));
590 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glVertexAttribPointer()");
595 m_ctx.vertexAttribIPointer(loc, m_componentCount, inputTypeToGL(m_inputType), m_stride, (GLvoid*)((GLintptr)m_offset));
596 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glVertexAttribIPointer()");
606 m_ctx.vertexAttribPointer(loc, m_componentCount, inputTypeToGL(m_inputType), m_normalize, m_stride, (GLvoid*)((GLintptr)m_offset));
607 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glVertexAttribPointer()");
610 m_ctx.bindBuffer(targetToGL(m_target), 0);
614 m_ctx.bindBuffer(targetToGL(m_target), 0);
615 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glBindBuffer()");
624 m_ctx.vertexAttribPointer(loc, m_componentCount, inputTypeToGL(m_inputType), m_normalize, m_stride, m_data + m_offset);
625 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glVertexAttribPointer()");
630 m_ctx.vertexAttribIPointer(loc, m_componentCount, inputTypeToGL(m_inputType), m_stride, m_data + m_offset);
631 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glVertexAttribIPointer()");
641 m_ctx.vertexAttribPointer(loc, m_componentCount, inputTypeToGL(m_inputType), m_normalize, m_stride, m_data + m_offset);
642 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glVertexAttribPointer()");
754 , m_ctx (drawContext)
775 m_arrays.push_back(new ContextArray(storage, m_ctx));
1187 m_ctx.viewport(0, 0, m_screen.getWidth(), m_screen.getHeight());
1188 m_ctx.clearColor(0.0, 0.0, 0.0, 1.0);
1189 m_ctx.clear(GL_COLOR_BUFFER_BIT);
1191 program = m_ctx.createProgram(m_program);
1193 m_ctx.useProgram(program);
1194 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glUseProgram()");
1196 m_ctx.uniform1f(m_ctx.getUniformLocation(program, "u_coordScale"), coordScale);
1197 m_ctx.uniform1f(m_ctx.getUniformLocation(program, "u_colorScale"), colorScale);
1201 m_ctx.genVertexArrays(1, &vaoId);
1202 m_ctx.bindVertexArray(vaoId);
1212 m_ctx.getAttribLocation(program, attribName.str().c_str());
1213 m_ctx.enableVertexAttribArray(loc);
1214 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glEnableVertexAttribArray()");
1221 m_ctx.drawArrays(ContextArray::primitiveToGL(primitive), firstVertex, vertexCount - firstVertex);
1222 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDrawArrays()");
1231 deUint32 loc = m_ctx.getAttribLocation(program, attribName.str().c_str());
1233 m_ctx.disableVertexAttribArray(loc);
1234 GLU_EXPECT_NO_ERROR(m_ctx.getError(), "glDisableVertexAttribArray()");
1239 m_ctx.deleteVertexArrays(1, &vaoId);
1241 m_ctx.deleteProgram(program);
1242 m_ctx.useProgram(0);
1243 m_ctx.readPixels(m_screen, 0, 0, m_screen.getWidth(), m_screen.getHeight());