opengl

package
v0.0.0-...-63dc931 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Log = log.New("gl")
)

Functions

This section is empty.

Types

type Surface

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

func (*Surface) Destroy

func (s *Surface) Destroy()

func (*Surface) Draw

func (s *Surface) Draw(vp image.Rectangle)

func (*Surface) Size

func (s *Surface) Size() image.Point

func (*Surface) Update

func (s *Surface) Update(img *noximage.Image16)

type Window

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

func (*Window) Clear

func (win *Window) Clear()

func (*Window) Close

func (win *Window) Close()

func (*Window) Init

func (win *Window) Init() error

Init the OpenGL. Window context must be set as current by the caller.

func (*Window) NewSurface

func (win *Window) NewSurface(sz image.Point, filter bool) seat.Surface

func (*Window) SetGamma

func (win *Window) SetGamma(v float32)

SetGamma sets screen gamma parameter.

Jump to

Keyboard shortcuts

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