Skip to content

GameMaker Native Bridge

The Native Bridge is the local bridge library built specifically for GameMaker on Windows 10 and later.

  • IGP.GamemakerDesktopBridge.Native.dll - owns the actual desktop connection, event queue, results, and state
  • GameMaker runtime scripts - wrap the DLL C API into GameMaker function calls

Inside a GameMaker project:

  1. Add IGP.GamemakerDesktopBridge.Native.dll as an Included File
  2. Import the GML runtime script shipped by the adapter (see the windows-auth-achievements sample project)
  3. Call initialize / update / poll_event on a steady rhythm from an object such as obj_controller
FunctionPurpose
igp_gms2_bridge_initializeInitialize the bridge
igp_gms2_bridge_updatePer-frame driver, usually in Step
igp_gms2_bridge_poll_eventRead the next event from the queue
igp_gms2_bridge_request_game_authorizationTrigger game authorization
igp_gms2_bridge_get_desktop_capabilitiesQuery desktop capabilities
igp_gms2_bridge_unlock_achievementUnlock an achievement
igp_gms2_bridge_report_achievement_progressReport achievement progress
igp_gms2_bridge_get_state_snapshotRead the current state snapshot
igp_gms2_bridge_shutdownShut down the bridge

If game authorization or capability queries need to be extended later, continue adding exports at the Native Bridge layer.