This repository currently implements the ddraw compatibility layer only.
The project exposes two DirectDraw targets:
dxlib::ddraw: static link target for regular CMake integration.ddraw(aliasdxlib::ddraw_shim): shared shim target for drop-in deployment.
Example build:
cmake -S . -B build
cmake --build build-
Shim deployment (Windows-style): Place the built shared library next to your game/application executable (for example
ddraw.dllon Windows). -
Regular CMake linking: Link against
dxlib::ddrawfrom your own CMake project, which is especially useful on Linux.
- On non-Windows platforms,
HWNDis treated as anSDL_Window*handle. - On Windows,
SetCooperativeLevelusesSDL_CreateWindowWithPropertiesto create an SDL window from the provided nativeHWND.