Documentation ¶
Index ¶
- func CallLuaFunction(L *lua.LState, funcName string) error
- func ClearScreen()
- func DrawBackground(r, g, b byte)
- func GLSetColor(c color.RGBA)
- func GetLuaGlobalString(L *lua.LState, variableName string) (string, error)
- func GetPaletteColor(colorIndex byte) (byte, byte, byte)
- func GetPixel(x, y int) byte
- func InitAudio() error
- func InitGL(window *glfw.Window) error
- func PlaySound(frequency float32, duration int) error
- func PutPixel(x, y int, colorIndex byte)
- func Run(luaCode string) error
- func RunFile(luaFilename string) error
- func SetPaletteColor(colorIndex, r, g, b byte)
- func UpdateScreen(window *glfw.Window)
- type PixelSlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallLuaFunction ¶
CallLuaFunction calls a Lua function by name.
func DrawBackground ¶
func DrawBackground(r, g, b byte)
DrawBackground sets the entire background to a specified color
func GetLuaGlobalString ¶
GetLuaGlobalString fetches the value of a global Lua variable as a string.
func GetPaletteColor ¶
GetPaletteColor retrieves the r,g,b colors of a given palette index.
func SetPaletteColor ¶
func SetPaletteColor(colorIndex, r, g, b byte)
SetPaletteColor sets a color in the palette.
func UpdateScreen ¶
UpdateScreen swaps the buffers and displays the rendered frame.
Types ¶
type PixelSlice ¶
type PixelSlice [width * height]byte
Click to show internal directories.
Click to hide internal directories.