{"id":16825819,"url":"https://github.com/macdue/simpleobjloader","last_synced_at":"2025-09-12T02:11:39.819Z","repository":{"id":93648976,"uuid":"121613981","full_name":"MacDue/SimpleObjLoader","owner":"MacDue","description":"A very simple Wavefront .obj loader with glut support.","archived":false,"fork":false,"pushed_at":"2018-03-12T19:02:29.000Z","size":18,"stargazers_count":11,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-11T03:39:35.345Z","etag":null,"topics":["c","comp27112","glut","opengl","single-header","single-header-lib","wavefront-obj"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MacDue.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-15T10:02:41.000Z","updated_at":"2025-02-25T09:13:28.000Z","dependencies_parsed_at":"2023-03-24T00:03:17.598Z","dependency_job_id":null,"html_url":"https://github.com/MacDue/SimpleObjLoader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MacDue/SimpleObjLoader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MacDue%2FSimpleObjLoader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MacDue%2FSimpleObjLoader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MacDue%2FSimpleObjLoader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MacDue%2FSimpleObjLoader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MacDue","download_url":"https://codeload.github.com/MacDue/SimpleObjLoader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MacDue%2FSimpleObjLoader/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267758655,"owners_count":24139899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","comp27112","glut","opengl","single-header","single-header-lib","wavefront-obj"],"created_at":"2024-10-13T11:15:17.593Z","updated_at":"2025-07-29T21:10:28.076Z","avatar_url":"https://github.com/MacDue.png","language":"C","readme":"### Simple Obj Loader\n####  A really simple single header Wavefront .obj loader with glut support.\n\nIncluding:\n```c\n// Only needed at first include\n#define SIMPLE_OBJ_IMP\n// glut needs to be included first for drawObj implementation\n#include \u003cGL/glut.h\u003e\n#include \"simple_obj.h\"\n```\n\n##### Full docs:\nUsage:\n\n```c\n// Loading a .obj\nSimpleObj_t* myObj = loadObj(\"some_model.obj\");\n```\n\nDrawing:\n```c\n// GL setup stuff, transforms, ect...\ndrawObj(myObj);\n// More GL stuff\n```\n\nGroups:\n```c\n// Access the struct for the first group in the file.\nObjGroup_t* group = objDataArrayAccess(\u0026myObj-\u003egroups, 0);\n// Attributes: name, startFace, endFace, \u0026 render.\ngroup-\u003erender = false; // don't draw this group.\n```\n\nFreeing obj data:\n```c\n// This obj is trash\ndisposeObj(myObj);\n// It's where it belongs now\n```\n\nWorking:\n\n- Vertices\n- Normals\n- Texture coords\n- Faces\n- Basic rendering\n\nTodo:\n- ~~Separate group rendering~~ (done)\n- Materials\n- Maybe support some more obj features\n- ~~Clean up and free stuff~~ (done)\n\n##### Example result:\n\n![alt text](https://i.imgur.com/ozT39Jh.png \"Future gun\")\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacdue%2Fsimpleobjloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacdue%2Fsimpleobjloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacdue%2Fsimpleobjloader/lists"}