Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WpSinglePixelBufferManager ¶
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.