-
Notifications
You must be signed in to change notification settings - Fork 1
Compilation error #1
Description
Ubuntu 16.04, gcc5.2.1, Qt version 5.6.1
../ViewerCore/Object.cpp: In member function ‘virtual bool Object::PostGLInitialize()’:
../ViewerCore/Object.cpp:45:49: error: ‘glGenVertexArrays’ was not declared in this scope
glGenVertexArrays(1, &this->vertex_array_handle);
^
../ViewerCore/Object.cpp:46:45: error: ‘glBindVertexArray’ was not declared in this scope
glBindVertexArray(this->vertex_array_handle);
^
../ViewerCore/Object.cpp:48:43: error: ‘glGenBuffers’ was not declared in this scope
glGenBuffers(1, &this->vertex_data_handle);
^
../ViewerCore/Object.cpp:49:56: error: ‘glBindBuffer’ was not declared in this scope
glBindBuffer(GL_ARRAY_BUFFER, this->vertex_data_handle);
^
../ViewerCore/Object.cpp:51:120: error: ‘glBufferData’ was not declared in this scope
glBufferData(GL_ARRAY_BUFFER, this->vertices.size() * sizeof(VertexAttributesPCNT), &this->vertices[0], GL_STATIC_DRAW);
^
../ViewerCore/Object.cpp: In member function ‘virtual void Object::TakeDown()’:
../ViewerCore/Object.cpp:89:53: error: ‘glDeleteVertexArrays’ was not declared in this scope
glDeleteVertexArrays(1, &this->vertex_array_handle);
^
../ViewerCore/Object.cpp:92:47: error: ‘glDeleteBuffers’ was not declared in this scope
glDeleteBuffers(1, &this->vertex_data_handle);
^
../ViewerCore/Object.cpp:95:50: error: ‘glDeleteBuffers’ was not declared in this scope
glDeleteBuffers(1, &this->vertex_indices_handle);
^
../ViewerCore/Object.cpp:98:61: error: ‘glDeleteBuffers’ was not declared in this scope
glDeleteBuffers(1, &this->vertex_indices_wire_frame_handle);