{"id":18837438,"url":"https://github.com/lightnet/cmakewin32directx11","last_synced_at":"2025-06-27T08:35:09.763Z","repository":{"id":142372786,"uuid":"358965345","full_name":"Lightnet/cmakewin32directx11","owner":"Lightnet","description":"simple build with win32 directx 11, imgui 1.8 and cmake builds.","archived":false,"fork":false,"pushed_at":"2021-04-17T20:42:32.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-29T19:42:28.955Z","etag":null,"topics":["cmake","cpp","directx11","imgui","win32","window10"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lightnet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-04-17T19:29:48.000Z","updated_at":"2021-04-17T20:42:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"464b188c-03a1-41d7-992c-b36e2f9dff79","html_url":"https://github.com/Lightnet/cmakewin32directx11","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Lightnet/cmakewin32directx11","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightnet%2Fcmakewin32directx11","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightnet%2Fcmakewin32directx11/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightnet%2Fcmakewin32directx11/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightnet%2Fcmakewin32directx11/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lightnet","download_url":"https://codeload.github.com/Lightnet/cmakewin32directx11/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lightnet%2Fcmakewin32directx11/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260452734,"owners_count":23011540,"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":["cmake","cpp","directx11","imgui","win32","window10"],"created_at":"2024-11-08T02:35:11.857Z","updated_at":"2025-06-17T22:38:30.716Z","avatar_url":"https://github.com/Lightnet.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cmakewin32directx11\n\n# License: MIT\n\n# Created by: Lightnet\n\n# Packages:\n * imgui 1.82\n * Directx SDK June 2010 (optional)\n * cmake 3.20\n * Visual Studio 2019 (compiler tool builder needed)\n    * c/c++\n    * cmake\n    * directx sdk\n\n\n# Window Bit: 32\n\n# Information:\n  Note this is run on win32 bit. To build directx 11 to used imgui to display user interface. There are two chose that is Directx version. One is the Directx SDK June 2010 and the other is Visual Studio 2019 with directx sdk.\n\n# build:\n * install cmake\n * install visual studio 2019\n    * c/c++\n    * directx sdk\n    * cmake\n```cmake\nset(ENABLE_DXSDK OFF) # Directx SDK june 2010\nset(ENABLE_WINDXSDK ON) # Windows Kits 10\nset(WINDOWKIT_VERSION 10) # folder\nset(WINDOWKIT_VERSION_UPDATE 10.0.19041.0) #sub folders\nset(WINDOW_BIT x86) # arm, arm64, x64, x86\n# x86 = win 32 bit\n# x64 = win 64 bit\n```\n  Those are basic settings in CMakeLists.txt\n\n  The example is from https://github.com/ocornut/imgui/tree/master/examples/example_win32_directx11\n```bat\n:: Create a build directory\nmkdir build \ncd build\n:: cmake config CMakeLists.txt\ncmake .. -A Win32\n:: build binary app\ncmake --build . \n```\n\n# Notes:\n * cmake config is must in win 32 bit else it will error in the builds.\n\n```cmake\nADD_DEFINITIONS(-DUNICODE)\nADD_DEFINITIONS(-D_UNICODE)\n\nset(CMAKE_EXE_LINKER_FLAGS \"${CMAKE_EXE_LINKER_FLAGS} /SUBSYSTEM:CONSOLE\")\n\nadd_executable(${PROJECT_NAME} \n  WIN32 # window 32 bit\n  win32_directx11.cpp\n)\n\ntarget_link_libraries(${PROJECT_NAME} \n  d3d11\n  #d3dx11\n  #dxguid\n)\n```\n# Links:\n * https://github.com/ocornut/imgui\n\n# Credits:\n * https://stackoverflow.com/questions/22011610/how-do-i-set-unicode-as-character-set-in-the-all-build-and-zero-check-visual-stu\n * https://stackoverflow.com/questions/13977388/error-cannot-convert-const-wchar-t-13-to-lpcstr-aka-const-char-in-assi\n * https://stackoverflow.com/questions/33400777/error-lnk2019-unresolved-external-symbol-main-referenced-in-function-int-cde/50389913\n * https://github.com/ocornut/imgui\n * https://cmake.org/cmake/help/git-stage/variable/CMAKE_SYSTEM_PREFIX_PATH.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightnet%2Fcmakewin32directx11","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightnet%2Fcmakewin32directx11","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightnet%2Fcmakewin32directx11/lists"}