rougier / freetype-gl

OpenGL text using one vertex buffer, one texture and FreeType
Other
1.65k stars 266 forks source link

Define GL_GLEXT_PROTOTYPES to get prototypes for GL extensions #283

Closed tbleher closed 1 month ago

tbleher commented 4 months ago

Freetype-gl uses several functions that are only declared on Linux if GL_GLEXT_PROTOTYPES is defined.

Define GL_GLEXT_PROTOTYPES, to get prototypes for functions like glGetAttribLocation. Since C99, prototypes are needed for all functions, and e.g. clang-18 will warn if the prototypes are not available.

rougier commented 1 month ago

Thanks and sorry for the delay.

tbleher commented 1 month ago

@rougier No problem - thanks a lot for maintaining freetype-gl!