• Stars
    star
    3,190
  • Rank 14,074 (Top 0.3 %)
  • Language
    C
  • License
    Other
  • Created over 11 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

glad

Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specifications for multiple languages.

Check out the webservice for glad2 to generate the files you need!

NOTE: This is the 2.0 branch, which adds more functionality but changes the API.

Some languages are only available in the glad1 generator.

Examples

#include <glad/gl.h>
// GLFW (include after glad)
#include <GLFW/glfw3.h>


int main() {
    // -- snip --

    GLFWwindow* window = glfwCreateWindow(WIDTH, HEIGHT, "LearnOpenGL", NULL, NULL);
    glfwMakeContextCurrent(window);

    int version = gladLoadGL(glfwGetProcAddress);
    if (version == 0) {
        printf("Failed to initialize OpenGL context\n");
        return -1;
    }

    // Successfully loaded OpenGL
    printf("Loaded OpenGL %d.%d\n", GLAD_VERSION_MAJOR(version), GLAD_VERSION_MINOR(version));

    // -- snip --
}

The full code: hellowindow2.cpp

More examples in the examples directory of this repository.

Documentation

The documentation can be found in the wiki.

Examples can be found in the example directory. Some examples:

License

For the source code and various Khronos files see LICENSE.

The generated code from glad is any of Public Domain, WTFPL or CC0. Now Khronos has some of their specifications under Apache Version 2.0 license which may have an impact on the generated code, see this clarifying comment on the Khronos / OpenGL-Specification issue tracker.

More Repositories

1

glad-web

Webinterface for glad -> https://github.com/Dav1dde/glad
JavaScript
343
star
2

gl3n

OpenGL Maths for D (not glm for D).
D
103
star
3

pasteofexile

Paste of Exile - Path of Building Pastebin
Rust
57
star
4

glamour

OpenGL wrapper for the D programming language.
D
44
star
5

BraLa

A minecraft SMP Client written in D (License: GPLv3) โ€“ BraLa, Minecraft on a lower (WTF?) level
D
30
star
6

dotfiles

KDE with I3, Vim, ZSH and a lot more
Shell
13
star
7

ssr-workers

Rust based Cloudflare Worker with SSR
Rust
8
star
8

lumen

THIS REPOSITORY IS DEAD - Lumen is part of Kate, it can be found on the kate git repository
C++
7
star
9

cef

D wrappers for CEF
D
6
star
10

dnotify

libnotify wrapper for the D programming language
D
5
star
11

farfalle

Farfalle - Simple, multi-purpose Pastebin
Rust
5
star
12

njail

utility scripts to manage network namespaces `ip netns`, e.g. creating a VPN-Jail
Shell
5
star
13

adventofcode

Incomplete list of some of my AoC solutions
Rust
5
star
14

elegant-departure

Rust crate to simplify graceful shutdowns
Rust
5
star
15

glwtf

A WIP glfw wrapper for the D programming language
D
4
star
16

SimTools

Python Library for reading the DBPF format used by EA/Maxis for Sim* Games
Python
4
star
17

poe-tmm

Path Of Exile Tree Minimap
Rust
4
star
18

ymp

Media Player for Playlists (Youtube, Grooveshark, Soundcloud) exporting the MPRIS2 interface
Python
4
star
19

spring-tenant-scope

Showcases a custom tenant scope supporting different configurations for every tenant
Java
4
star
20

tav

Twitch Artificial Viewers, Dead project and only existed as a PoC
Python
3
star
21

poe-rs

Tools and Libraries for Path of Exile written in Rust. But still mainly a playground nothing serious
Rust
3
star
22

surfi

Offscreen rendering of webpages with webkit.
C
3
star
23

nbd

A D library for reading and writing NBT files.
D
3
star
24

Micro16

A Micro16 Emulator as taught at TU Vienna (aka. PtokA)
JavaScript
3
star
25

vp

Minimalistic pastebin for Code and Images
Python
3
star
26

vs

Simple URL-Shortener
Python
2
star
27

surf

My personal fork of http://surf.suckless.org, playin' around with it, goal: offscreen rendering
C
2
star
28

xdpdump-rs

xdpdump in Rust
Rust
2
star
29

glad-guru

TypeScript
2
star
30

chartdl

Retrieves the german charts from mtv, downloads the corresponding videos from youtube and if wanted, extracts the audio with mplayer and lame (flv to mp3).
Python
2
star
31

Playground

Everything and Nothing
Rust
2
star
32

glad-docker

Docker Image for glad-web
Shell
2
star
33

wonne

Awesomium 1.6.5 C-Api abstraction for D
D
2
star
34

docker-archbuild

Shell
2
star
35

pobbin-assets

Path of Exile Asset Pipeline for pobb.in
Rust
2
star
36

PepegSitter

Collection of Tree Sitter Parsers bundled into a Rust Crate
Rust
2
star
37

rcd

RemoteControl in D
D
2
star
38

AntiBoxBoxBot

WE BANNED BOYS
Python
1
star
39

etmv

Enjoy the m...ing Video!
Python
1
star
40

dsbg

Simple yet kind of powerful static site/blog generator.
Python
1
star
41

awirc

gevent python3 irc library
Python
1
star
42

glad-test-docker

Dockerfile
1
star
43

surfi-deimos

D
1
star
44

minecheck

Python
1
star
45

loltimer

JavaScript
1
star
46

unmd

Userland NetworkManager Dispatcher
Rust
1
star
47

bitlbee-libpurple-docker

Docker container containing bitlbee-libpurple and a bunch of protocols
Shell
1
star
48

soonerize

Python
1
star
49

python-echoprint

C++
1
star
50

awesomium

D bindings for awesomium
C++
1
star
51

mcw

Minecraft Webpanel
Python
1
star
52

muo

Learning Erlang while doing stuff I need
Erlang
1
star
53

gljm

Old! D library to load various object formats, including .ply, .obj and a custom .json
D
1
star
54

fluss

Rust
1
star
55

twnotify

Twitch Notify - Get notified when your favorite streamer goes online.
Python
1
star
56

ase-equations

Erlang
1
star
57

emfas

A bunch of utilities for the Echoprint framework
Python
1
star