Lines Matching refs:bo
311 const GLvoid *pointer, const buffer_t* bo, GLsizei count) in init() argument
330 this->bo = bo; in init()
336 physical_pointer = (bo) ? (bo->data + uintptr_t(pointer)) : pointer; in resolve()
1158 if (am.vertex.bo || am.vertex.pointer) { in validate_arrays()
1165 if (am.normal.bo || am.normal.pointer) { in validate_arrays()
1173 if (am.color.bo || am.color.pointer) { in validate_arrays()
1177 if (am.color.bo || am.color.pointer) { in validate_arrays()
1191 if (am.texture[i].bo || am.texture[i].pointer) { in validate_arrays()
1460 buffer_t const* bo = 0; in glBindBuffer() local
1462 bo = c->bufferObjectManager->bind(buffer); in glBindBuffer()
1463 if (!bo) { in glBindBuffer()
1469 c->arrays.array_buffer : c->arrays.element_array_buffer) = bo; in glBindBuffer()
1487 buffer_t const* bo = ((target == GL_ARRAY_BUFFER) ? in glBufferData() local
1490 if (bo == 0) { in glBufferData()
1496 buffer_t* edit_bo = const_cast<buffer_t*>(bo); in glBufferData()
1502 memcpy(bo->data, data, size); in glBufferData()
1517 buffer_t const* bo = ((target == GL_ARRAY_BUFFER) ? in glBufferSubData() local
1520 if (bo == 0) { in glBufferSubData()
1525 if (offset+size > bo->size) { in glBufferSubData()
1529 memcpy(bo->data + offset, data, size); in glBufferSubData()
1554 if (c->arrays.vertex.bo) { in glDeleteBuffers()
1555 if (c->arrays.vertex.bo->name == name) { in glDeleteBuffers()
1556 c->arrays.vertex.bo = 0; in glDeleteBuffers()
1559 if (c->arrays.normal.bo) { in glDeleteBuffers()
1560 if (c->arrays.normal.bo->name == name) { in glDeleteBuffers()
1561 c->arrays.normal.bo = 0; in glDeleteBuffers()
1564 if (c->arrays.color.bo) { in glDeleteBuffers()
1565 if (c->arrays.color.bo->name == name) { in glDeleteBuffers()
1566 c->arrays.color.bo = 0; in glDeleteBuffers()
1570 if (c->arrays.texture[t].bo) { in glDeleteBuffers()
1571 if (c->arrays.texture[t].bo->name == name) { in glDeleteBuffers()
1572 c->arrays.texture[t].bo = 0; in glDeleteBuffers()