D
dmjcunha
I am studying mesa3d source files and I found lots of function declarations and definitions not seen in the book The C programming language.
For example, in the file gl.h I found:
GLAPI void GLAPIENTRY glClearColor( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha );
What is the GLAPI and GLAPIENTRY?
Then in the file clear.c I found:
void GLAPIENTRY
_mesa_ClearColor( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha )
{
GLfloat tmp[4];
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END(ctx);
tmp[0] = red;
...
Again what is the GLAPIENTRY?
Is _mesa_ClearColor(...
after compilation transformed in the glClearColor(... seen in the header file?
If someone can explain me in general terms I would thank, although if someone knows specifically about mesa3d it is better.
Thanks in advance.
For example, in the file gl.h I found:
GLAPI void GLAPIENTRY glClearColor( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha );
What is the GLAPI and GLAPIENTRY?
Then in the file clear.c I found:
void GLAPIENTRY
_mesa_ClearColor( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha )
{
GLfloat tmp[4];
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END(ctx);
tmp[0] = red;
...
Again what is the GLAPIENTRY?
Is _mesa_ClearColor(...
after compilation transformed in the glClearColor(... seen in the header file?
If someone can explain me in general terms I would thank, although if someone knows specifically about mesa3d it is better.
Thanks in advance.