Advertisement

vim clang complete doesn't see some functions of opengl

Started by March 07, 2013 12:32 PM
-1 comments, last by Krankles 11 years, 8 months ago

Hi, I have vim and clang_complete installed but for some reason when I try to auto complete it doesn't see some of OpenGL's functions, such as glBindBuffer, or glEnableVertexAttribArray. I press CTRL + X and CTRL + U to force the auto complete and it shows the function names and parameters, but it's just missing some of the functions.

Even with glfw, I try auto completing GLFW_KEY_ESC but it's not there, I don't know why, it just says "User defined completion (^U^N^P) Pattern not found". I don't have a .clang_complete file and my gl header files are located at /usr/include/GL. I also tried including #include <GL/gl.h> but that still didn't show glBindBuffer when I try to auto complete.

Does anyone have a solution to this problem? It's very annoying because I use these functions a lot and need the auto complete.

Thanks.

Also my include header files are this:


#include <iostream>
#include <string>
#include <GL/glew.h>
#include <GL/glfw.h>
#include <glm/glm.hpp>
 

I'm on Arch Linux x64 by the way.

This topic is closed to new replies.

Advertisement