Dav1dde/glad
소개
공식 사양을 기반으로 하는 다중 언어 Vulkan/GL/GLES/EGL/GLX/WGL 로더 생성기입니다.
개발 도구측정된 스타 증가
- in 24h
- -2
- in 7 days
- 0
- in 15 days
- +3
- in 1 month
- +12
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalglad
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.
Plugins
Glad plugins maintained by the community to add support for more languages:
Documentation
The documentation can be found in the wiki.
Examples can be found in the example directory. Some examples:
- C/C++
- Rust
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.
관련 프로젝트 살펴보기
불러오는 중…