Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when I look through a declaration in glut.h header file, there are some declarations that looks very unfamiliar to me:

extern int glutGet{GLenum type}; 
extern int glutGetModifiers{void};
extern GLfloat glutGetColor{int {\index{}}, int component};


I rarely saw this kind of declaration. Did I miss anything in C++ language?
Thanks a million.

What I have tried:

it looks like C# property declaration, but not sure if there is such thing in C++.
Posted
Updated 5-Mar-21 12:06pm

You appear to be looking some sort of documentation file. On my machine, from GLUT-3.7.6 the glut.h file has this :
C++
GLUTAPI GLfloat APIENTRY glutGetColor(int ndx, int component);
 
Share this answer
 
Comments
Southmountain 6-Mar-21 9:36am    
Thank you very much!
CPallini 6-Mar-21 9:45am    
5.
I know of nothing in C++ that allows this syntax.
 
Share this answer
 
Comments
CPallini 6-Mar-21 9:46am    
5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900