报错如下:
/usr/local/include/pangolin/gl/gl.hpp:335:5: error: ‘glCopyImageSubDataNV’ was not declared in this scope
335 | glCopyImageSubDataNV(tex.tid, GL_TEXTURE_2D, 0, 0, 0, 0,
| ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlRenderBuffer::Reinitialise(GLint, GLint, GLint)’:
/usr/local/include/pangolin/gl/gl.hpp:509:9: error: ‘glDeleteRenderbuffersEXT’ was not declared in this scope
509 | glDeleteRenderbuffersEXT(1, &rbid);
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:514:5: error: ‘glGenRenderbuffersEXT’ was not declared in this scope
514 | glGenRenderbuffersEXT(1, &rbid);
| ^~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:515:5: error: ‘glBindRenderbufferEXT’ was not declared in this scope
515 | glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, rbid);
| ^~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:516:5: error: ‘glRenderbufferStorageEXT’ was not declared in this scope
516 | glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, internal_format, width, height);
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In destructor ‘pangolin::GlRenderBuffer::~GlRenderBuffer()’:
/usr/local/include/pangolin/gl/gl.hpp:523:9: error: ‘glDeleteRenderbuffersEXT’ was not declared in this scope
523 | glDeleteRenderbuffersEXT(1, &rbid);
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In destructor ‘pangolin::GlFramebuffer::~GlFramebuffer()’:
/usr/local/include/pangolin/gl/gl.hpp:572:9: error: ‘glDeleteFramebuffersEXT’ was not declared in this scope
572 | glDeleteFramebuffersEXT(1, &fbid);
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In constructor ‘pangolin::GlFramebuffer::GlFramebuffer(pangolin::GlTexture&)’:
/usr/local/include/pangolin/gl/gl.hpp:579:5: error: ‘glGenFramebuffersEXT’ was not declared in this scope
579 | glGenFramebuffersEXT(1, &fbid);
| ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In constructor ‘pangolin::GlFramebuffer::GlFramebuffer(pangolin::GlTexture&, pangolin::GlRenderBuffer&)’:
/usr/local/include/pangolin/gl/gl.hpp:587:5: error: ‘glGenFramebuffersEXT’ was not declared in this scope
587 | glGenFramebuffersEXT(1, &fbid);
| ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In constructor ‘pangolin::GlFramebuffer::GlFramebuffer(pangolin::GlTexture&, pangolin::GlTexture&, pangolin::GlRenderBuffer&)’:
/usr/local/include/pangolin/gl/gl.hpp:596:5: error: ‘glGenFramebuffersEXT’ was not declared in this scope
596 | glGenFramebuffersEXT(1, &fbid);
| ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In constructor ‘pangolin::GlFramebuffer::GlFramebuffer(pangolin::GlTexture&, pangolin::GlTexture&, pangolin::GlTexture&, pangolin::GlRenderBuffer&)’:
/usr/local/include/pangolin/gl/gl.hpp:606:5: error: ‘glGenFramebuffersEXT’ was not declared in this scope
606 | glGenFramebuffersEXT(1, &fbid);
| ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In constructor ‘pangolin::GlFramebuffer::GlFramebuffer(pangolin::GlTexture&, pangolin::GlTexture&, pangolin::GlTexture&, pangolin::GlTexture&, pangolin::GlRenderBuffer&)’:
/usr/local/include/pangolin/gl/gl.hpp:617:5: error: ‘glGenFramebuffersEXT’ was not declared in this scope
617 | glGenFramebuffersEXT(1, &fbid);
| ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlFramebuffer::Bind() const’:
/usr/local/include/pangolin/gl/gl.hpp:628:5: error: ‘glBindFramebufferEXT’ was not declared in this scope
628 | glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbid);
| ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:629:5: error: ‘glDrawBuffers’ was not declared in this scope; did you mean ‘glDrawBuffer’?
629 | glDrawBuffers( attachments, attachment_buffers );
| ^~~~~~~~~~~~~
| glDrawBuffer
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlFramebuffer::Reinitialise()’:
/usr/local/include/pangolin/gl/gl.hpp:635:9: error: ‘glDeleteFramebuffersEXT’ was not declared in this sc

最低0.47元/天 解锁文章
6768

被折叠的 条评论
为什么被折叠?



