darwin

package
v0.0.0-...-b767601 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT, Unlicense Imports: 25 Imported by: 0

Documentation

Rendered for darwin/amd64

Index

Constants

View Source
const (
	NSOpenGLPFADoubleBuffer          = 5
	NSOpenGLPFAAuxBuffers            = 7
	NSOpenGLPFAColorSize             = 8
	NSOpenGLPFAAlphaSize             = 11
	NSOpenGLPFADepthSize             = 12
	NSOpenGLPFAStencilSize           = 13
	NSOpenGLPFAAccumSize             = 14
	NSOpenGLPFASampleBuffers         = 55
	NSOpenGLPFASamples               = 56
	NSOpenGLPFAAccelerated           = 73
	NSOpenGLPFAClosestPolicy         = 74
	NSOpenGLPFAAllowOfflineRenderers = 96
	NSOpenGLPFAOpenGLProfile         = 99

	NSOpenGLProfileVersion4_1Core = 0x4100
	NSOpenGLProfileVersion3_2Core = 0x3200
)

Variables

This section is empty.

Functions

func EnablePollEvents

func EnablePollEvents()

func GetTimerFrequency

func GetTimerFrequency() uint64

func GetTimerValue

func GetTimerValue() uint64

func InitDarwin

func InitDarwin()

func IsEnablePollEvents

func IsEnablePollEvents() bool

func PollEvents

func PollEvents()

Types

type NSOpenGLPixelFormatAttribute

type NSOpenGLPixelFormatAttribute uint32

type ViewEvent

type ViewEvent struct {
	// View is a CFTypeRef for the NSView for the window.
	View uintptr
	// Layer is a CFTypeRef of the CALayer of View.
	Layer uintptr
}

ViewEvent notified the client of changes to the window AppKit handles. The handles are retained until another ViewEvent is sent.

func (ViewEvent) ImplementsEvent

func (ViewEvent) ImplementsEvent()

func (ViewEvent) ImplementsViewEvent

func (ViewEvent) ImplementsViewEvent()

Jump to

Keyboard shortcuts

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