Versions in this module Expand all Collapse all v0 v0.0.2 May 26, 2024 v0.0.1 May 26, 2024 Changes in this version + func Run(run func()) + type Canvas struct + func NewCanvas(bounds pixel.Rect) *Canvas + func (c *Canvas) Bounds() pixel.Rect + func (c *Canvas) Clear(color color.Color) + func (c *Canvas) Color(at pixel.Vec) pixel.RGBA + func (c *Canvas) Draw(t pixel.Target, matrix pixel.Matrix) + func (c *Canvas) DrawColorMask(t pixel.Target, matrix pixel.Matrix, mask color.Color) + func (c *Canvas) Frame() *glhf.Frame + func (c *Canvas) MakePicture(p pixel.Picture) pixel.TargetPicture + func (c *Canvas) MakeTriangles(t pixel.Triangles) pixel.TargetTriangles + func (c *Canvas) Pixels() []uint8 + func (c *Canvas) SetBounds(bounds pixel.Rect) + func (c *Canvas) SetColorMask(col color.Color) + func (c *Canvas) SetComposeMethod(cmp pixel.ComposeMethod) + func (c *Canvas) SetFragmentShader(src string) + func (c *Canvas) SetMatrix(m pixel.Matrix) + func (c *Canvas) SetPixels(pixels []uint8) + func (c *Canvas) SetSmooth(smooth bool) + func (c *Canvas) SetUniform(name string, value interface{}) + func (c *Canvas) Smooth() bool + func (c *Canvas) Texture() *glhf.Texture + type GLFrame struct + func NewGLFrame(bounds pixel.Rect) *GLFrame + func (gf *GLFrame) Bounds() pixel.Rect + func (gf *GLFrame) Color(at pixel.Vec) pixel.RGBA + func (gf *GLFrame) Dirty() + func (gf *GLFrame) Frame() *glhf.Frame + func (gf *GLFrame) SetBounds(bounds pixel.Rect) + func (gf *GLFrame) Texture() *glhf.Texture + type GLPicture interface + Texture func() *glhf.Texture + func NewGLPicture(p pixel.Picture) GLPicture + type GLShader struct + func NewGLShader(fragmentShader string) *GLShader + func (gs *GLShader) SetUniform(name string, value interface{}) + func (gs *GLShader) Update() + type GLTriangles struct + func NewGLTriangles(shader *GLShader, t pixel.Triangles) *GLTriangles + func (gt *GLTriangles) ClipRect(i int) (rect pixel.Rect, is bool) + func (gt *GLTriangles) Color(i int) pixel.RGBA + func (gt *GLTriangles) Copy() pixel.Triangles + func (gt *GLTriangles) CopyVertices() + func (gt *GLTriangles) Len() int + func (gt *GLTriangles) Picture(i int) (pic pixel.Vec, intensity float64) + func (gt *GLTriangles) Position(i int) pixel.Vec + func (gt *GLTriangles) SetClipRect(i int, rect pixel.Rect) + func (gt *GLTriangles) SetColor(i int, c pixel.RGBA) + func (gt *GLTriangles) SetLen(length int) + func (gt *GLTriangles) SetPicture(i int, pic pixel.Vec, intensity float64) + func (gt *GLTriangles) SetPosition(i int, p pixel.Vec) + func (gt *GLTriangles) Shader() *GLShader + func (gt *GLTriangles) Slice(i, j int) pixel.Triangles + func (gt *GLTriangles) Update(t pixel.Triangles) + func (gt *GLTriangles) VertexSlice() *glhf.VertexSlice + type Monitor struct + func Monitors() []*Monitor + func PrimaryMonitor() *Monitor + func (m *Monitor) BitDepth() (red, green, blue int) + func (m *Monitor) Name() string + func (m *Monitor) PhysicalSize() (width, height float64) + func (m *Monitor) Position() (x, y float64) + func (m *Monitor) RefreshRate() (rate float64) + func (m *Monitor) Size() (width, height float64) + func (m *Monitor) VideoModes() (vmodes []VideoMode) + type VideoMode struct + Height int + RefreshRate int + Width int + type Window struct + func NewWindow(cfg WindowConfig) (*Window, error) + func (w *Window) Bounds() pixel.Rect + func (w *Window) Canvas() *Canvas + func (w *Window) Clear(c color.Color) + func (w *Window) Clipboard() string + func (w *Window) ClipboardText() string + func (w *Window) Closed() bool + func (w *Window) Color(at pixel.Vec) pixel.RGBA + func (w *Window) CursorVisible() bool + func (w *Window) Destroy() + func (w *Window) Focus() + func (w *Window) Focused() bool + func (w *Window) GetPos() pixel.Vec + func (w *Window) Hide() + func (w *Window) JoystickAxis(js pixel.Joystick, axis pixel.GamepadAxis) float64 + func (w *Window) JoystickAxisCount(js pixel.Joystick) int + func (w *Window) JoystickButtonCount(js pixel.Joystick) int + func (w *Window) JoystickJustPressed(js pixel.Joystick, button pixel.GamepadButton) bool + func (w *Window) JoystickJustReleased(js pixel.Joystick, button pixel.GamepadButton) bool + func (w *Window) JoystickName(js pixel.Joystick) string + func (w *Window) JoystickPresent(js pixel.Joystick) bool + func (w *Window) JoystickPressed(js pixel.Joystick, button pixel.GamepadButton) bool + func (w *Window) JustPressed(button pixel.Button) bool + func (w *Window) JustReleased(button pixel.Button) bool + func (w *Window) MakePicture(p pixel.Picture) pixel.TargetPicture + func (w *Window) MakeTriangles(t pixel.Triangles) pixel.TargetTriangles + func (w *Window) Monitor() *Monitor + func (w *Window) MouseInsideWindow() bool + func (w *Window) MousePosition() pixel.Vec + func (w *Window) MousePreviousPosition() pixel.Vec + func (w *Window) MousePreviousScroll() pixel.Vec + func (w *Window) MouseScroll() pixel.Vec + func (w *Window) Pressed(button pixel.Button) bool + func (w *Window) Repeated(button pixel.Button) bool + func (w *Window) SetBounds(bounds pixel.Rect) + func (w *Window) SetClipboard(str string) + func (w *Window) SetClipboardText(text string) + func (w *Window) SetClosed(closed bool) + func (w *Window) SetColorMask(c color.Color) + func (w *Window) SetComposeMethod(cmp pixel.ComposeMethod) + func (w *Window) SetCursorDisabled() + func (w *Window) SetCursorVisible(visible bool) + func (w *Window) SetMatrix(m pixel.Matrix) + func (w *Window) SetMonitor(monitor *Monitor) + func (w *Window) SetMousePosition(v pixel.Vec) + func (w *Window) SetPos(pos pixel.Vec) + func (w *Window) SetSmooth(smooth bool) + func (w *Window) SetTitle(title string) + func (w *Window) SetVSync(vsync bool) + func (w *Window) Show() + func (w *Window) Smooth() bool + func (w *Window) SwapBuffers() + func (w *Window) Typed() string + func (w *Window) Update() + func (w *Window) UpdateInput() + func (w *Window) UpdateInputWait(timeout time.Duration) + func (w *Window) VSync() bool + type WindowConfig struct + AlwaysOnTop bool + Bounds pixel.Rect + Icon []pixel.Picture + Invisible bool + Maximized bool + Monitor *Monitor + NoIconify bool + Position pixel.Vec + Resizable bool + SamplesMSAA int + Title string + TransparentFramebuffer bool + Undecorated bool + VSync bool