Exemplo n.º 1
0
void Buffer::clearSubData(GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void* data)
{
    if (m_directStateAccess)
    {
        glClearNamedBufferSubDataEXT(m_id, internalformat, offset, size, format, type, data);
        CheckGLError();
    }
    else
    {
        bind();

        glClearBufferSubData(m_target, internalformat, offset, size, format, type, data);
        CheckGLError();
    }
}
void BufferImplementation_DirectStateAccessEXT::clearSubData(const Buffer * buffer, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void * data) const
{
    glClearNamedBufferSubDataEXT(buffer->id(), internalformat, offset, size, format, type, data);
}
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBClearBufferObject_nglClearNamedBufferSubDataEXT__IIJJIIJ(JNIEnv *__env, jclass clazz, jint buffer, jint internalformat, jlong offset, jlong size, jint format, jint type, jlong dataAddress) {
    glClearNamedBufferSubDataEXTPROC glClearNamedBufferSubDataEXT = (glClearNamedBufferSubDataEXTPROC)tlsGetFunction(1094);
    intptr_t data = (intptr_t)dataAddress;
    UNUSED_PARAM(clazz)
    glClearNamedBufferSubDataEXT(buffer, internalformat, (intptr_t)offset, (intptr_t)size, format, type, data);
}