mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-12 22:17:26 +01:00
doc: Fix comments
This commit is contained in:
parent
5699822d64
commit
76ad9cf42b
@ -44,7 +44,7 @@ type CompositeMode int
|
|||||||
|
|
||||||
// This name convention follows CSS compositing: https://drafts.fxtf.org/compositing-2/.
|
// This name convention follows CSS compositing: https://drafts.fxtf.org/compositing-2/.
|
||||||
//
|
//
|
||||||
// In the above comments,
|
// In the comments,
|
||||||
// c_src, c_dst and c_out represent alpha-premultiplied RGB values of source, destination and output respectively. α_src and α_dst represent alpha values of source and destination respectively.
|
// c_src, c_dst and c_out represent alpha-premultiplied RGB values of source, destination and output respectively. α_src and α_dst represent alpha values of source and destination respectively.
|
||||||
const (
|
const (
|
||||||
// Regular alpha blending
|
// Regular alpha blending
|
||||||
|
@ -202,7 +202,7 @@ func (p *Image) HasDependency() bool {
|
|||||||
return p.drawImageHistory != nil
|
return p.drawImageHistory != nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// RestoreImage restores *graphics.Image from the pixels using its state.
|
// Restore restores *graphics.Image from the pixels using its state.
|
||||||
func (p *Image) Restore(context *opengl.Context) error {
|
func (p *Image) Restore(context *opengl.Context) error {
|
||||||
w, h := p.image.Size()
|
w, h := p.image.Size()
|
||||||
if p.screen {
|
if p.screen {
|
||||||
|
Loading…
Reference in New Issue
Block a user