opengl

package
v1.23.11 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Zlib Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Handle *C.struct_samure_backend_opengl
}

func (*Backend) AssociateLayerSurface

func (gl *Backend) AssociateLayerSurface(ctx samure.Context, layerSurface samure.LayerSurface) uint64

func (Backend) Context added in v0.1.4

func (gl Backend) Context() unsafe.Pointer

func (*Backend) Destroy

func (gl *Backend) Destroy(ctx samure.Context)

func (Backend) Display added in v0.1.4

func (gl Backend) Display() unsafe.Pointer

func (*Backend) Init

func (gl *Backend) Init(ctx samure.Context) error

func (Backend) InitBindings

func (gl Backend) InitBindings(ctx samure.Context, initFunc func() error) error

func (Backend) MakeContextCurrent

func (gl Backend) MakeContextCurrent()

func (*Backend) OnLayerSurfaceConfigure

func (gl *Backend) OnLayerSurfaceConfigure(ctx samure.Context, layerSurface samure.LayerSurface, width, height int)

func (*Backend) RenderEnd

func (gl *Backend) RenderEnd(ctx samure.Context, layerSurface samure.LayerSurface)

func (*Backend) RenderStart

func (gl *Backend) RenderStart(ctx samure.Context, layerSurface samure.LayerSurface)

func (*Backend) UnassociateLayerSurface

func (gl *Backend) UnassociateLayerSurface(ctx samure.Context, layerSurface samure.LayerSurface)

Jump to

Keyboard shortcuts

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