Skip to content

Odin bindings Steamworks API. Steamworks is a free suite of tools available to any developer to use in their game or software on Steam.

License

Notifications You must be signed in to change notification settings

jakubtomsu/odin-steamworks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Odin Steamworks

Odin bindings for Valve's Steamworks API. Includes a binding generator.

The Steamworks API allows your game to take full advantage of Steam by accessing all of the underlying systems provided through the API. This includes things such as pausing your game when the user opens the Steam Overlay, inviting friends to play, allowing players to unlock Steam Achievements, letting players compete on the Steam Leaderboards and much more.

the Steamworks API also includes the Steam GameNetworkingSockets

Current Steamworks SDK version: 1.60

Latest tested Odin version: dev-2024-09:c6b551d2c

How to Use

  1. Copy the steamworks folder into your project
  2. Copy steam_api64.dll (not the steam_api.dll!) next to your exe
  3. Create a steam_appid.txt with your steam app ID. Use 480 for testing purposes

Take a look at the example to see the API usage.

Example

  • copy steam_api64.dll to the example folder (Windows)
  • cd example
  • odin run .

About the generator

Initially a custom generator was used to create the bindings, which was removed in commit ddd0f5a. It used the steamworks_api.json to generate a single source file.

Note: The naming is slightly different than in the C/C++ API. For instance, things aren't prefixed with Steam, m_, k_, etc. Also _t suffixes for structs aren't used.

Contributing

Contributions are welcome, especially bugfixes! Please submit a pull request here on Github.

About

Odin bindings Steamworks API. Steamworks is a free suite of tools available to any developer to use in their game or software on Steam.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages