Sign in to follow this  

vim clang complete doesn't see some functions of opengl

Recommended Posts

Krankles    281

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.




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.

Edited by Krankles

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this