add Canvas.Frame method
This commit is contained in:
parent
e06acda99b
commit
4749e3ee7e
|
@ -218,6 +218,11 @@ func (c *Canvas) Texture() *glhf.Texture {
|
||||||
return c.gf.Texture()
|
return c.gf.Texture()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Frame return the underlying OpenGL Frame of this Canvas.
|
||||||
|
func (c *Canvas) Frame() *glhf.Frame {
|
||||||
|
return c.gf.frame
|
||||||
|
}
|
||||||
|
|
||||||
// SetPixels replaces the content of the Canvas with the provided pixels. The provided slice must be
|
// SetPixels replaces the content of the Canvas with the provided pixels. The provided slice must be
|
||||||
// an alpha-premultiplied RGBA sequence of correct length (4 * width * height).
|
// an alpha-premultiplied RGBA sequence of correct length (4 * width * height).
|
||||||
func (c *Canvas) SetPixels(pixels []uint8) {
|
func (c *Canvas) SetPixels(pixels []uint8) {
|
||||||
|
|
Loading…
Reference in New Issue