Kemena3D
Loading...
Searching...
No Matches
kscriptbindings.h File Reference

Registers the engine's host API with an AngelScript engine. More...

#include "kexport.h"
#include "kscriptmanager.h"
Include dependency graph for kscriptbindings.h:

Go to the source code of this file.

Namespaces

namespace  kemena
 Top-level Kemena3D engine namespace.

Functions

KEMENA3D_API void kemena::registerScriptBindings (kScriptManager *manager)
 Registers all host types and functions on manager's engine.

Detailed Description

Registers the engine's host API with an AngelScript engine.

The binding layer exposes a minimal but useful surface to scripts:

  • kVec3 — 3-component float vector value type.
  • kObject — scene node handle (transform, name, hierarchy).
  • getSelf() — returns the kObject the running script is attached to.
  • getDeltaTime() — frame delta time in seconds.
  • getFixedDeltaTime() — fixed-step delta time in seconds.
  • print() / log() — console logging.