Skip to content

Commit

Permalink
(feat): Add GLFW backend
Browse files Browse the repository at this point in the history
  • Loading branch information
hyblocker committed Oct 29, 2024
1 parent d9a7ca3 commit 8a5e50f
Show file tree
Hide file tree
Showing 3 changed files with 441 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Backends/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,17 @@ if(UNIX)
target_link_libraries(rmlui_backend_GLFW_GL3 INTERFACE ${CMAKE_DL_LIBS})
endif()

add_library(rmlui_backend_GLFW_DX11 INTERFACE)
target_sources(rmlui_backend_GLFW_DX11 INTERFACE
"${CMAKE_CURRENT_LIST_DIR}/RmlUi_Platform_GLFW.cpp"
"${CMAKE_CURRENT_LIST_DIR}/RmlUi_Renderer_DX11.cpp"
"${CMAKE_CURRENT_LIST_DIR}/RmlUi_Backend_GLFW_DX11.cpp"
"${CMAKE_CURRENT_LIST_DIR}/RmlUi_Platform_GLFW.h"
"${CMAKE_CURRENT_LIST_DIR}/RmlUi_Renderer_DX11.h"
"${CMAKE_CURRENT_LIST_DIR}/RmlUi_Include_Windows.h"
)
target_link_libraries(rmlui_backend_GLFW_DX11 INTERFACE rmlui_backend_common_headers d3d11.lib dxgi.lib d3dcompiler.lib glfw)

add_library(rmlui_backend_GLFW_VK INTERFACE)
target_sources(rmlui_backend_GLFW_VK INTERFACE
"${CMAKE_CURRENT_LIST_DIR}/RmlUi_Platform_GLFW.cpp"
Expand Down
Loading

0 comments on commit 8a5e50f

Please sign in to comment.