GLint BufferImplementation_DirectStateAccessARB::getParameter(const Buffer * buffer, GLenum pname) const
{
    GLint value = 0;

    glGetNamedBufferParameteriv(buffer->id(), pname, &value);

    return value;
}
Esempio n. 2
0
GLuint Buffer::getByteSize() const {

	GLint size {0};

	if (isValid()){
		glGetNamedBufferParameteriv(m_name, GL_BUFFER_SIZE, &size);
	}

	return static_cast<GLuint>(size);

}