Raylib on hashlink
This is for a hashlink-extension sample.
Raylib-api is only for running the sample.
In windows-os.
- Edit path: Match your visual studio version.
- Run
start-vscode-from-vcvars64.bat
- Run setup task: vscode menu -
Terminal
-Run Task...
-C/C++: Setup raylib source
- Build and run: vscode menu -
Terminal
-Run Build Task...
or Ctrl+Shift+B
or
- Download raylib source, and put it in
hashlink-extension/lib
- Build and run: vscode menu -
Terminal
-Run Build Task...
or Ctrl+Shift+B - Function(identifier) names collide and error occurs.
Rename the collided functions in the raylib source files(hashlink-extension/lib/raylib/src
) toRaylib****
.
Unfortunately, raylib doesn't have a prefix: raysan5/raylib#2057 (comment) - Repeat 4.~5.