|
@@ -66,6 +66,26 @@
|
|
|
|
|
|
SOKOL_DEBUG - by default this is defined if _DEBUG is defined
|
|
|
|
|
|
+ Link with the following system libraries (note that sokol_app.h has
|
|
|
+ additional linker requirements):
|
|
|
+
|
|
|
+ - on macOS/iOS with Metal: Metal
|
|
|
+ - on macOS with GL: OpenGL
|
|
|
+ - on iOS with GL: OpenGLES
|
|
|
+ - on Linux with EGL: GL or GLESv2
|
|
|
+ - on Linux with GLX: GL
|
|
|
+ - on Android: GLESv3, log, android
|
|
|
+ - on Windows with the MSVC or Clang toolchains: no action needed, libs are defined in-source via pragma-comment-lib
|
|
|
+ - on Windows with MINGW/MSYS2 gcc: compile with '-mwin32' so that _WIN32 is defined
|
|
|
+ - with the D3D11 backend: -ld3d11
|
|
|
+
|
|
|
+ On macOS and iOS, the implementation must be compiled as Objective-C.
|
|
|
+
|
|
|
+ On Emscripten:
|
|
|
+ - for WebGL2: add the linker option `-s USE_WEBGL2=1`
|
|
|
+ - for WebGPU: compile and link with `--use-port=emdawnwebgpu`
|
|
|
+ (for more exotic situations, read: https://dawn.googlesource.com/dawn/+/refs/heads/main/src/emdawnwebgpu/pkg/README.md)
|
|
|
+
|
|
|
sokol_gfx DOES NOT:
|
|
|
===================
|
|
|
- create a window, swapchain or the 3D-API context/device, you must do this
|