User forums > Help

OpenGL Auto Completion

<< < (2/2)

Ibbur:
I think the problem is, that externs are skipped.

The gl... functions are preceded with the macro GLAPI. Now look, how GLAPI is defined in gl.h:

--- Quote from: gl.h ---
--- Code: ---#if !defined(GLAPI)
#  if defined(_MSC_VER)                        /* Microsoft Visual C++ */
#    define GLAPI __declspec(dllimport)
#  elif defined(__LCC__) && defined(__WIN32__) /* LCC-Win32 */
#    define GLAPI __stdcall
#  else                                        /* Others (e.g. MinGW, Cygwin, non-win32) */
#    define GLAPI extern
#  endif
#endif
--- End code ---

--- End quote ---

dje:
AFAIK, macro are not managed by code completion plugin, that's why your symbols are not found.

Dje

Ibbur:
Preprocessor parsing can be enabled in the editor settings dialog:


Using a patched version (look at the link, posted above), that does not skip externs, completion with gl... functions works for me:

lowtraxx:
Hi,

tried this workaround, but doesnt work here. (Applied the patch, but i think the file changed since the last entry.) Still getting no Autocompletion of gl.h. Does someone have another solution?

thx

Low

Navigation

[0] Message Index

[*] Previous page

Go to full version