single_pixel_buffer

package
v0.0.0-...-0ad78d1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WpSinglePixelBufferManager

type WpSinglePixelBufferManager struct {
	client.BaseProxy
}

WpSinglePixelBufferManager : global factory for single-pixel buffers

The wp_single_pixel_buffer_manager_v1 interface is a factory for single-pixel buffers.

func NewWpSinglePixelBufferManager

func NewWpSinglePixelBufferManager(ctx *client.Context) *WpSinglePixelBufferManager

NewWpSinglePixelBufferManager : global factory for single-pixel buffers

The wp_single_pixel_buffer_manager_v1 interface is a factory for single-pixel buffers.

func (*WpSinglePixelBufferManager) CreateU32RgbaBuffer

func (i *WpSinglePixelBufferManager) CreateU32RgbaBuffer(r, g, b, a uint32) (*client.Buffer, error)

CreateU32RgbaBuffer : create a 1×1 buffer from 32-bit RGBA values

Create a single-pixel buffer from four 32-bit RGBA values.

Unless specified in another protocol extension, the RGBA values use pre-multiplied alpha.

The width and height of the buffer are 1.

r: value of the buffer's red channel
g: value of the buffer's green channel
b: value of the buffer's blue channel
a: value of the buffer's alpha channel

func (*WpSinglePixelBufferManager) Destroy

func (i *WpSinglePixelBufferManager) Destroy() error

Destroy : destroy the manager

Destroy the wp_single_pixel_buffer_manager_v1 object.

The child objects created via this interface are unaffected.

Jump to

Keyboard shortcuts

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