{"id":13430590,"url":"https://github.com/smack0007/GLFWDotNet","last_synced_at":"2025-03-16T06:30:32.396Z","repository":{"id":6380772,"uuid":"53595884","full_name":"smack0007/GLFWDotNet","owner":"smack0007","description":".NET bindings for GLFW.","archived":true,"fork":false,"pushed_at":"2022-02-17T05:54:30.000Z","size":4051,"stargazers_count":50,"open_issues_count":2,"forks_count":8,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-07T12:21:06.095Z","etag":null,"topics":["c-sharp","dotnet","dotnet-core","glfw","interop"],"latest_commit_sha":null,"homepage":"","language":"C","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/smack0007.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-10T15:36:13.000Z","updated_at":"2023-09-08T17:07:58.000Z","dependencies_parsed_at":"2022-08-06T19:15:32.415Z","dependency_job_id":null,"html_url":"https://github.com/smack0007/GLFWDotNet","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smack0007%2FGLFWDotNet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smack0007%2FGLFWDotNet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smack0007%2FGLFWDotNet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smack0007%2FGLFWDotNet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smack0007","download_url":"https://codeload.github.com/smack0007/GLFWDotNet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221656313,"owners_count":16858738,"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":["c-sharp","dotnet","dotnet-core","glfw","interop"],"created_at":"2024-07-31T02:00:55.418Z","updated_at":"2024-10-27T09:30:22.422Z","avatar_url":"https://github.com/smack0007.png","language":"C","funding_links":[],"categories":["Frameworks, Libraries and Tools","C","框架, 库和工具","Graphics"],"sub_categories":["Graphics","图片"],"readme":"[![The MIT License](https://img.shields.io/badge/license-MIT-orange.svg?style=flat-square)](http://opensource.org/licenses/MIT)\n[![Actions Status](https://github.com/smack0007/GLFWDotNet/workflows/CI/badge.svg)](https://github.com/smack0007/GLFWDotNet/actions)\n[![NuGet Badge](https://buildstats.info/nuget/GLFWDotNet)](https://www.nuget.org/packages/GLFWDotNet/)\n\n# GLFWDotNet\n\n.NET bindings for [GLFW](http://www.glfw.org). Currently only tested / works on Windows but should be\nfairly easy to make it work on other platforms. Pull requests are welcome.\n\n## Usage\n\nUse one of the following options:\n\n* Use the [NuGet](https://www.nuget.org/packages/GLFWDotNet/) package.\n* Include [GLFW.cs](https://github.com/smack0007/GLFWDotNet/blob/master/src/GLFWDotNet/GLFW.cs) directly\n  in your project.\n  \n### Native DLLs\n\n#### Windows  \n\nIf you include GLFW.cs directly into your project you'll need to implement the LoadAssembly() method of\nthe GLFW class yourself, the default implementation is in [GLFW.LoadAssembly.cs](https://github.com/smack0007/GLFWDotNet/blob/master/src/GLFWDotNet/GLFW.LoadAssembly.cs).\n\nThis can also just be included in your project of course, in which case the GLFW dlls must be copied into runtimes\\\\{win-x86|win-x64}\\\\native subdirectories relative to the GLFWDotNet.dll. See the\noutput of the samples. An example MSBuild Target can be seen in the\n[CopyDependencies.targets](https://github.com/smack0007/GLFWDotNet/blob/master/build/CopyDependencies.targets)\nbuild script.\n\n```xml\n\u003cPropertyGroup\u003e\n  \u003cGLFWDirectory\u003e$(MSBuildThisFileDirectory)..\\ext\\GLFW\\\u003c/GLFWDirectory\u003e\n\u003c/PropertyGroup\u003e\n\n\u003cTarget Name=\"CopyGLFW\" AfterTargets=\"AfterBuild\"\u003e\n  \u003cCopy\n    SourceFiles=\"$(GLFWDirectory)x64\\glfw3.dll\"\n    DestinationFolder=\"$(TargetDir)runtimes\\win-x64\\native\" /\u003e\n\n  \u003cCopy\n    SourceFiles=\"$(GLFWDirectory)x86\\glfw3.dll\"\n    DestinationFolder=\"$(TargetDir)runtimes\\win-x86\\native\" /\u003e\n\u003c/Target\u003e\n```\n\n#### Linux\n\nUsage on Linux requires `libglfw.so` to be installed as well as `libdl.so`.\n\nIn Ubuntu the dependencies can be installed via the following command:\n\n```bash\nsudo apt install libc6-dev libglfw3-dev\n```\n\n#### MacOS\n\nUsage on MacOS requires `libglfw.dylib` to be installed. Dependencies can be installed\nvia brew with the following command:\n\n```bash\nbrew install glfw3\n```\n\n## Samples\n\nThere are a few [samples](https://github.com/smack0007/GLFWDotNet/tree/master/samples) showing how to use GLFWDotNet.\n\n* [HelloWorld](https://github.com/smack0007/GLFWDotNet/blob/master/samples/HelloWorld/Program.cs) Basic HelloWorld program to get you started.\n* [GLFWInfo](https://github.com/smack0007/GLFWDotNet/blob/master/samples/GLFWInfo/Program.cs) Writes information about the system out to the console.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmack0007%2FGLFWDotNet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmack0007%2FGLFWDotNet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmack0007%2FGLFWDotNet/lists"}