runtime

package
v0.0.0-...-4c1a193 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHook

func RegisterHook(fn LuaLoadHook)

RegisterHook will add a lua state load hook

func RegisterModule

func RegisterModule(name string, funcs LuaFuncs, metatables LuaMetaTable)

RegisterModule registers a lua module within the global namespace for easy access

func Run

func Run(entrypoint string) error

Run starts the lua program

Types

type LuaFuncs

type LuaFuncs map[string]lua.LGFunction

LuaFuncs is the declarations of functions within a module

type LuaLoadHook

type LuaLoadHook func(*lua.LState, *glfw.Window)

LuaLoadHook is a function that will be called before the gameloop starts with the state. This is good for fetching global callbacks to call later.

type LuaMetaTable

type LuaMetaTable map[string]LuaFuncs

LuaMetaTable is the declarations of metatables within a module

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL