Gl Package - /nelsam/gxui/drivers/gl - Go Packages

Go.
  • Why Go Why Go
    • Case Studies
    • Use Cases
    • Security
  • Learn
  • Docs Docs
    • Effective Go
    • Go User Manual
    • Standard library
    • Release Notes
  • Packages
  • Community Community
    • Recorded Talks
    • Meetups
    • Conferences
    • Go blog
    • Go project
    • Get connected

Details

  • unchecked Valid go.mod file

    The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.

  • checked Redistributable license

    Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.

  • checked Tagged version

    Modules with tagged versions give importers more predictable builds.

  • unchecked Stable version

    When a project reaches major version v1 it is considered stable.

  • Learn more about best practices

Repository

github.com/nelsam/gxui

Links

  • Open Source Insights Logo Open Source Insights
Jump to ...
  • Documentation
    • Overview
    • Index
    • Constants
    • Variables
    • Functions
      • StartDriver(appRoutine, opts)
    • Types
      • type CallQueue
        • NewCallQueue()
        • (c) Close()
        • (c) Inject(call)
        • (c) Pop()
        • (c) PopWhenReady()
      • type Opt
        • Debug()
      • type OptFunc
        • (f) Apply(d)
  • Source Files
  • Directories
Documentation

Documentation ¶

Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm

Overview ¶

Package gl contains an OpenGL implementation of the gxui.Driver interface.

Index ¶

  • func StartDriver(appRoutine func(driver gxui.Driver), opts ...Opt)
  • type CallQueue
    • func NewCallQueue() *CallQueue
    • func (c *CallQueue) Close()
    • func (c *CallQueue) Inject(call func())
    • func (c *CallQueue) Pop() (func(), bool)
    • func (c *CallQueue) PopWhenReady() (func(), bool)
  • type Opt
    • func Debug() Opt
  • type OptFunc
    • func (f OptFunc) Apply(d gxui.Driver) gxui.Driver

Constants ¶

This section is empty.

Variables ¶

This section is empty.

Functions ¶

func StartDriver ¶

func StartDriver(appRoutine func(driver gxui.Driver), opts ...Opt)

StartDriver starts the gl driver with the given appRoutine.

Types ¶

type CallQueue ¶

type CallQueue struct { // contains filtered or unexported fields }

func NewCallQueue ¶

func NewCallQueue() *CallQueue

func (*CallQueue) Close ¶

func (c *CallQueue) Close()

func (*CallQueue) Inject ¶

func (c *CallQueue) Inject(call func())

func (*CallQueue) Pop ¶

func (c *CallQueue) Pop() (func(), bool)

func (*CallQueue) PopWhenReady ¶

func (c *CallQueue) PopWhenReady() (func(), bool)

type Opt ¶

type Opt interface { Apply(gxui.Driver) gxui.Driver }

An Opt is a type which modifies the Driver, usually during setup.

func Debug ¶

func Debug() Opt

Debug is an Opt that sets d to debug mode (so that d.Debug() == true).

type OptFunc ¶

type OptFunc func(gxui.Driver) gxui.Driver

An OptFunc is an Opt that doesn't carry any state.

func (OptFunc) Apply ¶

func (f OptFunc) Apply(d gxui.Driver) gxui.Driver

Apply implements Opt.

Source Files ¶

View all Source files
  • blitter.go
  • call_queue.go
  • canvas.go
  • check_error.go
  • context.go
  • debug.go
  • draw_mode.go
  • driver.go
  • font.go
  • glyph_page.go
  • glyph_table.go
  • index_buffer.go
  • keyboard_translate.go
  • mouse_translate.go
  • polygon.go
  • primitive_type.go
  • refcounted.go
  • resolution.go
  • shader_attribute.go
  • shader_data_type.go
  • shader_program.go
  • shader_uniform.go
  • shape.go
  • stats.go
  • texture.go
  • triangulate.go
  • vertex_buffer.go
  • vertex_stream.go
  • viewport.go

Directories ¶

Show internal Expand all
Path Synopsis
platform
Click to show internal directories. Click to hide internal directories.

Jump to

Close

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
Close go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic. Learn more. Okay