sanegl

所属分类:OpenGL
开发工具:C
文件大小:0KB
下载次数:0
上传日期:2018-09-09 11:34:22
上 传 者sh-1993
说明:  opengl包装器帮助器库,
(an opengl wrapper helper library,)

文件列表:
LICENSE (1076, 2018-09-09)
TODO (253, 2018-09-09)
docs/ (0, 2018-09-09)
makefile (557, 2018-09-09)
sgl_draw.c (6530, 2018-09-09)
sgl_draw.h (2762, 2018-09-09)
sgl_math.h (4006, 2018-09-09)
sgl_mesh.c (714, 2018-09-09)
sgl_mesh.h (687, 2018-09-09)
sgl_mesh_loader.c (3309, 2018-09-09)
sgl_mesh_loader.h (413, 2018-09-09)
stb_image.h (232790, 2018-09-09)
t/ (0, 2018-09-09)
t/demo.c (5791, 2018-09-09)
t/f_shader.glsl (123, 2018-09-09)
t/monkey.3ds (221560, 2018-09-09)
t/pbr.glsl (4829, 2018-09-09)
t/simple.glsl (852, 2018-09-09)
t/skybox.glsl (124, 2018-09-09)
t/skybox/ (0, 2018-09-09)
t/skybox/0.tga (12582930, 2018-09-09)
t/skybox/1.tga (12582930, 2018-09-09)
t/skybox/2.tga (12582930, 2018-09-09)
t/skybox/3.tga (12582930, 2018-09-09)
t/skybox/4.tga (12582930, 2018-09-09)
t/skybox/5.tga (12582930, 2018-09-09)
t/tex.tga (786450, 2018-09-09)
t/v_shader.glsl (338, 2018-09-09)
t/v_skybox.glsl (166, 2018-09-09)

# sanegl *bring some basic sanity into your GL code* * limit boilerplate * hide global state (at least until I switch to OpenGL 4.5 and start using DSA) * BETTER FREAKING DOCUMENTATION ## docs I'm experimenting with literate programming for this project, so run `make docs` to generate the docs directory. I'm using pycco for now, but docco and its varients should work as well. ## demo code `make demo && ./t/demo` See `t/demo.c` for example codes and stuff. ## what's here * simple opengl helper library * `.3ds` file loader ## TODO * drop GLFW (only create a GL conetxt) * other file formats * [MD2](https://en.wikipedia.org/wiki/MD2_(file_format)) * [MD3](https://en.wikipedia.org/wiki/MD3_(file_format)) * [MD5](http://www.3dgep.com/loading-and-animating-md5-models-with-opengl/) * [OBJ](https://en.wikipedia.org/wiki/Wavefront_.obj_file) * [STL](https://en.wikipedia.org/wiki/STL_(file_format)) * MS3D * Port OpenGL to 4.5 (yay for DSA!) * Add Windows support (add `#ifdefs` and make the `makefile` more Windows friendly) ## FAQ __What's the purpose of this project?__
It's not a full graphics engine, it just limits the boilerplate for the majority of 3D rendering code you may have to write. Stuff like creating VAOs, VBOs, binding textures, initializing things and cleanup are all taken care of for you. __Why is this project written in C?__
I don't like C++ __Why do you have your own `3ds` parser built in (with more custom parsers to come)?__
Because Assimp is bloated and written in C++ __Ewww you use snake_case?__
Eww to CamelCase. It's C. C code should always use snake_case. __You have a lot of opinions?__
Yes.

近期下载者

相关文件


收藏者