{"id":49355347,"url":"https://github.com/mmozeiko/c_d2d_dwrite","last_synced_at":"2026-04-27T13:03:53.876Z","repository":{"id":202993089,"uuid":"708560238","full_name":"mmozeiko/c_d2d_dwrite","owner":"mmozeiko","description":"Direct2D and DirectWrite C headers","archived":false,"fork":false,"pushed_at":"2025-04-11T08:05:58.000Z","size":11809,"stargazers_count":19,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T10:23:26.025Z","etag":null,"topics":["c","direct2d","directwrite"],"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/mmozeiko.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,"zenodo":null}},"created_at":"2023-10-22T22:46:04.000Z","updated_at":"2025-04-11T08:06:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"d1c9dbcd-c93a-46b1-97bf-f3a96b5b79fc","html_url":"https://github.com/mmozeiko/c_d2d_dwrite","commit_stats":null,"previous_names":["mmozeiko/c_d2d_dwrite"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mmozeiko/c_d2d_dwrite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmozeiko%2Fc_d2d_dwrite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmozeiko%2Fc_d2d_dwrite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmozeiko%2Fc_d2d_dwrite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmozeiko%2Fc_d2d_dwrite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmozeiko","download_url":"https://codeload.github.com/mmozeiko/c_d2d_dwrite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmozeiko%2Fc_d2d_dwrite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32337308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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","direct2d","directwrite"],"created_at":"2026-04-27T13:03:53.174Z","updated_at":"2026-04-27T13:03:53.865Z","avatar_url":"https://github.com/mmozeiko.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Direct2D and DirectWrite C headers\n\nHeaders are generated from [Win32 Metadata][] .winmd file (included in repo).\n\nHeaders have minor changes to make them to compile as C code - whenever there is overloaded method with same\nname, it has incrementing number appended to name.\n\nFor example, interface [ID2D1DeviceContext][] has [CreateBitmap][ID2D1DeviceContext-CreateBitmap] method, but\nits parent interface [ID2D1RenderTarget][] also has [CreateBitmap][ID2D1RenderTarget-CreateBitmap] method - with\ndifferent arguments. So whichever method comes last is renamed to `CreateBitmap1`. In this case it will be\n`ID2D1DeviceContext_CreateBitmap1` method.\n\nSome methods have more overloads, so to use them you will need to append suffix with 2, 3, 4, 5 or larger number.\n\nGenerated headers have proper workaround for wrong return types violating COM ABI. Read\n[Direct 2D Scene of the Accident][d2d-accident] for more information.\n\n# Running generator\n\nRun `dotnet run --project Generator`. It will write output `cd2d.h` and `cdwrite.h` files.\n\n[Win32 Metadata]: https://www.nuget.org/packages/Microsoft.Windows.SDK.Win32Metadata/\n[ID2D1DeviceContext]: https://learn.microsoft.com/en-us/windows/win32/api/d2d1_1/nn-d2d1_1-id2d1devicecontext\n[ID2D1RenderTarget]: https://learn.microsoft.com/en-us/windows/win32/api/d2d1/nn-d2d1-id2d1rendertarget\n[ID2D1DeviceContext-CreateBitmap]: https://learn.microsoft.com/en-us/windows/win32/api/d2d1/nf-d2d1-id2d1rendertarget-createbitmap(d2d1_size_u_constd2d1_bitmap_properties__id2d1bitmap)\n[ID2D1RenderTarget-CreateBitmap]: https://learn.microsoft.com/en-us/windows/win32/api/d2d1/nf-d2d1-id2d1rendertarget-createbitmap(d2d1_size_u_constvoid_uint32_constd2d1_bitmap_properties__id2d1bitmap)\n[d2d-accident]: https://blog.airesoft.co.uk/2014/12/direct2d-scene-of-the-accident/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmozeiko%2Fc_d2d_dwrite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmozeiko%2Fc_d2d_dwrite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmozeiko%2Fc_d2d_dwrite/lists"}