Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.52 KB

README.md

File metadata and controls

30 lines (24 loc) · 1.52 KB

raylib-hl-sample

Raylib on hashlink
This is for a hashlink-extension sample.
Raylib-api is only for running the sample.

2022-03-09_23-13-40

How to try

In windows-os.

  1. Edit path: Match your visual studio version.
  2. Run start-vscode-from-vcvars64.bat

Auto setup

  1. Run setup task: vscode menu - Terminal - Run Task... - C/C++: Setup raylib source
  2. Build and run: vscode menu - Terminal - Run Build Task... or Ctrl+Shift+B

or

Manual setup

  1. Download raylib source, and put it in hashlink-extension/lib
  2. Build and run: vscode menu - Terminal - Run Build Task... or Ctrl+Shift+B
  3. Function(identifier) names collide and error occurs.
    Rename the collided functions in the raylib source files(hashlink-extension/lib/raylib/src) to Raylib****.
    Unfortunately, raylib doesn't have a prefix: raysan5/raylib#2057 (comment)
  4. Repeat 4.~5.

Thanks

HashLink-native-extension-tutorial