{"id":19527868,"url":"https://github.com/valinet/d2danalogclockc","last_synced_at":"2026-06-07T21:31:17.586Z","repository":{"id":108971073,"uuid":"365876303","full_name":"valinet/D2DAnalogClockC","owner":"valinet","description":"Example of an analog clock drawn using Direct2D based on the sample code but drawn using ID2D1DeviceContext and written in pure C.","archived":false,"fork":false,"pushed_at":"2021-05-10T01:09:03.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T02:30:33.959Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/valinet.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":"2021-05-10T00:32:10.000Z","updated_at":"2021-05-10T01:09:06.000Z","dependencies_parsed_at":"2023-03-12T15:16:31.438Z","dependency_job_id":null,"html_url":"https://github.com/valinet/D2DAnalogClockC","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/valinet/D2DAnalogClockC","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valinet%2FD2DAnalogClockC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valinet%2FD2DAnalogClockC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valinet%2FD2DAnalogClockC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valinet%2FD2DAnalogClockC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/valinet","download_url":"https://codeload.github.com/valinet/D2DAnalogClockC/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valinet%2FD2DAnalogClockC/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34039495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-07T02:00:07.652Z","response_time":124,"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":[],"created_at":"2024-11-11T01:16:39.726Z","updated_at":"2026-06-07T21:31:17.569Z","avatar_url":"https://github.com/valinet.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# D2DAnalogClockC\nExample of an analog clock drawn using Direct2D based on the sample code but drawn using ID2D1DeviceContext and written in pure C.\n\nBased on example from [Get Started with Win32 and C++](https://docs.microsoft.com/en-us/windows/win32/learnwin32/your-first-direct2d-program), and enhanced for [Direct2D 1.1](https://docs.microsoft.com/en-us/archive/msdn-magazine/2013/may/windows-with-c-introducing-direct2d-1-1). You need to place the files \"d2d1.h\" and \"d2d1_1.h\" from [Windows 10 SDK 10586](https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/) or earlier to the project folder, as Microsoft removed the C-style definitions for Direct2D from the latest SDK. Also, note that even some of the definitions in those headers are bugged, as explained [here](https://github.com/fanc999/d2d-sample-mostly-c), namely some functions have their prototypes changed, one such example being `ID2D1DeviceContext_GetSize`.\n\nI structured the code so that it is hopefully easy to read, understand and extend, implemented in a COM/OOP-like pattern in order better understand how things work in the backend of C++, for example.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalinet%2Fd2danalogclockc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalinet%2Fd2danalogclockc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalinet%2Fd2danalogclockc/lists"}