Versions in this module Expand all Collapse all v1 v1.0.5 Dec 4, 2024 Changes in this version + var ImageArray []uint32 + type AudioPlayer struct + Done chan bool + File *os.File + Format beep.Format + Streamer beep.StreamSeekCloser + func OpenAudioFile(filePath string) *AudioPlayer + func (a *AudioPlayer) Close() + func (a *AudioPlayer) Start() + func (a *AudioPlayer) Stop() + type Image struct + Height float32 + Texture uint32 + Width float32 + X float32 + Y float32 + func (img *Image) Draw() + type Line struct + Color [4]int + Renderer *Renderer2D + X1 float32 + X2 float32 + Y1 float32 + Y2 float32 + func (l *Line) Draw() + type Rect struct + Color [4]int + Height float32 + Renderer *Renderer2D + Width float32 + X float32 + Y float32 + func (r *Rect) Draw() + type Renderer2D struct + Window *Window + func (r *Renderer2D) ClearColor(color [4]int) + func (r *Renderer2D) DrawLine(x1, x2, y1, y2 float32, color [4]int) + func (r *Renderer2D) DrawRect(x, y, width, height float32, color [4]int) + func (r *Renderer2D) LoadImage(imagePath string, x, y, width, height float32) *Image + func (r *Renderer2D) NewLine(x1, y1, x2, y2 float32, color [4]int) *Line + func (r *Renderer2D) NewRect(x, y, width, height float32, color [4]int) *Rect + type Vector2D struct + X float64 + Y float64 + func AddVector2D(v1, v2 Vector2D) *Vector2D + func NewVector2D(x, y float64) *Vector2D + func SubtractVector2D(v1, v2 Vector2D) *Vector2D + type Vector3D struct + X float64 + Y float64 + Z float64 + func AddVector3D(v1, v2 Vector3D) *Vector3D + func NewVector3D(x, y, z float64) *Vector3D + func SubtractVector3D(v1, v2 Vector3D) *Vector3D + type Window struct + Height int + Title string + Width int + Window *glfw.Window + func NewWindow(title string, width, height int, resizable bool) *Window + func (w *Window) Close() bool + func (w *Window) Destroy() + func (w *Window) NewRenderer2D() *Renderer2D + func (w *Window) Refresh() + func (w *Window) SetContextCurrent() + func (w *Window) SetResizable(resizable bool)