Crate dmsdk

Source
Expand description

§dmsdk

Rust-friendly wrappers for interacting with the Defold extension SDK.

Modules§

dmconfigfile
Configuration file access functions. The configuration file is the compiled version of game.project.
dmengine
Functions for interacting with the engine.
dmextension
Functions for creating and controlling engine native extension libraries.
dmgameobject
Functions for manipulating game objects.
dmhid
Structs for interacting with input devices.
dmlog
Logging macros.
dmresource
Custom resource registering module.
dmscript
Defold-specific Lua helpers.
dmtime
Time functions.
dmvmath
Vector math helpers.
dmwebserver
Web server module.
ffi
Raw bindings generated by rust-bindgen. Only use this if you know what you’re doing!
lua
Wrappers for the Lua C API.

Macros§

__internal_debug
Logs a message with severity Severity::Debug.
__internal_error
Logs a message with severity Severity::Error.
__internal_fatal
Logs a message with severity Severity::Fatal.
__internal_info
Logs a message with severity Severity::Info.
__internal_lua_error
Raises an error with the given message.
__internal_push_fstring
Pushes a formatted string onto the stack.
__internal_user_debug
Logs a message with severity Severity::UserDebug.
__internal_warning
Logs a message with severity Severity::Warning.
declare_configfile_extension
Equivalent to DM_DECLARE_CONFIGFILE_EXTENSION in regular C++ extensions.
declare_extension
Equivalent to DM_DECLARE_EXTENSION in regular C++ extensions.
declare_functions
Creates a new constant Reg with the name provided, to be used with register().
register_resource_type

Functions§

hash32
Returns a 32-bit hash of the given string slice.
hash64
Returns a 64-bit hash of the given string slice.