gbm

package
v3.0.33 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Overview

GBM (Generic Buffer Manager) bindings for Go

On Debian, use:

bash# apt install libgbm-dev

Then when you depend on this code, use -tags grm when running go build test and install

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GBMBufferFlags

type GBMBufferFlags C.enum_gbm_bo_flags
const (
	// Buffer is going to be presented to the screen using an API such as KMS
	GBM_BO_USE_SCANOUT GBMBufferFlags = C.GBM_BO_USE_SCANOUT

	// Buffer is going to be used as cursor
	GBM_BO_USE_CURSOR GBMBufferFlags = C.GBM_BO_USE_CURSOR

	// Buffer is to be used for rendering
	GBM_BO_USE_RENDERING GBMBufferFlags = C.GBM_BO_USE_RENDERING

	// Buffer can be used for gbm_bo_write
	GBM_BO_USE_WRITE GBMBufferFlags = C.GBM_BO_USE_WRITE

	// Buffer is linear, i.e. not tiled.
	GBM_BO_USE_LINEAR GBMBufferFlags = C.GBM_BO_USE_LINEAR
)

type GBMBufferType

type GBMBufferType C.uint32_t
const (
	GBM_BO_IMPORT_WL_BUFFER   GBMBufferType = C.GBM_BO_IMPORT_WL_BUFFER
	GBM_BO_IMPORT_EGL_IMAGE   GBMBufferType = C.GBM_BO_IMPORT_WL_BUFFER
	GBM_BO_IMPORT_FD          GBMBufferType = C.GBM_BO_IMPORT_FD
	GBM_BO_IMPORT_FD_MODIFIER GBMBufferType = C.GBM_BO_IMPORT_FD_MODIFIER
)

Jump to

Keyboard shortcuts

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