<commit_before>glad
====

GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs.


Advantages:

 * Always up to date
 * Supports every Extension (GL/EGL/GLX/WGL)
 * Easy to maintain and extend (supporting multiple languages at once)
 * Allows you to use your own loader or e.g. SDL_GL_GetProcAddress instead of the builtin
 * Easy way to check if an extension is loaded `if(GL_EXT_Cg_shader) { /* Exists */ }`
 * Can generate a loader which fits exactly your needs, only the extensions and version you need

What a D code using glad (and SDL) could look like:

    import glad.gl; // imports all constants and functions, including extensions
    import glad.loader : gladLoadGL;
    void main() {
        /* setup OpenGL context with SDL */
        gladLoadGL(&SDL_GL_GetProcAddress);
        enforce(GLVersion.major >= 3 && GLVersion.minor >= 2);
        /* done, use OpenGL here */
    }

Of course you don't need to use SDL, glad provides its own OpenGL loder:

    void main() {<commit_msg>readme: Loader is a delegate<commit_after>glad
====

GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs.


Advantages:

 * Always up to date
 * Supports every Extension (GL/EGL/GLX/WGL)
 * Easy to maintain and extend (supporting multiple languages at once)
 * Allows you to use your own loader or e.g. SDL_GL_GetProcAddress instead of the builtin
 * Easy way to check if an extension is loaded `if(GL_EXT_Cg_shader) { /* Exists */ }`
 * Can generate a loader which fits exactly your needs, only the extensions and version you need

What a D code using glad (and SDL) could look like:

    import glad.gl; // imports all constants and functions, including extensions
    import glad.loader : gladLoadGL;
    void main() {
        /* setup OpenGL context with SDL */
        gladLoadGL(x => SDL_GL_GetProcAddress(x));
        enforce(GLVersion.major >= 3 && GLVersion.minor >= 2);
        /* done, use OpenGL here */
    }

Of course you don't need to use SDL, glad provides its own OpenGL loder:

    void main() {
{'fraction_non_alphanumeric': 0.08562992125984252, 'fraction_numerical': 0.001968503937007874, 'mean_word_length': 3.28, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1708919', 'n_tokens_mistral': 618, 'n_tokens_neox': 595, 'n_words': 251}