Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#30 Changes to improve auto-complete functionality...

unknown
open
Nigel Stewart
None
7
2015-02-06
2009-04-04
jaha
No

Currently the macros for the gl funtions are in the form:

define glSomeFunction GLEW_GET_FUN(__glewSomeFunction)

so that the when glSomeFunction has arguments you write:

glSomeFunction(myArg1);

which expands to:

GLEW_GET_FUN(__glewSomeFunction)(myArg1);

One downside of this approach is that for IDEs which support intellisense/auto-complete, the macros lack any knowledge of the number and type of arguments.

I suggest changing the macros to the following form:

define glSomeFunction(ArgumentTypeArgumentName) GLEW_GET_FUN(glewSomeFunction)(ArgumentType_Argumentname)

or a more specific case:

define glLinkProgram(GLuintprogram) GLEW_GET_FUN(glewLinkProgram)(GLuint__program)

This would allow capable IDEs to show the full function signature.

Discussion


  • Anonymous
    2014-07-09

    Why not use a class? So we write like: gl.someFunction(args);

    That'd be VERY cool. I saw this once on a video of some guy using XCODE...

     


Anonymous


Cancel   Add attachments