{"id":26758498,"url":"https://github.com/wdevore/dartopengl","last_synced_at":"2025-03-28T16:29:18.011Z","repository":{"id":234771806,"uuid":"789485787","full_name":"wdevore/DartOpenGL","owner":"wdevore","description":"The project is a composition of Dart and OpenGL applications ranging from Neuromorphic to Games","archived":false,"fork":false,"pushed_at":"2025-03-06T22:08:55.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T23:20:18.926Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wdevore.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":"2024-04-20T17:25:13.000Z","updated_at":"2025-03-06T22:08:58.000Z","dependencies_parsed_at":"2024-04-20T18:47:26.371Z","dependency_job_id":"6c964c55-744c-4842-a6c2-fa5627809202","html_url":"https://github.com/wdevore/DartOpenGL","commit_stats":null,"previous_names":["wdevore/dartopengl"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdevore%2FDartOpenGL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdevore%2FDartOpenGL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdevore%2FDartOpenGL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdevore%2FDartOpenGL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wdevore","download_url":"https://codeload.github.com/wdevore/DartOpenGL/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246062211,"owners_count":20717576,"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","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":[],"created_at":"2025-03-28T16:29:17.299Z","updated_at":"2025-03-28T16:29:17.941Z","avatar_url":"https://github.com/wdevore.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DartOpenGL\nThe project is a composition of Dart and OpenGL applications ranging from Neuromorphic to Games. It uses GLFW.\n\n# learnopengl.com for Dart\nContains code samples for all chapters of Learn OpenGL and [https://learnopengl.com](https://learnopengl.com). \n\n# TODOs\n- Correctly define vertex winding to Face culling can be enabled.\n\n# Create new project\nYou can create a new project via Flutter. Using *dart*\n\n```sh\ndart create basic_template\n```\n\nYou can also copy an existing basic project by:\n- Copy and rename project\n- Update yaml *name:* attribute to match project name\n- In *main.dart* update glfwCreateWindow name to match yaml\n- Update any dependent shader loading names\n- Update *launch.json* and modify the **DartRunner** \"program\" entry key to point to the new path. See below **Json launch entry** section.\n- Restart vscode because it will be out of sync\n\n# Json launch entry\nNote: you need to update the \"program\" to reference the appropriate target.\n```json\n{\n    \"name\": \"DartRunner\",\n    \"cwd\": \"/home/iposthuman/Documents/dart/DartOpenGL/\",\n    \"program\": \"basic_template/bin/main.dart\",\n    \"request\": \"launch\",\n    \"type\": \"dart\"\n},\n```\n\n# GLFW\nWhich version is installed:\n```sh\npkg-config --list-all |grep -i glfw\n```\n\nfinding .so library file:\n```sh\nldconfig -p | grep libglfw\n```\nProduces:\n```\nlibglfw.so.3 (libc6,x86-64) =\u003e /lib/x86_64-linux-gnu/libglfw.so.3\n```\n\nNext create a link.\n\nCreating link to libglfw3.so:\n```sh\nln -s /lib/x86_64-linux-gnu/libglfw.so.3 /usr/local/lib/libglfw.so\n```\n\nThen add a path var.\n\nAdding an entry to settings.json didn't seem to work:\n```json\n\"dart.env\": {\n    \"name\": \"LD_LIBRARY_PATH\", \"value\": \"/usr/local/lib/\"\n}\n```\n\nHowever, adding an entry to my .bashrc file did:\n```sh\nexport LD_LIBRARY_PATH=\"/usr/local/lib\"\n```\nAnd then ```source .bashrc`` and restarting vscode worked.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwdevore%2Fdartopengl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwdevore%2Fdartopengl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwdevore%2Fdartopengl/lists"}