mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-13 19:42:29 +00:00
feat(gx): add initial d3d backend
This commit is contained in:
parent
1ab29701af
commit
2010aa8e4e
6 changed files with 226 additions and 3 deletions
|
|
@ -6,6 +6,11 @@ file(GLOB GX_SOURCES
|
|||
"texture/*.cpp"
|
||||
)
|
||||
|
||||
if(WHOA_SYSTEM_WIN)
|
||||
file(GLOB D3D_SOURCES "d3d/*.cpp")
|
||||
list(APPEND GX_SOURCES ${D3D_SOURCES})
|
||||
endif()
|
||||
|
||||
if(WHOA_SYSTEM_MAC)
|
||||
file(GLOB GLL_SOURCES "gll/*.cpp" "gll/*.mm")
|
||||
set_source_files_properties(${GLL_SOURCES}
|
||||
|
|
@ -35,6 +40,13 @@ target_link_libraries(gx
|
|||
tempest
|
||||
)
|
||||
|
||||
if(WHOA_SYSTEM_WIN)
|
||||
target_link_libraries(gx
|
||||
PRIVATE
|
||||
d3d9.lib
|
||||
)
|
||||
endif()
|
||||
|
||||
if(WHOA_SYSTEM_MAC)
|
||||
target_link_libraries(gx
|
||||
PRIVATE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue